@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.4 → 0.0.1-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/openapi-k8s-toolkit.es.js +19555 -38665
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +515 -417
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/api/forms.d.ts +12 -0
- package/dist/types/api/getApiResource.d.ts +17 -0
- package/dist/types/api/getApiResourceTypes.d.ts +9 -0
- package/dist/types/api/getBuiltinResource.d.ts +13 -0
- package/dist/types/api/getBuiltinResourceTypes.d.ts +4 -0
- package/dist/types/api/getClusterList.d.ts +3 -0
- package/dist/types/api/getCrdData.d.ts +6 -0
- package/dist/types/api/getCrdResource.d.ts +16 -0
- package/dist/types/api/getSwagger.d.ts +5 -0
- package/dist/types/api/permissions.d.ts +14 -0
- package/dist/types/components/atoms/ContentCard/ContentCard.d.ts +8 -0
- package/dist/types/components/atoms/ContentCard/index.d.ts +2 -0
- package/dist/types/components/atoms/ContentCard/styled.d.ts +13 -0
- package/dist/types/components/atoms/DeleteModal/DeleteModal.d.ts +7 -0
- package/dist/types/components/atoms/DeleteModal/index.d.ts +2 -0
- package/dist/types/components/atoms/DeleteModalMany/DeleteModalMany.d.ts +9 -0
- package/dist/types/components/atoms/DeleteModalMany/index.d.ts +2 -0
- package/dist/types/components/atoms/Icons/BackToDefaultIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/CustomFeedBackIcons.d.ts +6 -0
- package/dist/types/components/atoms/Icons/DeleteIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/DownIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/EditIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/LockedIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/MinusIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/PlusIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/SuccessIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/UnlockedIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/UpIcon.d.ts +2 -0
- package/dist/types/components/atoms/Icons/index.d.ts +11 -0
- package/dist/types/components/atoms/Spacer/Spacer.d.ts +7 -0
- package/dist/types/components/atoms/Spacer/index.d.ts +2 -0
- package/dist/types/components/atoms/TreeWithSearch/TreeWithSearch.d.ts +7 -0
- package/dist/types/components/atoms/TreeWithSearch/index.d.ts +2 -0
- package/dist/types/components/atoms/TreeWithSearch/styled.d.ts +276 -0
- package/dist/types/components/atoms/index.d.ts +6 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ArrayInsideContainer/ArrayInsideContainer.d.ts +4 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ArrayInsideContainer/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ArrayInsideContainer/styled.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/CustomCollapse.d.ts +13 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/styled.d.ts +288 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomSizeTitle/CustomSizeTitle.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomSizeTitle/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/DebugNameViewer.d.ts +11 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/PersistedCheckbox.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PossibleHiddenContainer/PossibleHiddenContainer.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PossibleHiddenContainer/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/ResetedFormItem.d.ts +49 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/index.d.ts +7 -0
- package/dist/types/components/molecules/BlackholeForm/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormArrayHeader/FormArrayHeader.d.ts +16 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormArrayHeader/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +17 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/styled.d.ts +548 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +21 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +23 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +13 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +21 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.d.ts +35 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/FormRangeInput.d.ts +20 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/RangeInput.d.ts +20 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/utils.d.ts +18 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +20 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/YamlEditor.d.ts +8 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/styled.d.ts +276 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +17 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/styled.d.ts +13 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/index.d.ts +11 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +33 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/context.d.ts +8 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/guards.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/index.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/styled.d.ts +311 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +203 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/BlackholeFormDataProvider.d.ts +45 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/index.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/index.d.ts +2 -0
- package/dist/types/components/molecules/EnrichedTable/EnrichedTable.d.ts +30 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/FilterDropdown/FilterDropdown.d.ts +11 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/FilterDropdown/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/ShortenedTextWithTooltip/ShortenedTextWithTooltip.d.ts +8 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/ShortenedTextWithTooltip/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/ShortenedTextWithTooltip/styled.d.ts +9 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TableComponents/TableComponents.d.ts +284 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TableComponents/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TextAlignContainer/TextAlignContainer.d.ts +6 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TextAlignContainer/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TinyButton/TinyButton.d.ts +312 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TinyButton/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TrimmedTags/TrimmedTags.d.ts +7 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TrimmedTags/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/index.d.ts +6 -0
- package/dist/types/components/molecules/EnrichedTable/index.d.ts +3 -0
- package/dist/types/components/molecules/EnrichedTable/types.d.ts +16 -0
- package/dist/types/components/molecules/EnrichedTable/utils.d.ts +17 -0
- package/dist/types/components/molecules/EnrichedTableProvider/EnrichedTableProvider.d.ts +45 -0
- package/dist/types/components/molecules/EnrichedTableProvider/index.d.ts +3 -0
- package/dist/types/components/molecules/EnrichedTableProvider/utils.d.ts +25 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/styled.d.ts +3 -3
- package/dist/types/components/molecules/ManageableBreadcrumbs/utils.d.ts +0 -4
- package/dist/types/components/molecules/ManageableSidebar/ManageableSidebar.d.ts +23 -0
- package/dist/types/components/molecules/ManageableSidebar/index.d.ts +3 -0
- package/dist/types/components/molecules/ManageableSidebar/styled.d.ts +10 -0
- package/dist/types/components/molecules/ManageableSidebar/types.d.ts +19 -0
- package/dist/types/components/molecules/ManageableSidebar/utils.d.ts +16 -0
- package/dist/types/components/molecules/MarketPlace/MarketPlace.d.ts +11 -0
- package/dist/types/components/molecules/MarketPlace/atoms/AddCard/AddCard.d.ts +6 -0
- package/dist/types/components/molecules/MarketPlace/atoms/AddCard/index.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/atoms/AddCard/styled.d.ts +310 -0
- package/dist/types/components/molecules/MarketPlace/atoms/index.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/index.d.ts +4 -0
- package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts +17 -0
- package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/index.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts +12 -0
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/index.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/styled.d.ts +1924 -0
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/utils.d.ts +28 -0
- package/dist/types/components/molecules/MarketPlace/molecules/SearchTextInput/SearchTextInput.d.ts +8 -0
- package/dist/types/components/molecules/MarketPlace/molecules/SearchTextInput/index.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/molecules/index.d.ts +3 -0
- package/dist/types/components/molecules/MarketPlace/styled.d.ts +276 -0
- package/dist/types/components/molecules/ProjectInfoCard/ProjectInfoCard.d.ts +15 -0
- package/dist/types/components/molecules/ProjectInfoCard/index.d.ts +2 -0
- package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownAccessGroups/DropdownAccessGroups.d.ts +6 -0
- package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownAccessGroups/index.d.ts +1 -0
- package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownActions/DropdownActions.d.ts +7 -0
- package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownActions/index.d.ts +1 -0
- package/dist/types/components/molecules/ProjectInfoCard/molecules/index.d.ts +2 -0
- package/dist/types/components/molecules/ProjectInfoCard/styled.d.ts +548 -0
- package/dist/types/components/molecules/index.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/DynamicComponents.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdButton/AntdButton.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdButton/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCard/AntdCard.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCard/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCol/AntdCol.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCol/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdFlex/AntdFlex.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdFlex/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdRow/AntdRow.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdRow/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdTabs/AntdTabs.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdTabs/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdText/AntdText.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdText/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ContentCard/ContentCard.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ContentCard/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/DefaultDiv/DefaultDiv.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/DefaultDiv/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MarketplaceCard/MarketplaceCard.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MarketplaceCard/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MultiQuery/MultiQuery.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MultiQuery/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ParsedText/ParsedText.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ParsedText/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PartsOfUrl/PartsOfUrl.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PartsOfUrl/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ProjectInfoCard/ProjectInfoCard.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ProjectInfoCard/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/SidebarProvider/SidebarProvider.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/SidebarProvider/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Spacer/Spacer.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Spacer/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/StatusText/StatusText.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/StatusText/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +17 -0
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +86 -0
- package/dist/types/components/organisms/DynamicRenderer/DynamicRenderer.d.ts +7 -0
- package/dist/types/components/organisms/DynamicRenderer/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.d.ts +6 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/multiQueryProvider.d.ts +17 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/partsOfUrlContext.d.ts +9 -0
- package/dist/types/components/organisms/index.d.ts +3 -0
- package/dist/types/hooks/useApiResource.d.ts +28 -0
- package/dist/types/hooks/useApisResourceTypes.d.ts +30 -0
- package/dist/types/hooks/useBuiltinResource.d.ts +24 -0
- package/dist/types/hooks/useBuiltinResourceTypes.d.ts +4 -0
- package/dist/types/hooks/useClusterList.d.ts +3 -0
- package/dist/types/hooks/useCrdData.d.ts +25 -0
- package/dist/types/hooks/useCrdResource.d.ts +38 -0
- package/dist/types/hooks/useDirectUnknownResource.d.ts +2 -1
- package/dist/types/hooks/usePermissions.d.ts +13 -0
- package/dist/types/index.d.ts +30 -0
- package/dist/types/localTypes/JSON.d.ts +3 -0
- package/dist/types/localTypes/api.d.ts +8 -0
- package/dist/types/localTypes/clusterList.d.ts +7 -0
- package/dist/types/localTypes/dynamicRender.d.ts +29 -0
- package/dist/types/localTypes/form.d.ts +46 -0
- package/dist/types/localTypes/formExtensions.d.ts +71 -0
- package/dist/types/localTypes/k8s.d.ts +96 -0
- package/dist/types/localTypes/marketplace.d.ts +27 -0
- package/dist/types/localTypes/richTable.d.ts +31 -0
- package/dist/types/localTypes/scopes.d.ts +11 -0
- package/dist/types/utils/createContextFactory/createContextFactory.d.ts +7 -0
- package/dist/types/utils/createContextFactory/index.d.ts +1 -0
- package/dist/types/utils/filterSelectOptions/filterSelectOptions.d.ts +2 -0
- package/dist/types/utils/filterSelectOptions/index.d.ts +1 -0
- package/dist/types/utils/getAllPathsFromObj/getAllPathsFromObj.d.ts +3 -0
- package/dist/types/utils/getAllPathsFromObj/index.d.ts +1 -0
- package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +53 -0
- package/dist/types/utils/getGroupsByCategory/index.d.ts +1 -0
- package/dist/types/utils/getPrefixSubArrays/getPrefixSubArrays.d.ts +1 -0
- package/dist/types/utils/getPrefixSubArrays/index.d.ts +1 -0
- package/dist/types/utils/getStringByName/getStringByName.d.ts +2 -0
- package/dist/types/utils/getStringByName/index.d.ts +1 -0
- package/dist/types/utils/groupsToTreeData/groupsToTreeData.d.ts +7 -0
- package/dist/types/utils/groupsToTreeData/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +17 -0
- package/dist/types/utils/isFlatObject/index.d.ts +1 -0
- package/dist/types/utils/isFlatObject/isFlatObject.d.ts +1 -0
- package/dist/types/utils/nestedStringsArrayInclude/index.d.ts +1 -0
- package/dist/types/utils/nestedStringsArrayInclude/nestedStringsArrayInclude.d.ts +1 -0
- package/dist/types/utils/normalizeValuesForQuotas/index.d.ts +1 -0
- package/dist/types/utils/normalizeValuesForQuotas/normalizeValuesForQuotas.d.ts +3 -0
- package/dist/types/utils/overwriteMatchingKeys/index.d.ts +1 -0
- package/dist/types/utils/overwriteMatchingKeys/overwriteMatchingKeys.d.ts +3 -0
- package/dist/types/utils/parseColumnsOverrides/guards.d.ts +21 -0
- package/dist/types/utils/parseColumnsOverrides/index.d.ts +2 -0
- package/dist/types/utils/parseColumnsOverrides/parseColumnsOverrides.d.ts +22 -0
- package/dist/types/utils/parseForQuotaValues/index.d.ts +1 -0
- package/dist/types/utils/parseForQuotaValues/parseForQuotaValues.d.ts +4 -0
- package/dist/types/utils/prepareTableMappings/index.d.ts +1 -0
- package/dist/types/utils/prepareTableMappings/prepareTableMappings.d.ts +20 -0
- package/dist/types/utils/prepareTemplate/index.d.ts +1 -0
- package/dist/types/utils/prepareTemplate/prepareTemplate.d.ts +4 -0
- package/dist/types/utils/prepareUrlsToFetchForDynamicRenderer/index.d.ts +1 -0
- package/dist/types/utils/prepareUrlsToFetchForDynamicRenderer/prepareUrlsToFetchForDynamicRenderer.d.ts +4 -0
- package/dist/types/utils/removeEmptyFormValues/index.d.ts +1 -0
- package/dist/types/utils/removeEmptyFormValues/removeEmptyFormValues.d.ts +4 -0
- package/dist/types/utils/scopes/checkScopes.d.ts +16 -0
- package/dist/types/utils/scopes/filterScopes.d.ts +22 -0
- package/dist/types/utils/scopes/index.d.ts +2 -0
- package/package.json +25 -15
- package/dist/types/components/molecules/ManageableBreadcrumbs/prepareDataForManageableBreadcrumbs.test.d.ts +0 -1
- /package/dist/types/{components/molecules/ManageableBreadcrumbs → utils/prepareTemplate}/prepareTemplate.test.d.ts +0 -0
|
@@ -1,413 +1,6 @@
|
|
|
1
|
-
(function($s,$v){typeof exports=="object"&&typeof module<"u"?$v(exports):typeof define=="function"&&define.amd?define(["exports"],$v):($s=typeof globalThis<"u"?globalThis:$s||self,$v($s["@prorobotech/openapi-k8s-toolkit"]={}))})(this,function($s){"use strict";function $v(t,r){for(var i=0;i<r.length;i++){const o=r[i];if(typeof o!="string"&&!Array.isArray(o)){for(const u in o)if(u!=="default"&&!(u in t)){const p=Object.getOwnPropertyDescriptor(o,u);p&&Object.defineProperty(t,u,p.get?p:{enumerable:!0,get:()=>o[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function qA(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sT={exports:{}},ui=sT.exports={},Ql,Jl;function tE(){throw new Error("setTimeout has not been defined")}function nE(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ql=setTimeout:Ql=tE}catch{Ql=tE}try{typeof clearTimeout=="function"?Jl=clearTimeout:Jl=nE}catch{Jl=nE}})();function cT(t){if(Ql===setTimeout)return setTimeout(t,0);if((Ql===tE||!Ql)&&setTimeout)return Ql=setTimeout,setTimeout(t,0);try{return Ql(t,0)}catch{try{return Ql.call(null,t,0)}catch{return Ql.call(this,t,0)}}}function KA(t){if(Jl===clearTimeout)return clearTimeout(t);if((Jl===nE||!Jl)&&clearTimeout)return Jl=clearTimeout,clearTimeout(t);try{return Jl(t)}catch{try{return Jl.call(null,t)}catch{return Jl.call(this,t)}}}var Lu=[],vd=!1,Lc,Lg=-1;function YA(){!vd||!Lc||(vd=!1,Lc.length?Lu=Lc.concat(Lu):Lg=-1,Lu.length&&fT())}function fT(){if(!vd){var t=cT(YA);vd=!0;for(var r=Lu.length;r;){for(Lc=Lu,Lu=[];++Lg<r;)Lc&&Lc[Lg].run();Lg=-1,r=Lu.length}Lc=null,vd=!1,KA(t)}}ui.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)r[i-1]=arguments[i];Lu.push(new dT(t,r)),Lu.length===1&&!vd&&cT(fT)};function dT(t,r){this.fun=t,this.array=r}dT.prototype.run=function(){this.fun.apply(null,this.array)},ui.title="browser",ui.browser=!0,ui.env={},ui.argv=[],ui.version="",ui.versions={};function Fu(){}ui.on=Fu,ui.addListener=Fu,ui.once=Fu,ui.off=Fu,ui.removeListener=Fu,ui.removeAllListeners=Fu,ui.emit=Fu,ui.prependListener=Fu,ui.prependOnceListener=Fu,ui.listeners=function(t){return[]},ui.binding=function(t){throw new Error("process.binding is not supported")},ui.cwd=function(){return"/"},ui.chdir=function(t){throw new Error("process.chdir is not supported")},ui.umask=function(){return 0};var GA=sT.exports;const me=qA(GA);function rE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var iE={exports:{}},Lv={},Fg={exports:{}},On={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var pT;function XA(){if(pT)return On;pT=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),R=Symbol.iterator;function _(G){return G===null||typeof G!="object"?null:(G=R&&G[R]||G["@@iterator"],typeof G=="function"?G:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,L={};function D(G,ue,De){this.props=G,this.context=ue,this.refs=L,this.updater=De||P}D.prototype.isReactComponent={},D.prototype.setState=function(G,ue){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,ue,"setState")},D.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function H(){}H.prototype=D.prototype;function I(G,ue,De){this.props=G,this.context=ue,this.refs=L,this.updater=De||P}var z=I.prototype=new H;z.constructor=I,N(z,D.prototype),z.isPureReactComponent=!0;var V=Array.isArray,B=Object.prototype.hasOwnProperty,W={current:null},K={key:!0,ref:!0,__self:!0,__source:!0};function Z(G,ue,De){var ye,Le={},We=null,Ue=null;if(ue!=null)for(ye in ue.ref!==void 0&&(Ue=ue.ref),ue.key!==void 0&&(We=""+ue.key),ue)B.call(ue,ye)&&!K.hasOwnProperty(ye)&&(Le[ye]=ue[ye]);var qe=arguments.length-2;if(qe===1)Le.children=De;else if(1<qe){for(var Qe=Array(qe),ft=0;ft<qe;ft++)Qe[ft]=arguments[ft+2];Le.children=Qe}if(G&&G.defaultProps)for(ye in qe=G.defaultProps,qe)Le[ye]===void 0&&(Le[ye]=qe[ye]);return{$$typeof:t,type:G,key:We,ref:Ue,props:Le,_owner:W.current}}function ie(G,ue){return{$$typeof:t,type:G.type,key:ue,ref:G.ref,props:G.props,_owner:G._owner}}function Y(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function J(G){var ue={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(De){return ue[De]})}var oe=/\/+/g;function X(G,ue){return typeof G=="object"&&G!==null&&G.key!=null?J(""+G.key):ue.toString(36)}function ne(G,ue,De,ye,Le){var We=typeof G;(We==="undefined"||We==="boolean")&&(G=null);var Ue=!1;if(G===null)Ue=!0;else switch(We){case"string":case"number":Ue=!0;break;case"object":switch(G.$$typeof){case t:case r:Ue=!0}}if(Ue)return Ue=G,Le=Le(Ue),G=ye===""?"."+X(Ue,0):ye,V(Le)?(De="",G!=null&&(De=G.replace(oe,"$&/")+"/"),ne(Le,ue,De,"",function(ft){return ft})):Le!=null&&(Y(Le)&&(Le=ie(Le,De+(!Le.key||Ue&&Ue.key===Le.key?"":(""+Le.key).replace(oe,"$&/")+"/")+G)),ue.push(Le)),1;if(Ue=0,ye=ye===""?".":ye+":",V(G))for(var qe=0;qe<G.length;qe++){We=G[qe];var Qe=ye+X(We,qe);Ue+=ne(We,ue,De,Qe,Le)}else if(Qe=_(G),typeof Qe=="function")for(G=Qe.call(G),qe=0;!(We=G.next()).done;)We=We.value,Qe=ye+X(We,qe++),Ue+=ne(We,ue,De,Qe,Le);else if(We==="object")throw ue=String(G),Error("Objects are not valid as a React child (found: "+(ue==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":ue)+"). If you meant to render a collection of children, use an array instead.");return Ue}function de(G,ue,De){if(G==null)return G;var ye=[],Le=0;return ne(G,ye,"","",function(We){return ue.call(De,We,Le++)}),ye}function we(G){if(G._status===-1){var ue=G._result;ue=ue(),ue.then(function(De){(G._status===0||G._status===-1)&&(G._status=1,G._result=De)},function(De){(G._status===0||G._status===-1)&&(G._status=2,G._result=De)}),G._status===-1&&(G._status=0,G._result=ue)}if(G._status===1)return G._result.default;throw G._result}var ge={current:null},le={transition:null},Re={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:le,ReactCurrentOwner:W};function pe(){throw Error("act(...) is not supported in production builds of React.")}return On.Children={map:de,forEach:function(G,ue,De){de(G,function(){ue.apply(this,arguments)},De)},count:function(G){var ue=0;return de(G,function(){ue++}),ue},toArray:function(G){return de(G,function(ue){return ue})||[]},only:function(G){if(!Y(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},On.Component=D,On.Fragment=i,On.Profiler=u,On.PureComponent=I,On.StrictMode=o,On.Suspense=y,On.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Re,On.act=pe,On.cloneElement=function(G,ue,De){if(G==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+G+".");var ye=N({},G.props),Le=G.key,We=G.ref,Ue=G._owner;if(ue!=null){if(ue.ref!==void 0&&(We=ue.ref,Ue=W.current),ue.key!==void 0&&(Le=""+ue.key),G.type&&G.type.defaultProps)var qe=G.type.defaultProps;for(Qe in ue)B.call(ue,Qe)&&!K.hasOwnProperty(Qe)&&(ye[Qe]=ue[Qe]===void 0&&qe!==void 0?qe[Qe]:ue[Qe])}var Qe=arguments.length-2;if(Qe===1)ye.children=De;else if(1<Qe){qe=Array(Qe);for(var ft=0;ft<Qe;ft++)qe[ft]=arguments[ft+2];ye.children=qe}return{$$typeof:t,type:G.type,key:Le,ref:We,props:ye,_owner:Ue}},On.createContext=function(G){return G={$$typeof:f,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},G.Provider={$$typeof:p,_context:G},G.Consumer=G},On.createElement=Z,On.createFactory=function(G){var ue=Z.bind(null,G);return ue.type=G,ue},On.createRef=function(){return{current:null}},On.forwardRef=function(G){return{$$typeof:g,render:G}},On.isValidElement=Y,On.lazy=function(G){return{$$typeof:b,_payload:{_status:-1,_result:G},_init:we}},On.memo=function(G,ue){return{$$typeof:S,type:G,compare:ue===void 0?null:ue}},On.startTransition=function(G){var ue=le.transition;le.transition={};try{G()}finally{le.transition=ue}},On.unstable_act=pe,On.useCallback=function(G,ue){return ge.current.useCallback(G,ue)},On.useContext=function(G){return ge.current.useContext(G)},On.useDebugValue=function(){},On.useDeferredValue=function(G){return ge.current.useDeferredValue(G)},On.useEffect=function(G,ue){return ge.current.useEffect(G,ue)},On.useId=function(){return ge.current.useId()},On.useImperativeHandle=function(G,ue,De){return ge.current.useImperativeHandle(G,ue,De)},On.useInsertionEffect=function(G,ue){return ge.current.useInsertionEffect(G,ue)},On.useLayoutEffect=function(G,ue){return ge.current.useLayoutEffect(G,ue)},On.useMemo=function(G,ue){return ge.current.useMemo(G,ue)},On.useReducer=function(G,ue,De){return ge.current.useReducer(G,ue,De)},On.useRef=function(G){return ge.current.useRef(G)},On.useState=function(G){return ge.current.useState(G)},On.useSyncExternalStore=function(G,ue,De){return ge.current.useSyncExternalStore(G,ue,De)},On.useTransition=function(){return ge.current.useTransition()},On.version="18.3.1",On}var Fv={exports:{}};Fv.exports;var vT;function QA(){return vT||(vT=1,function(t,r){me.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var i="18.3.1",o=Symbol.for("react.element"),u=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),S=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),D=Symbol.iterator,H="@@iterator";function I($){if($===null||typeof $!="object")return null;var re=D&&$[D]||$[H];return typeof re=="function"?re:null}var z={current:null},V={transition:null},B={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},W={current:null},K={},Z=null;function ie($){Z=$}K.setExtraStackFrame=function($){Z=$},K.getCurrentStack=null,K.getStackAddendum=function(){var $="";Z&&($+=Z);var re=K.getCurrentStack;return re&&($+=re()||""),$};var Y=!1,J=!1,oe=!1,X=!1,ne=!1,de={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:V,ReactCurrentOwner:W};de.ReactDebugCurrentFrame=K,de.ReactCurrentActQueue=B;function we($){{for(var re=arguments.length,Oe=new Array(re>1?re-1:0),Me=1;Me<re;Me++)Oe[Me-1]=arguments[Me];le("warn",$,Oe)}}function ge($){{for(var re=arguments.length,Oe=new Array(re>1?re-1:0),Me=1;Me<re;Me++)Oe[Me-1]=arguments[Me];le("error",$,Oe)}}function le($,re,Oe){{var Me=de.ReactDebugCurrentFrame,Je=Me.getStackAddendum();Je!==""&&(re+="%s",Oe=Oe.concat([Je]));var Ht=Oe.map(function(ot){return String(ot)});Ht.unshift("Warning: "+re),Function.prototype.apply.call(console[$],console,Ht)}}var Re={};function pe($,re){{var Oe=$.constructor,Me=Oe&&(Oe.displayName||Oe.name)||"ReactClass",Je=Me+"."+re;if(Re[Je])return;ge("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",re,Me),Re[Je]=!0}}var G={isMounted:function($){return!1},enqueueForceUpdate:function($,re,Oe){pe($,"forceUpdate")},enqueueReplaceState:function($,re,Oe,Me){pe($,"replaceState")},enqueueSetState:function($,re,Oe,Me){pe($,"setState")}},ue=Object.assign,De={};Object.freeze(De);function ye($,re,Oe){this.props=$,this.context=re,this.refs=De,this.updater=Oe||G}ye.prototype.isReactComponent={},ye.prototype.setState=function($,re){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,re,"setState")},ye.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};{var Le={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},We=function($,re){Object.defineProperty(ye.prototype,$,{get:function(){we("%s(...) is deprecated in plain JavaScript React classes. %s",re[0],re[1])}})};for(var Ue in Le)Le.hasOwnProperty(Ue)&&We(Ue,Le[Ue])}function qe(){}qe.prototype=ye.prototype;function Qe($,re,Oe){this.props=$,this.context=re,this.refs=De,this.updater=Oe||G}var ft=Qe.prototype=new qe;ft.constructor=Qe,ue(ft,ye.prototype),ft.isPureReactComponent=!0;function rt(){var $={current:null};return Object.seal($),$}var Tt=Array.isArray;function _t($){return Tt($)}function $e($){{var re=typeof Symbol=="function"&&Symbol.toStringTag,Oe=re&&$[Symbol.toStringTag]||$.constructor.name||"Object";return Oe}}function yt($){try{return st($),!1}catch{return!0}}function st($){return""+$}function sn($){if(yt($))return ge("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$e($)),st($)}function cn($,re,Oe){var Me=$.displayName;if(Me)return Me;var Je=re.displayName||re.name||"";return Je!==""?Oe+"("+Je+")":Oe}function pn($){return $.displayName||"Context"}function rn($){if($==null)return null;if(typeof $.tag=="number"&&ge("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof $=="function")return $.displayName||$.name||null;if(typeof $=="string")return $;switch($){case p:return"Fragment";case u:return"Portal";case g:return"Profiler";case f:return"StrictMode";case R:return"Suspense";case _:return"SuspenseList"}if(typeof $=="object")switch($.$$typeof){case S:var re=$;return pn(re)+".Consumer";case y:var Oe=$;return pn(Oe._context)+".Provider";case b:return cn($,$.render,"ForwardRef");case P:var Me=$.displayName||null;return Me!==null?Me:rn($.type)||"Memo";case N:{var Je=$,Ht=Je._payload,ot=Je._init;try{return rn(ot(Ht))}catch{return null}}}return null}var bt=Object.prototype.hasOwnProperty,Ut={key:!0,ref:!0,__self:!0,__source:!0},tt,an,St;St={};function Pt($){if(bt.call($,"ref")){var re=Object.getOwnPropertyDescriptor($,"ref").get;if(re&&re.isReactWarning)return!1}return $.ref!==void 0}function Un($){if(bt.call($,"key")){var re=Object.getOwnPropertyDescriptor($,"key").get;if(re&&re.isReactWarning)return!1}return $.key!==void 0}function Cn($,re){var Oe=function(){tt||(tt=!0,ge("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",re))};Oe.isReactWarning=!0,Object.defineProperty($,"key",{get:Oe,configurable:!0})}function Jn($,re){var Oe=function(){an||(an=!0,ge("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",re))};Oe.isReactWarning=!0,Object.defineProperty($,"ref",{get:Oe,configurable:!0})}function A($){if(typeof $.ref=="string"&&W.current&&$.__self&&W.current.stateNode!==$.__self){var re=rn(W.current.type);St[re]||(ge('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',re,$.ref),St[re]=!0)}}var w=function($,re,Oe,Me,Je,Ht,ot){var Gt={$$typeof:o,type:$,key:re,ref:Oe,props:ot,_owner:Ht};return Gt._store={},Object.defineProperty(Gt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Gt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Me}),Object.defineProperty(Gt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Je}),Object.freeze&&(Object.freeze(Gt.props),Object.freeze(Gt)),Gt};function O($,re,Oe){var Me,Je={},Ht=null,ot=null,Gt=null,Sn=null;if(re!=null){Pt(re)&&(ot=re.ref,A(re)),Un(re)&&(sn(re.key),Ht=""+re.key),Gt=re.__self===void 0?null:re.__self,Sn=re.__source===void 0?null:re.__source;for(Me in re)bt.call(re,Me)&&!Ut.hasOwnProperty(Me)&&(Je[Me]=re[Me])}var jn=arguments.length-2;if(jn===1)Je.children=Oe;else if(jn>1){for(var wr=Array(jn),pr=0;pr<jn;pr++)wr[pr]=arguments[pr+2];Object.freeze&&Object.freeze(wr),Je.children=wr}if($&&$.defaultProps){var mn=$.defaultProps;for(Me in mn)Je[Me]===void 0&&(Je[Me]=mn[Me])}if(Ht||ot){var vr=typeof $=="function"?$.displayName||$.name||"Unknown":$;Ht&&Cn(Je,vr),ot&&Jn(Je,vr)}return w($,Ht,ot,Gt,Sn,W.current,Je)}function U($,re){var Oe=w($.type,re,$.ref,$._self,$._source,$._owner,$.props);return Oe}function ee($,re,Oe){if($==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var Me,Je=ue({},$.props),Ht=$.key,ot=$.ref,Gt=$._self,Sn=$._source,jn=$._owner;if(re!=null){Pt(re)&&(ot=re.ref,jn=W.current),Un(re)&&(sn(re.key),Ht=""+re.key);var wr;$.type&&$.type.defaultProps&&(wr=$.type.defaultProps);for(Me in re)bt.call(re,Me)&&!Ut.hasOwnProperty(Me)&&(re[Me]===void 0&&wr!==void 0?Je[Me]=wr[Me]:Je[Me]=re[Me])}var pr=arguments.length-2;if(pr===1)Je.children=Oe;else if(pr>1){for(var mn=Array(pr),vr=0;vr<pr;vr++)mn[vr]=arguments[vr+2];Je.children=mn}return w($.type,Ht,ot,Gt,Sn,jn,Je)}function ve($){return typeof $=="object"&&$!==null&&$.$$typeof===o}var Se=".",Xe=":";function mt($){var re=/[=:]/g,Oe={"=":"=0",":":"=2"},Me=$.replace(re,function(Je){return Oe[Je]});return"$"+Me}var gt=!1,Ct=/\/+/g;function Dt($){return $.replace(Ct,"$&/")}function or($,re){return typeof $=="object"&&$!==null&&$.key!=null?(sn($.key),mt(""+$.key)):re.toString(36)}function Bn($,re,Oe,Me,Je){var Ht=typeof $;(Ht==="undefined"||Ht==="boolean")&&($=null);var ot=!1;if($===null)ot=!0;else switch(Ht){case"string":case"number":ot=!0;break;case"object":switch($.$$typeof){case o:case u:ot=!0}}if(ot){var Gt=$,Sn=Je(Gt),jn=Me===""?Se+or(Gt,0):Me;if(_t(Sn)){var wr="";jn!=null&&(wr=Dt(jn)+"/"),Bn(Sn,re,wr,"",function(Ah){return Ah})}else Sn!=null&&(ve(Sn)&&(Sn.key&&(!Gt||Gt.key!==Sn.key)&&sn(Sn.key),Sn=U(Sn,Oe+(Sn.key&&(!Gt||Gt.key!==Sn.key)?Dt(""+Sn.key)+"/":"")+jn)),re.push(Sn));return 1}var pr,mn,vr=0,Fr=Me===""?Se:Me+Xe;if(_t($))for(var au=0;au<$.length;au++)pr=$[au],mn=Fr+or(pr,au),vr+=Bn(pr,re,Oe,mn,Je);else{var nf=I($);if(typeof nf=="function"){var Tl=$;nf===Tl.entries&&(gt||we("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),gt=!0);for(var rf=nf.call(Tl),Xu,Ph=0;!(Xu=rf.next()).done;)pr=Xu.value,mn=Fr+or(pr,Ph++),vr+=Bn(pr,re,Oe,mn,Je)}else if(Ht==="object"){var Jd=String($);throw new Error("Objects are not valid as a React child (found: "+(Jd==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":Jd)+"). If you meant to render a collection of children, use an array instead.")}}return vr}function Mn($,re,Oe){if($==null)return $;var Me=[],Je=0;return Bn($,Me,"","",function(Ht){return re.call(Oe,Ht,Je++)}),Me}function kr($){var re=0;return Mn($,function(){re++}),re}function kn($,re,Oe){Mn($,function(){re.apply(this,arguments)},Oe)}function Ot($){return Mn($,function(re){return re})||[]}function et($){if(!ve($))throw new Error("React.Children.only expected to receive a single React element child.");return $}function At($){var re={$$typeof:S,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};re.Provider={$$typeof:y,_context:re};var Oe=!1,Me=!1,Je=!1;{var Ht={$$typeof:S,_context:re};Object.defineProperties(Ht,{Provider:{get:function(){return Me||(Me=!0,ge("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),re.Provider},set:function(ot){re.Provider=ot}},_currentValue:{get:function(){return re._currentValue},set:function(ot){re._currentValue=ot}},_currentValue2:{get:function(){return re._currentValue2},set:function(ot){re._currentValue2=ot}},_threadCount:{get:function(){return re._threadCount},set:function(ot){re._threadCount=ot}},Consumer:{get:function(){return Oe||(Oe=!0,ge("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),re.Consumer}},displayName:{get:function(){return re.displayName},set:function(ot){Je||(we("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ot),Je=!0)}}}),re.Consumer=Ht}return re._currentRenderer=null,re._currentRenderer2=null,re}var dn=-1,qt=0,Qt=1,Nn=2;function lr($){if($._status===dn){var re=$._result,Oe=re();if(Oe.then(function(Ht){if($._status===qt||$._status===dn){var ot=$;ot._status=Qt,ot._result=Ht}},function(Ht){if($._status===qt||$._status===dn){var ot=$;ot._status=Nn,ot._result=Ht}}),$._status===dn){var Me=$;Me._status=qt,Me._result=Oe}}if($._status===Qt){var Je=$._result;return Je===void 0&&ge(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
10
|
-
|
|
11
|
-
Your code should look like:
|
|
12
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
13
|
-
|
|
14
|
-
Did you accidentally put curly braces around the import?`,Je),"default"in Je||ge(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
15
|
-
|
|
16
|
-
Your code should look like:
|
|
17
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,Je),Je.default}else throw $._result}function Nr($){var re={_status:dn,_result:$},Oe={$$typeof:N,_payload:re,_init:lr};{var Me,Je;Object.defineProperties(Oe,{defaultProps:{configurable:!0,get:function(){return Me},set:function(Ht){ge("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Me=Ht,Object.defineProperty(Oe,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Je},set:function(Ht){ge("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Je=Ht,Object.defineProperty(Oe,"propTypes",{enumerable:!0})}}})}return Oe}function $r($){$!=null&&$.$$typeof===P?ge("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof $!="function"?ge("forwardRef requires a render function but was given %s.",$===null?"null":typeof $):$.length!==0&&$.length!==2&&ge("forwardRef render functions accept exactly two parameters: props and ref. %s",$.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),$!=null&&($.defaultProps!=null||$.propTypes!=null)&&ge("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var re={$$typeof:b,render:$};{var Oe;Object.defineProperty(re,"displayName",{enumerable:!1,configurable:!0,get:function(){return Oe},set:function(Me){Oe=Me,!$.name&&!$.displayName&&($.displayName=Me)}})}return re}var te;te=Symbol.for("react.module.reference");function ze($){return!!(typeof $=="string"||typeof $=="function"||$===p||$===g||ne||$===f||$===R||$===_||X||$===L||Y||J||oe||typeof $=="object"&&$!==null&&($.$$typeof===N||$.$$typeof===P||$.$$typeof===y||$.$$typeof===S||$.$$typeof===b||$.$$typeof===te||$.getModuleId!==void 0))}function Ze($,re){ze($)||ge("memo: The first argument must be a component. Instead received: %s",$===null?"null":typeof $);var Oe={$$typeof:P,type:$,compare:re===void 0?null:re};{var Me;Object.defineProperty(Oe,"displayName",{enumerable:!1,configurable:!0,get:function(){return Me},set:function(Je){Me=Je,!$.name&&!$.displayName&&($.displayName=Je)}})}return Oe}function nt(){var $=z.current;return $===null&&ge(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
18
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
|
-
2. You might be breaking the Rules of Hooks
|
|
20
|
-
3. You might have more than one copy of React in the same app
|
|
21
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),$}function Bt($){var re=nt();if($._context!==void 0){var Oe=$._context;Oe.Consumer===$?ge("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):Oe.Provider===$&&ge("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return re.useContext($)}function Nt($){var re=nt();return re.useState($)}function Et($,re,Oe){var Me=nt();return Me.useReducer($,re,Oe)}function Kt($){var re=nt();return re.useRef($)}function Zn($,re){var Oe=nt();return Oe.useEffect($,re)}function Dn($,re){var Oe=nt();return Oe.useInsertionEffect($,re)}function Vn($,re){var Oe=nt();return Oe.useLayoutEffect($,re)}function Rn($,re){var Oe=nt();return Oe.useCallback($,re)}function fi($,re){var Oe=nt();return Oe.useMemo($,re)}function Di($,re,Oe){var Me=nt();return Me.useImperativeHandle($,re,Oe)}function Vt($,re){{var Oe=nt();return Oe.useDebugValue($,re)}}function en(){var $=nt();return $.useTransition()}function Mi($){var re=nt();return re.useDeferredValue($)}function aa(){var $=nt();return $.useId()}function Si($,re,Oe){var Me=nt();return Me.useSyncExternalStore($,re,Oe)}var Jr=0,Ba,Pi,Er,Va,Tr,Ai,Ei;function oa(){}oa.__reactDisabledLog=!0;function Ci(){{if(Jr===0){Ba=console.log,Pi=console.info,Er=console.warn,Va=console.error,Tr=console.group,Ai=console.groupCollapsed,Ei=console.groupEnd;var $={configurable:!0,enumerable:!0,value:oa,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}Jr++}}function Cr(){{if(Jr--,Jr===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},$,{value:Ba}),info:ue({},$,{value:Pi}),warn:ue({},$,{value:Er}),error:ue({},$,{value:Va}),group:ue({},$,{value:Tr}),groupCollapsed:ue({},$,{value:Ai}),groupEnd:ue({},$,{value:Ei})})}Jr<0&&ge("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $i=de.ReactCurrentDispatcher,wi;function oo($,re,Oe){{if(wi===void 0)try{throw Error()}catch(Je){var Me=Je.stack.trim().match(/\n( *(at )?)/);wi=Me&&Me[1]||""}return`
|
|
22
|
-
`+wi+$}}var la=!1,Pn;{var bn=typeof WeakMap=="function"?WeakMap:Map;Pn=new bn}function An($,re){if(!$||la)return"";{var Oe=Pn.get($);if(Oe!==void 0)return Oe}var Me;la=!0;var Je=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ht;Ht=$i.current,$i.current=null,Ci();try{if(re){var ot=function(){throw Error()};if(Object.defineProperty(ot.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ot,[])}catch(Fr){Me=Fr}Reflect.construct($,[],ot)}else{try{ot.call()}catch(Fr){Me=Fr}$.call(ot.prototype)}}else{try{throw Error()}catch(Fr){Me=Fr}$()}}catch(Fr){if(Fr&&Me&&typeof Fr.stack=="string"){for(var Gt=Fr.stack.split(`
|
|
23
|
-
`),Sn=Me.stack.split(`
|
|
24
|
-
`),jn=Gt.length-1,wr=Sn.length-1;jn>=1&&wr>=0&&Gt[jn]!==Sn[wr];)wr--;for(;jn>=1&&wr>=0;jn--,wr--)if(Gt[jn]!==Sn[wr]){if(jn!==1||wr!==1)do if(jn--,wr--,wr<0||Gt[jn]!==Sn[wr]){var pr=`
|
|
25
|
-
`+Gt[jn].replace(" at new "," at ");return $.displayName&&pr.includes("<anonymous>")&&(pr=pr.replace("<anonymous>",$.displayName)),typeof $=="function"&&Pn.set($,pr),pr}while(jn>=1&&wr>=0);break}}}finally{la=!1,$i.current=Ht,Cr(),Error.prepareStackTrace=Je}var mn=$?$.displayName||$.name:"",vr=mn?oo(mn):"";return typeof $=="function"&&Pn.set($,vr),vr}function dr($,re,Oe){return An($,!1)}function Vr($){var re=$.prototype;return!!(re&&re.isReactComponent)}function xi($,re,Oe){if($==null)return"";if(typeof $=="function")return An($,Vr($));if(typeof $=="string")return oo($);switch($){case R:return oo("Suspense");case _:return oo("SuspenseList")}if(typeof $=="object")switch($.$$typeof){case b:return dr($.render);case P:return xi($.type,re,Oe);case N:{var Me=$,Je=Me._payload,Ht=Me._init;try{return xi(Ht(Je),re,Oe)}catch{}}}return""}var vn={},lo=de.ReactDebugCurrentFrame;function hn($){if($){var re=$._owner,Oe=xi($.type,$._source,re?re.type:null);lo.setExtraStackFrame(Oe)}else lo.setExtraStackFrame(null)}function wa($,re,Oe,Me,Je){{var Ht=Function.call.bind(bt);for(var ot in $)if(Ht($,ot)){var Gt=void 0;try{if(typeof $[ot]!="function"){var Sn=Error((Me||"React class")+": "+Oe+" type `"+ot+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof $[ot]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Sn.name="Invariant Violation",Sn}Gt=$[ot](re,ot,Me,Oe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(jn){Gt=jn}Gt&&!(Gt instanceof Error)&&(hn(Je),ge("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Me||"React class",Oe,ot,typeof Gt),hn(null)),Gt instanceof Error&&!(Gt.message in vn)&&(vn[Gt.message]=!0,hn(Je),ge("Failed %s type: %s",Oe,Gt.message),hn(null))}}}function yr($){if($){var re=$._owner,Oe=xi($.type,$._source,re?re.type:null);ie(Oe)}else ie(null)}var jt;jt=!1;function Hr(){if(W.current){var $=rn(W.current.type);if($)return`
|
|
26
|
-
|
|
27
|
-
Check the render method of \``+$+"`."}return""}function Ur($){if($!==void 0){var re=$.fileName.replace(/^.*[\\\/]/,""),Oe=$.lineNumber;return`
|
|
28
|
-
|
|
29
|
-
Check your code at `+re+":"+Oe+"."}return""}function Li($){return $!=null?Ur($.__source):""}var Dr={};function di($){var re=Hr();if(!re){var Oe=typeof $=="string"?$:$.displayName||$.name;Oe&&(re=`
|
|
30
|
-
|
|
31
|
-
Check the top-level render call using <`+Oe+">.")}return re}function er($,re){if(!(!$._store||$._store.validated||$.key!=null)){$._store.validated=!0;var Oe=di(re);if(!Dr[Oe]){Dr[Oe]=!0;var Me="";$&&$._owner&&$._owner!==W.current&&(Me=" It was passed a child from "+rn($._owner.type)+"."),yr($),ge('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Oe,Me),yr(null)}}}function Hn($,re){if(typeof $=="object"){if(_t($))for(var Oe=0;Oe<$.length;Oe++){var Me=$[Oe];ve(Me)&&er(Me,re)}else if(ve($))$._store&&($._store.validated=!0);else if($){var Je=I($);if(typeof Je=="function"&&Je!==$.entries)for(var Ht=Je.call($),ot;!(ot=Ht.next()).done;)ve(ot.value)&&er(ot.value,re)}}}function uo($){{var re=$.type;if(re==null||typeof re=="string")return;var Oe;if(typeof re=="function")Oe=re.propTypes;else if(typeof re=="object"&&(re.$$typeof===b||re.$$typeof===P))Oe=re.propTypes;else return;if(Oe){var Me=rn(re);wa(Oe,$.props,"prop",Me,$)}else if(re.PropTypes!==void 0&&!jt){jt=!0;var Je=rn(re);ge("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Je||"Unknown")}typeof re.getDefaultProps=="function"&&!re.getDefaultProps.isReactClassApproved&&ge("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lr($){{for(var re=Object.keys($.props),Oe=0;Oe<re.length;Oe++){var Me=re[Oe];if(Me!=="children"&&Me!=="key"){yr($),ge("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Me),yr(null);break}}$.ref!==null&&(yr($),ge("Invalid attribute `ref` supplied to `React.Fragment`."),yr(null))}}function pi($,re,Oe){var Me=ze($);if(!Me){var Je="";($===void 0||typeof $=="object"&&$!==null&&Object.keys($).length===0)&&(Je+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ht=Li(re);Ht?Je+=Ht:Je+=Hr();var ot;$===null?ot="null":_t($)?ot="array":$!==void 0&&$.$$typeof===o?(ot="<"+(rn($.type)||"Unknown")+" />",Je=" Did you accidentally export a JSX literal instead of a component?"):ot=typeof $,ge("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ot,Je)}var Gt=O.apply(this,arguments);if(Gt==null)return Gt;if(Me)for(var Sn=2;Sn<arguments.length;Sn++)Hn(arguments[Sn],$);return $===p?Lr(Gt):uo(Gt),Gt}var at=!1;function Ft($){var re=pi.bind(null,$);return re.type=$,at||(at=!0,we("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(re,"type",{enumerable:!1,get:function(){return we("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:$}),$}}),re}function nr($,re,Oe){for(var Me=ee.apply(this,arguments),Je=2;Je<arguments.length;Je++)Hn(arguments[Je],Me.type);return uo(Me),Me}function Or($,re){var Oe=V.transition;V.transition={};var Me=V.transition;V.transition._updatedFibers=new Set;try{$()}finally{if(V.transition=Oe,Oe===null&&Me._updatedFibers){var Je=Me._updatedFibers.size;Je>10&&we("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),Me._updatedFibers.clear()}}}var tr=!1,so=null;function Yu($){if(so===null)try{var re=("require"+Math.random()).slice(0,7),Oe=t&&t[re];so=Oe.call(t,"timers").setImmediate}catch{so=function(Je){tr===!1&&(tr=!0,typeof MessageChannel>"u"&&ge("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ht=new MessageChannel;Ht.port1.onmessage=Je,Ht.port2.postMessage(void 0)}}return so($)}var ua=0,Xi=!1;function Yo($){{var re=ua;ua++,B.current===null&&(B.current=[]);var Oe=B.isBatchingLegacy,Me;try{if(B.isBatchingLegacy=!0,Me=$(),!Oe&&B.didScheduleLegacyUpdate){var Je=B.current;Je!==null&&(B.didScheduleLegacyUpdate=!1,iu(Je))}}catch(mn){throw co(re),mn}finally{B.isBatchingLegacy=Oe}if(Me!==null&&typeof Me=="object"&&typeof Me.then=="function"){var Ht=Me,ot=!1,Gt={then:function(mn,vr){ot=!0,Ht.then(function(Fr){co(re),ua===0?qs(Fr,mn,vr):mn(Fr)},function(Fr){co(re),vr(Fr)})}};return!Xi&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ot||(Xi=!0,ge("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Gt}else{var Sn=Me;if(co(re),ua===0){var jn=B.current;jn!==null&&(iu(jn),B.current=null);var wr={then:function(mn,vr){B.current===null?(B.current=[],qs(Sn,mn,vr)):mn(Sn)}};return wr}else{var pr={then:function(mn,vr){mn(Sn)}};return pr}}}}function co($){$!==ua-1&&ge("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ua=$}function qs($,re,Oe){{var Me=B.current;if(Me!==null)try{iu(Me),Yu(function(){Me.length===0?(B.current=null,re($)):qs($,re,Oe)})}catch(Je){Oe(Je)}else re($)}}var Ks=!1;function iu($){if(!Ks){Ks=!0;var re=0;try{for(;re<$.length;re++){var Oe=$[re];do Oe=Oe(!0);while(Oe!==null)}$.length=0}catch(Me){throw $=$.slice(re+1),Me}finally{Ks=!1}}}var Gu=pi,Ys=nr,Gs=Ft,Do={map:Mn,forEach:kn,count:kr,toArray:Ot,only:et};r.Children=Do,r.Component=ye,r.Fragment=p,r.Profiler=g,r.PureComponent=Qe,r.StrictMode=f,r.Suspense=R,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=de,r.act=Yo,r.cloneElement=Ys,r.createContext=At,r.createElement=Gu,r.createFactory=Gs,r.createRef=rt,r.forwardRef=$r,r.isValidElement=ve,r.lazy=Nr,r.memo=Ze,r.startTransition=Or,r.unstable_act=Yo,r.useCallback=Rn,r.useContext=Bt,r.useDebugValue=Vt,r.useDeferredValue=Mi,r.useEffect=Zn,r.useId=aa,r.useImperativeHandle=Di,r.useInsertionEffect=Dn,r.useLayoutEffect=Vn,r.useMemo=fi,r.useReducer=Et,r.useRef=Kt,r.useState=Nt,r.useSyncExternalStore=Si,r.useTransition=en,r.version=i,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Fv,Fv.exports)),Fv.exports}var hT;function Iv(){return hT||(hT=1,me.env.NODE_ENV==="production"?Fg.exports=XA():Fg.exports=QA()),Fg.exports}/**
|
|
32
|
-
* @license React
|
|
33
|
-
* react-jsx-runtime.production.min.js
|
|
34
|
-
*
|
|
35
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var mT;function JA(){if(mT)return Lv;mT=1;var t=Iv(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function f(g,y,S){var b,R={},_=null,P=null;S!==void 0&&(_=""+S),y.key!==void 0&&(_=""+y.key),y.ref!==void 0&&(P=y.ref);for(b in y)o.call(y,b)&&!p.hasOwnProperty(b)&&(R[b]=y[b]);if(g&&g.defaultProps)for(b in y=g.defaultProps,y)R[b]===void 0&&(R[b]=y[b]);return{$$typeof:r,type:g,key:_,ref:P,props:R,_owner:u.current}}return Lv.Fragment=i,Lv.jsx=f,Lv.jsxs=f,Lv}var zv={},gT;function ZA(){return gT||(gT=1,me.env.NODE_ENV!=="production"&&function(){var t=Iv(),r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),N=Symbol.iterator,L="@@iterator";function D(te){if(te===null||typeof te!="object")return null;var ze=N&&te[N]||te[L];return typeof ze=="function"?ze:null}var H=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function I(te){{for(var ze=arguments.length,Ze=new Array(ze>1?ze-1:0),nt=1;nt<ze;nt++)Ze[nt-1]=arguments[nt];z("error",te,Ze)}}function z(te,ze,Ze){{var nt=H.ReactDebugCurrentFrame,Bt=nt.getStackAddendum();Bt!==""&&(ze+="%s",Ze=Ze.concat([Bt]));var Nt=Ze.map(function(Et){return String(Et)});Nt.unshift("Warning: "+ze),Function.prototype.apply.call(console[te],console,Nt)}}var V=!1,B=!1,W=!1,K=!1,Z=!1,ie;ie=Symbol.for("react.module.reference");function Y(te){return!!(typeof te=="string"||typeof te=="function"||te===o||te===p||Z||te===u||te===S||te===b||K||te===P||V||B||W||typeof te=="object"&&te!==null&&(te.$$typeof===_||te.$$typeof===R||te.$$typeof===f||te.$$typeof===g||te.$$typeof===y||te.$$typeof===ie||te.getModuleId!==void 0))}function J(te,ze,Ze){var nt=te.displayName;if(nt)return nt;var Bt=ze.displayName||ze.name||"";return Bt!==""?Ze+"("+Bt+")":Ze}function oe(te){return te.displayName||"Context"}function X(te){if(te==null)return null;if(typeof te.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof te=="function")return te.displayName||te.name||null;if(typeof te=="string")return te;switch(te){case o:return"Fragment";case i:return"Portal";case p:return"Profiler";case u:return"StrictMode";case S:return"Suspense";case b:return"SuspenseList"}if(typeof te=="object")switch(te.$$typeof){case g:var ze=te;return oe(ze)+".Consumer";case f:var Ze=te;return oe(Ze._context)+".Provider";case y:return J(te,te.render,"ForwardRef");case R:var nt=te.displayName||null;return nt!==null?nt:X(te.type)||"Memo";case _:{var Bt=te,Nt=Bt._payload,Et=Bt._init;try{return X(Et(Nt))}catch{return null}}}return null}var ne=Object.assign,de=0,we,ge,le,Re,pe,G,ue;function De(){}De.__reactDisabledLog=!0;function ye(){{if(de===0){we=console.log,ge=console.info,le=console.warn,Re=console.error,pe=console.group,G=console.groupCollapsed,ue=console.groupEnd;var te={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:te,log:te,warn:te,error:te,group:te,groupCollapsed:te,groupEnd:te})}de++}}function Le(){{if(de--,de===0){var te={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ne({},te,{value:we}),info:ne({},te,{value:ge}),warn:ne({},te,{value:le}),error:ne({},te,{value:Re}),group:ne({},te,{value:pe}),groupCollapsed:ne({},te,{value:G}),groupEnd:ne({},te,{value:ue})})}de<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var We=H.ReactCurrentDispatcher,Ue;function qe(te,ze,Ze){{if(Ue===void 0)try{throw Error()}catch(Bt){var nt=Bt.stack.trim().match(/\n( *(at )?)/);Ue=nt&&nt[1]||""}return`
|
|
40
|
-
`+Ue+te}}var Qe=!1,ft;{var rt=typeof WeakMap=="function"?WeakMap:Map;ft=new rt}function Tt(te,ze){if(!te||Qe)return"";{var Ze=ft.get(te);if(Ze!==void 0)return Ze}var nt;Qe=!0;var Bt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Nt;Nt=We.current,We.current=null,ye();try{if(ze){var Et=function(){throw Error()};if(Object.defineProperty(Et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Et,[])}catch(Vt){nt=Vt}Reflect.construct(te,[],Et)}else{try{Et.call()}catch(Vt){nt=Vt}te.call(Et.prototype)}}else{try{throw Error()}catch(Vt){nt=Vt}te()}}catch(Vt){if(Vt&&nt&&typeof Vt.stack=="string"){for(var Kt=Vt.stack.split(`
|
|
41
|
-
`),Zn=nt.stack.split(`
|
|
42
|
-
`),Dn=Kt.length-1,Vn=Zn.length-1;Dn>=1&&Vn>=0&&Kt[Dn]!==Zn[Vn];)Vn--;for(;Dn>=1&&Vn>=0;Dn--,Vn--)if(Kt[Dn]!==Zn[Vn]){if(Dn!==1||Vn!==1)do if(Dn--,Vn--,Vn<0||Kt[Dn]!==Zn[Vn]){var Rn=`
|
|
43
|
-
`+Kt[Dn].replace(" at new "," at ");return te.displayName&&Rn.includes("<anonymous>")&&(Rn=Rn.replace("<anonymous>",te.displayName)),typeof te=="function"&&ft.set(te,Rn),Rn}while(Dn>=1&&Vn>=0);break}}}finally{Qe=!1,We.current=Nt,Le(),Error.prepareStackTrace=Bt}var fi=te?te.displayName||te.name:"",Di=fi?qe(fi):"";return typeof te=="function"&&ft.set(te,Di),Di}function _t(te,ze,Ze){return Tt(te,!1)}function $e(te){var ze=te.prototype;return!!(ze&&ze.isReactComponent)}function yt(te,ze,Ze){if(te==null)return"";if(typeof te=="function")return Tt(te,$e(te));if(typeof te=="string")return qe(te);switch(te){case S:return qe("Suspense");case b:return qe("SuspenseList")}if(typeof te=="object")switch(te.$$typeof){case y:return _t(te.render);case R:return yt(te.type,ze,Ze);case _:{var nt=te,Bt=nt._payload,Nt=nt._init;try{return yt(Nt(Bt),ze,Ze)}catch{}}}return""}var st=Object.prototype.hasOwnProperty,sn={},cn=H.ReactDebugCurrentFrame;function pn(te){if(te){var ze=te._owner,Ze=yt(te.type,te._source,ze?ze.type:null);cn.setExtraStackFrame(Ze)}else cn.setExtraStackFrame(null)}function rn(te,ze,Ze,nt,Bt){{var Nt=Function.call.bind(st);for(var Et in te)if(Nt(te,Et)){var Kt=void 0;try{if(typeof te[Et]!="function"){var Zn=Error((nt||"React class")+": "+Ze+" type `"+Et+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof te[Et]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Zn.name="Invariant Violation",Zn}Kt=te[Et](ze,Et,nt,Ze,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Dn){Kt=Dn}Kt&&!(Kt instanceof Error)&&(pn(Bt),I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",nt||"React class",Ze,Et,typeof Kt),pn(null)),Kt instanceof Error&&!(Kt.message in sn)&&(sn[Kt.message]=!0,pn(Bt),I("Failed %s type: %s",Ze,Kt.message),pn(null))}}}var bt=Array.isArray;function Ut(te){return bt(te)}function tt(te){{var ze=typeof Symbol=="function"&&Symbol.toStringTag,Ze=ze&&te[Symbol.toStringTag]||te.constructor.name||"Object";return Ze}}function an(te){try{return St(te),!1}catch{return!0}}function St(te){return""+te}function Pt(te){if(an(te))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tt(te)),St(te)}var Un=H.ReactCurrentOwner,Cn={key:!0,ref:!0,__self:!0,__source:!0},Jn,A;function w(te){if(st.call(te,"ref")){var ze=Object.getOwnPropertyDescriptor(te,"ref").get;if(ze&&ze.isReactWarning)return!1}return te.ref!==void 0}function O(te){if(st.call(te,"key")){var ze=Object.getOwnPropertyDescriptor(te,"key").get;if(ze&&ze.isReactWarning)return!1}return te.key!==void 0}function U(te,ze){typeof te.ref=="string"&&Un.current}function ee(te,ze){{var Ze=function(){Jn||(Jn=!0,I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ze))};Ze.isReactWarning=!0,Object.defineProperty(te,"key",{get:Ze,configurable:!0})}}function ve(te,ze){{var Ze=function(){A||(A=!0,I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ze))};Ze.isReactWarning=!0,Object.defineProperty(te,"ref",{get:Ze,configurable:!0})}}var Se=function(te,ze,Ze,nt,Bt,Nt,Et){var Kt={$$typeof:r,type:te,key:ze,ref:Ze,props:Et,_owner:Nt};return Kt._store={},Object.defineProperty(Kt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Kt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:nt}),Object.defineProperty(Kt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Bt}),Object.freeze&&(Object.freeze(Kt.props),Object.freeze(Kt)),Kt};function Xe(te,ze,Ze,nt,Bt){{var Nt,Et={},Kt=null,Zn=null;Ze!==void 0&&(Pt(Ze),Kt=""+Ze),O(ze)&&(Pt(ze.key),Kt=""+ze.key),w(ze)&&(Zn=ze.ref,U(ze,Bt));for(Nt in ze)st.call(ze,Nt)&&!Cn.hasOwnProperty(Nt)&&(Et[Nt]=ze[Nt]);if(te&&te.defaultProps){var Dn=te.defaultProps;for(Nt in Dn)Et[Nt]===void 0&&(Et[Nt]=Dn[Nt])}if(Kt||Zn){var Vn=typeof te=="function"?te.displayName||te.name||"Unknown":te;Kt&&ee(Et,Vn),Zn&&ve(Et,Vn)}return Se(te,Kt,Zn,Bt,nt,Un.current,Et)}}var mt=H.ReactCurrentOwner,gt=H.ReactDebugCurrentFrame;function Ct(te){if(te){var ze=te._owner,Ze=yt(te.type,te._source,ze?ze.type:null);gt.setExtraStackFrame(Ze)}else gt.setExtraStackFrame(null)}var Dt;Dt=!1;function or(te){return typeof te=="object"&&te!==null&&te.$$typeof===r}function Bn(){{if(mt.current){var te=X(mt.current.type);if(te)return`
|
|
44
|
-
|
|
45
|
-
Check the render method of \``+te+"`."}return""}}function Mn(te){return""}var kr={};function kn(te){{var ze=Bn();if(!ze){var Ze=typeof te=="string"?te:te.displayName||te.name;Ze&&(ze=`
|
|
46
|
-
|
|
47
|
-
Check the top-level render call using <`+Ze+">.")}return ze}}function Ot(te,ze){{if(!te._store||te._store.validated||te.key!=null)return;te._store.validated=!0;var Ze=kn(ze);if(kr[Ze])return;kr[Ze]=!0;var nt="";te&&te._owner&&te._owner!==mt.current&&(nt=" It was passed a child from "+X(te._owner.type)+"."),Ct(te),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ze,nt),Ct(null)}}function et(te,ze){{if(typeof te!="object")return;if(Ut(te))for(var Ze=0;Ze<te.length;Ze++){var nt=te[Ze];or(nt)&&Ot(nt,ze)}else if(or(te))te._store&&(te._store.validated=!0);else if(te){var Bt=D(te);if(typeof Bt=="function"&&Bt!==te.entries)for(var Nt=Bt.call(te),Et;!(Et=Nt.next()).done;)or(Et.value)&&Ot(Et.value,ze)}}}function At(te){{var ze=te.type;if(ze==null||typeof ze=="string")return;var Ze;if(typeof ze=="function")Ze=ze.propTypes;else if(typeof ze=="object"&&(ze.$$typeof===y||ze.$$typeof===R))Ze=ze.propTypes;else return;if(Ze){var nt=X(ze);rn(Ze,te.props,"prop",nt,te)}else if(ze.PropTypes!==void 0&&!Dt){Dt=!0;var Bt=X(ze);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Bt||"Unknown")}typeof ze.getDefaultProps=="function"&&!ze.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dn(te){{for(var ze=Object.keys(te.props),Ze=0;Ze<ze.length;Ze++){var nt=ze[Ze];if(nt!=="children"&&nt!=="key"){Ct(te),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",nt),Ct(null);break}}te.ref!==null&&(Ct(te),I("Invalid attribute `ref` supplied to `React.Fragment`."),Ct(null))}}var qt={};function Qt(te,ze,Ze,nt,Bt,Nt){{var Et=Y(te);if(!Et){var Kt="";(te===void 0||typeof te=="object"&&te!==null&&Object.keys(te).length===0)&&(Kt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Zn=Mn();Zn?Kt+=Zn:Kt+=Bn();var Dn;te===null?Dn="null":Ut(te)?Dn="array":te!==void 0&&te.$$typeof===r?(Dn="<"+(X(te.type)||"Unknown")+" />",Kt=" Did you accidentally export a JSX literal instead of a component?"):Dn=typeof te,I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Dn,Kt)}var Vn=Xe(te,ze,Ze,Bt,Nt);if(Vn==null)return Vn;if(Et){var Rn=ze.children;if(Rn!==void 0)if(nt)if(Ut(Rn)){for(var fi=0;fi<Rn.length;fi++)et(Rn[fi],te);Object.freeze&&Object.freeze(Rn)}else I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else et(Rn,te)}if(st.call(ze,"key")){var Di=X(te),Vt=Object.keys(ze).filter(function(aa){return aa!=="key"}),en=Vt.length>0?"{key: someKey, "+Vt.join(": ..., ")+": ...}":"{key: someKey}";if(!qt[Di+en]){var Mi=Vt.length>0?"{"+Vt.join(": ..., ")+": ...}":"{}";I(`A props object containing a "key" prop is being spread into JSX:
|
|
48
|
-
let props = %s;
|
|
49
|
-
<%s {...props} />
|
|
50
|
-
React keys must be passed directly to JSX without using spread:
|
|
51
|
-
let props = %s;
|
|
52
|
-
<%s key={someKey} {...props} />`,en,Di,Mi,Di),qt[Di+en]=!0}}return te===o?dn(Vn):At(Vn),Vn}}function Nn(te,ze,Ze){return Qt(te,ze,Ze,!0)}function lr(te,ze,Ze){return Qt(te,ze,Ze,!1)}var Nr=lr,$r=Nn;zv.Fragment=o,zv.jsx=Nr,zv.jsxs=$r}()),zv}me.env.NODE_ENV==="production"?iE.exports=JA():iE.exports=ZA();var Fc=iE.exports,x=Iv();const _n=rE(x),Ig=$v({__proto__:null,default:_n},[x]);var yT={exports:{}};/*!
|
|
53
|
-
Copyright (c) 2018 Jed Watson.
|
|
54
|
-
Licensed under the MIT License (MIT), see
|
|
55
|
-
http://jedwatson.github.io/classnames
|
|
56
|
-
*/(function(t){(function(){var r={}.hasOwnProperty;function i(){for(var p="",f=0;f<arguments.length;f++){var g=arguments[f];g&&(p=u(p,o(g)))}return p}function o(p){if(typeof p=="string"||typeof p=="number")return p;if(typeof p!="object")return"";if(Array.isArray(p))return i.apply(null,p);if(p.toString!==Object.prototype.toString&&!p.toString.toString().includes("[native code]"))return p.toString();var f="";for(var g in p)r.call(p,g)&&p[g]&&(f=u(f,g));return f}function u(p,f){return f?p?p+" "+f:p+f:p}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(yT);var e$=yT.exports;const Zt=rE(e$);function wn(){return wn=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)({}).hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},wn.apply(null,arguments)}function un(t){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},un(t)}var t$=Symbol.for("react.element"),n$=Symbol.for("react.transitional.element"),r$=Symbol.for("react.fragment");function bT(t){return t&&un(t)==="object"&&(t.$$typeof===t$||t.$$typeof===n$)&&t.type===r$}function Iu(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=[];return _n.Children.forEach(t,function(o){o==null&&!r.keepEmpty||(Array.isArray(o)?i=i.concat(Iu(o)):bT(o)&&o.props?i=i.concat(Iu(o.props.children,r)):i.push(o))}),i}var aE={},oE=[],i$=function(r){oE.push(r)};function hd(t,r){if(me.env.NODE_ENV!=="production"&&!t&&console!==void 0){var i=oE.reduce(function(o,u){return u(o??"","warning")},r);i&&console.error("Warning: ".concat(i))}}function a$(t,r){if(me.env.NODE_ENV!=="production"&&!t&&console!==void 0){var i=oE.reduce(function(o,u){return u(o??"","note")},r);i&&console.warn("Note: ".concat(i))}}function ST(){aE={}}function ET(t,r,i){!r&&!aE[i]&&(t(!1,i),aE[i]=!0)}function ur(t,r){ET(hd,t,r)}function o$(t,r){ET(a$,t,r)}ur.preMessage=i$,ur.resetWarned=ST,ur.noteOnce=o$;function l$(t,r){if(un(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(un(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function CT(t){var r=l$(t,"string");return un(r)=="symbol"?r:r+""}function he(t,r,i){return(r=CT(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function wT(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),i.push.apply(i,o)}return i}function ke(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?wT(Object(i),!0).forEach(function(o){he(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):wT(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}var lE={exports:{}},no={},zg={exports:{}},uE={};/**
|
|
57
|
-
* @license React
|
|
58
|
-
* scheduler.production.min.js
|
|
59
|
-
*
|
|
60
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the MIT license found in the
|
|
63
|
-
* LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/var xT;function u$(){return xT||(xT=1,function(t){function r(le,Re){var pe=le.length;le.push(Re);e:for(;0<pe;){var G=pe-1>>>1,ue=le[G];if(0<u(ue,Re))le[G]=Re,le[pe]=ue,pe=G;else break e}}function i(le){return le.length===0?null:le[0]}function o(le){if(le.length===0)return null;var Re=le[0],pe=le.pop();if(pe!==Re){le[0]=pe;e:for(var G=0,ue=le.length,De=ue>>>1;G<De;){var ye=2*(G+1)-1,Le=le[ye],We=ye+1,Ue=le[We];if(0>u(Le,pe))We<ue&&0>u(Ue,Le)?(le[G]=Ue,le[We]=pe,G=We):(le[G]=Le,le[ye]=pe,G=ye);else if(We<ue&&0>u(Ue,pe))le[G]=Ue,le[We]=pe,G=We;else break e}}return Re}function u(le,Re){var pe=le.sortIndex-Re.sortIndex;return pe!==0?pe:le.id-Re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;t.unstable_now=function(){return p.now()}}else{var f=Date,g=f.now();t.unstable_now=function(){return f.now()-g}}var y=[],S=[],b=1,R=null,_=3,P=!1,N=!1,L=!1,D=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(le){for(var Re=i(S);Re!==null;){if(Re.callback===null)o(S);else if(Re.startTime<=le)o(S),Re.sortIndex=Re.expirationTime,r(y,Re);else break;Re=i(S)}}function V(le){if(L=!1,z(le),!N)if(i(y)!==null)N=!0,we(B);else{var Re=i(S);Re!==null&&ge(V,Re.startTime-le)}}function B(le,Re){N=!1,L&&(L=!1,H(Z),Z=-1),P=!0;var pe=_;try{for(z(Re),R=i(y);R!==null&&(!(R.expirationTime>Re)||le&&!J());){var G=R.callback;if(typeof G=="function"){R.callback=null,_=R.priorityLevel;var ue=G(R.expirationTime<=Re);Re=t.unstable_now(),typeof ue=="function"?R.callback=ue:R===i(y)&&o(y),z(Re)}else o(y);R=i(y)}if(R!==null)var De=!0;else{var ye=i(S);ye!==null&&ge(V,ye.startTime-Re),De=!1}return De}finally{R=null,_=pe,P=!1}}var W=!1,K=null,Z=-1,ie=5,Y=-1;function J(){return!(t.unstable_now()-Y<ie)}function oe(){if(K!==null){var le=t.unstable_now();Y=le;var Re=!0;try{Re=K(!0,le)}finally{Re?X():(W=!1,K=null)}}else W=!1}var X;if(typeof I=="function")X=function(){I(oe)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,de=ne.port2;ne.port1.onmessage=oe,X=function(){de.postMessage(null)}}else X=function(){D(oe,0)};function we(le){K=le,W||(W=!0,X())}function ge(le,Re){Z=D(function(){le(t.unstable_now())},Re)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(le){le.callback=null},t.unstable_continueExecution=function(){N||P||(N=!0,we(B))},t.unstable_forceFrameRate=function(le){0>le||125<le?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<le?Math.floor(1e3/le):5},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_getFirstCallbackNode=function(){return i(y)},t.unstable_next=function(le){switch(_){case 1:case 2:case 3:var Re=3;break;default:Re=_}var pe=_;_=Re;try{return le()}finally{_=pe}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(le,Re){switch(le){case 1:case 2:case 3:case 4:case 5:break;default:le=3}var pe=_;_=le;try{return Re()}finally{_=pe}},t.unstable_scheduleCallback=function(le,Re,pe){var G=t.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?G+pe:G):pe=G,le){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=pe+ue,le={id:b++,callback:Re,priorityLevel:le,startTime:pe,expirationTime:ue,sortIndex:-1},pe>G?(le.sortIndex=pe,r(S,le),i(y)===null&&le===i(S)&&(L?(H(Z),Z=-1):L=!0,ge(V,pe-G))):(le.sortIndex=ue,r(y,le),N||P||(N=!0,we(B))),le},t.unstable_shouldYield=J,t.unstable_wrapCallback=function(le){var Re=_;return function(){var pe=_;_=Re;try{return le.apply(this,arguments)}finally{_=pe}}}}(uE)),uE}var sE={},RT;function s$(){return RT||(RT=1,function(t){me.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=!1,i=5;function o(A,w){var O=A.length;A.push(w),f(A,w,O)}function u(A){return A.length===0?null:A[0]}function p(A){if(A.length===0)return null;var w=A[0],O=A.pop();return O!==w&&(A[0]=O,g(A,O,0)),w}function f(A,w,O){for(var U=O;U>0;){var ee=U-1>>>1,ve=A[ee];if(y(ve,w)>0)A[ee]=w,A[U]=ve,U=ee;else return}}function g(A,w,O){for(var U=O,ee=A.length,ve=ee>>>1;U<ve;){var Se=(U+1)*2-1,Xe=A[Se],mt=Se+1,gt=A[mt];if(y(Xe,w)<0)mt<ee&&y(gt,Xe)<0?(A[U]=gt,A[mt]=w,U=mt):(A[U]=Xe,A[Se]=w,U=Se);else if(mt<ee&&y(gt,w)<0)A[U]=gt,A[mt]=w,U=mt;else return}}function y(A,w){var O=A.sortIndex-w.sortIndex;return O!==0?O:A.id-w.id}var S=1,b=2,R=3,_=4,P=5;function N(A,w){}var L=typeof performance=="object"&&typeof performance.now=="function";if(L){var D=performance;t.unstable_now=function(){return D.now()}}else{var H=Date,I=H.now();t.unstable_now=function(){return H.now()-I}}var z=1073741823,V=-1,B=250,W=5e3,K=1e4,Z=z,ie=[],Y=[],J=1,oe=null,X=R,ne=!1,de=!1,we=!1,ge=typeof setTimeout=="function"?setTimeout:null,le=typeof clearTimeout=="function"?clearTimeout:null,Re=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function pe(A){for(var w=u(Y);w!==null;){if(w.callback===null)p(Y);else if(w.startTime<=A)p(Y),w.sortIndex=w.expirationTime,o(ie,w);else return;w=u(Y)}}function G(A){if(we=!1,pe(A),!de)if(u(ie)!==null)de=!0,St(ue);else{var w=u(Y);w!==null&&Pt(G,w.startTime-A)}}function ue(A,w){de=!1,we&&(we=!1,Un()),ne=!0;var O=X;try{var U;if(!r)return De(A,w)}finally{oe=null,X=O,ne=!1}}function De(A,w){var O=w;for(pe(O),oe=u(ie);oe!==null&&!(oe.expirationTime>O&&(!A||cn()));){var U=oe.callback;if(typeof U=="function"){oe.callback=null,X=oe.priorityLevel;var ee=oe.expirationTime<=O,ve=U(ee);O=t.unstable_now(),typeof ve=="function"?oe.callback=ve:oe===u(ie)&&p(ie),pe(O)}else p(ie);oe=u(ie)}if(oe!==null)return!0;var Se=u(Y);return Se!==null&&Pt(G,Se.startTime-O),!1}function ye(A,w){switch(A){case S:case b:case R:case _:case P:break;default:A=R}var O=X;X=A;try{return w()}finally{X=O}}function Le(A){var w;switch(X){case S:case b:case R:w=R;break;default:w=X;break}var O=X;X=w;try{return A()}finally{X=O}}function We(A){var w=X;return function(){var O=X;X=w;try{return A.apply(this,arguments)}finally{X=O}}}function Ue(A,w,O){var U=t.unstable_now(),ee;if(typeof O=="object"&&O!==null){var ve=O.delay;typeof ve=="number"&&ve>0?ee=U+ve:ee=U}else ee=U;var Se;switch(A){case S:Se=V;break;case b:Se=B;break;case P:Se=Z;break;case _:Se=K;break;case R:default:Se=W;break}var Xe=ee+Se,mt={id:J++,callback:w,priorityLevel:A,startTime:ee,expirationTime:Xe,sortIndex:-1};return ee>U?(mt.sortIndex=ee,o(Y,mt),u(ie)===null&&mt===u(Y)&&(we?Un():we=!0,Pt(G,ee-U))):(mt.sortIndex=Xe,o(ie,mt),!de&&!ne&&(de=!0,St(ue))),mt}function qe(){}function Qe(){!de&&!ne&&(de=!0,St(ue))}function ft(){return u(ie)}function rt(A){A.callback=null}function Tt(){return X}var _t=!1,$e=null,yt=-1,st=i,sn=-1;function cn(){var A=t.unstable_now()-sn;return!(A<st)}function pn(){}function rn(A){if(A<0||A>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}A>0?st=Math.floor(1e3/A):st=i}var bt=function(){if($e!==null){var A=t.unstable_now();sn=A;var w=!0,O=!0;try{O=$e(w,A)}finally{O?Ut():(_t=!1,$e=null)}}else _t=!1},Ut;if(typeof Re=="function")Ut=function(){Re(bt)};else if(typeof MessageChannel<"u"){var tt=new MessageChannel,an=tt.port2;tt.port1.onmessage=bt,Ut=function(){an.postMessage(null)}}else Ut=function(){ge(bt,0)};function St(A){$e=A,_t||(_t=!0,Ut())}function Pt(A,w){yt=ge(function(){A(t.unstable_now())},w)}function Un(){le(yt),yt=-1}var Cn=pn,Jn=null;t.unstable_IdlePriority=P,t.unstable_ImmediatePriority=S,t.unstable_LowPriority=_,t.unstable_NormalPriority=R,t.unstable_Profiling=Jn,t.unstable_UserBlockingPriority=b,t.unstable_cancelCallback=rt,t.unstable_continueExecution=Qe,t.unstable_forceFrameRate=rn,t.unstable_getCurrentPriorityLevel=Tt,t.unstable_getFirstCallbackNode=ft,t.unstable_next=Le,t.unstable_pauseExecution=qe,t.unstable_requestPaint=Cn,t.unstable_runWithPriority=ye,t.unstable_scheduleCallback=Ue,t.unstable_shouldYield=cn,t.unstable_wrapCallback=We,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(sE)),sE}var TT;function OT(){return TT||(TT=1,me.env.NODE_ENV==="production"?zg.exports=u$():zg.exports=s$()),zg.exports}/**
|
|
65
|
-
* @license React
|
|
66
|
-
* react-dom.production.min.js
|
|
67
|
-
*
|
|
68
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the MIT license found in the
|
|
71
|
-
* LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var _T;function c$(){if(_T)return no;_T=1;var t=Iv(),r=OT();function i(a){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,u={};function p(a,l){f(a,l),f(a+"Capture",l)}function f(a,l){for(u[a]=l,a=0;a<l.length;a++)o.add(l[a])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,S=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b={},R={};function _(a){return y.call(R,a)?!0:y.call(b,a)?!1:S.test(a)?R[a]=!0:(b[a]=!0,!1)}function P(a,l,d,h){if(d!==null&&d.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return h?!1:d!==null?!d.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function N(a,l,d,h){if(l===null||typeof l>"u"||P(a,l,d,h))return!0;if(h)return!1;if(d!==null)switch(d.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function L(a,l,d,h,E,T,F){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=h,this.attributeNamespace=E,this.mustUseProperty=d,this.propertyName=a,this.type=l,this.sanitizeURL=T,this.removeEmptyString=F}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){D[a]=new L(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var l=a[0];D[l]=new L(l,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){D[a]=new L(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){D[a]=new L(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){D[a]=new L(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){D[a]=new L(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){D[a]=new L(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){D[a]=new L(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){D[a]=new L(a,5,!1,a.toLowerCase(),null,!1,!1)});var H=/[\-:]([a-z])/g;function I(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var l=a.replace(H,I);D[l]=new L(l,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var l=a.replace(H,I);D[l]=new L(l,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var l=a.replace(H,I);D[l]=new L(l,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){D[a]=new L(a,1,!1,a.toLowerCase(),null,!1,!1)}),D.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){D[a]=new L(a,1,!1,a.toLowerCase(),null,!0,!0)});function z(a,l,d,h){var E=D.hasOwnProperty(l)?D[l]:null;(E!==null?E.type!==0:h||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(N(l,d,E,h)&&(d=null),h||E===null?_(l)&&(d===null?a.removeAttribute(l):a.setAttribute(l,""+d)):E.mustUseProperty?a[E.propertyName]=d===null?E.type===3?!1:"":d:(l=E.attributeName,h=E.attributeNamespace,d===null?a.removeAttribute(l):(E=E.type,d=E===3||E===4&&d===!0?"":""+d,h?a.setAttributeNS(h,l,d):a.setAttribute(l,d))))}var V=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=Symbol.for("react.element"),W=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),Y=Symbol.for("react.provider"),J=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),le=Symbol.iterator;function Re(a){return a===null||typeof a!="object"?null:(a=le&&a[le]||a["@@iterator"],typeof a=="function"?a:null)}var pe=Object.assign,G;function ue(a){if(G===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);G=l&&l[1]||""}return`
|
|
73
|
-
`+G+a}var De=!1;function ye(a,l){if(!a||De)return"";De=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(_e){var h=_e}Reflect.construct(a,[],l)}else{try{l.call()}catch(_e){h=_e}a.call(l.prototype)}else{try{throw Error()}catch(_e){h=_e}a()}}catch(_e){if(_e&&h&&typeof _e.stack=="string"){for(var E=_e.stack.split(`
|
|
74
|
-
`),T=h.stack.split(`
|
|
75
|
-
`),F=E.length-1,Q=T.length-1;1<=F&&0<=Q&&E[F]!==T[Q];)Q--;for(;1<=F&&0<=Q;F--,Q--)if(E[F]!==T[Q]){if(F!==1||Q!==1)do if(F--,Q--,0>Q||E[F]!==T[Q]){var ae=`
|
|
76
|
-
`+E[F].replace(" at new "," at ");return a.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",a.displayName)),ae}while(1<=F&&0<=Q);break}}}finally{De=!1,Error.prepareStackTrace=d}return(a=a?a.displayName||a.name:"")?ue(a):""}function Le(a){switch(a.tag){case 5:return ue(a.type);case 16:return ue("Lazy");case 13:return ue("Suspense");case 19:return ue("SuspenseList");case 0:case 2:case 15:return a=ye(a.type,!1),a;case 11:return a=ye(a.type.render,!1),a;case 1:return a=ye(a.type,!0),a;default:return""}}function We(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case K:return"Fragment";case W:return"Portal";case ie:return"Profiler";case Z:return"StrictMode";case X:return"Suspense";case ne:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case J:return(a.displayName||"Context")+".Consumer";case Y:return(a._context.displayName||"Context")+".Provider";case oe:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case de:return l=a.displayName||null,l!==null?l:We(a.type)||"Memo";case we:l=a._payload,a=a._init;try{return We(a(l))}catch{}}return null}function Ue(a){var l=a.type;switch(a.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=l.render,a=a.displayName||a.name||"",l.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return We(l);case 8:return l===Z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function qe(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Qe(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function ft(a){var l=Qe(a)?"checked":"value",d=Object.getOwnPropertyDescriptor(a.constructor.prototype,l),h=""+a[l];if(!a.hasOwnProperty(l)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var E=d.get,T=d.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return E.call(this)},set:function(F){h=""+F,T.call(this,F)}}),Object.defineProperty(a,l,{enumerable:d.enumerable}),{getValue:function(){return h},setValue:function(F){h=""+F},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function rt(a){a._valueTracker||(a._valueTracker=ft(a))}function Tt(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var d=l.getValue(),h="";return a&&(h=Qe(a)?a.checked?"true":"false":a.value),a=h,a!==d?(l.setValue(a),!0):!1}function _t(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function $e(a,l){var d=l.checked;return pe({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??a._wrapperState.initialChecked})}function yt(a,l){var d=l.defaultValue==null?"":l.defaultValue,h=l.checked!=null?l.checked:l.defaultChecked;d=qe(l.value!=null?l.value:d),a._wrapperState={initialChecked:h,initialValue:d,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function st(a,l){l=l.checked,l!=null&&z(a,"checked",l,!1)}function sn(a,l){st(a,l);var d=qe(l.value),h=l.type;if(d!=null)h==="number"?(d===0&&a.value===""||a.value!=d)&&(a.value=""+d):a.value!==""+d&&(a.value=""+d);else if(h==="submit"||h==="reset"){a.removeAttribute("value");return}l.hasOwnProperty("value")?pn(a,l.type,d):l.hasOwnProperty("defaultValue")&&pn(a,l.type,qe(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(a.defaultChecked=!!l.defaultChecked)}function cn(a,l,d){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var h=l.type;if(!(h!=="submit"&&h!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+a._wrapperState.initialValue,d||l===a.value||(a.value=l),a.defaultValue=l}d=a.name,d!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,d!==""&&(a.name=d)}function pn(a,l,d){(l!=="number"||_t(a.ownerDocument)!==a)&&(d==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+d&&(a.defaultValue=""+d))}var rn=Array.isArray;function bt(a,l,d,h){if(a=a.options,l){l={};for(var E=0;E<d.length;E++)l["$"+d[E]]=!0;for(d=0;d<a.length;d++)E=l.hasOwnProperty("$"+a[d].value),a[d].selected!==E&&(a[d].selected=E),E&&h&&(a[d].defaultSelected=!0)}else{for(d=""+qe(d),l=null,E=0;E<a.length;E++){if(a[E].value===d){a[E].selected=!0,h&&(a[E].defaultSelected=!0);return}l!==null||a[E].disabled||(l=a[E])}l!==null&&(l.selected=!0)}}function Ut(a,l){if(l.dangerouslySetInnerHTML!=null)throw Error(i(91));return pe({},l,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function tt(a,l){var d=l.value;if(d==null){if(d=l.children,l=l.defaultValue,d!=null){if(l!=null)throw Error(i(92));if(rn(d)){if(1<d.length)throw Error(i(93));d=d[0]}l=d}l==null&&(l=""),d=l}a._wrapperState={initialValue:qe(d)}}function an(a,l){var d=qe(l.value),h=qe(l.defaultValue);d!=null&&(d=""+d,d!==a.value&&(a.value=d),l.defaultValue==null&&a.defaultValue!==d&&(a.defaultValue=d)),h!=null&&(a.defaultValue=""+h)}function St(a){var l=a.textContent;l===a._wrapperState.initialValue&&l!==""&&l!==null&&(a.value=l)}function Pt(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Un(a,l){return a==null||a==="http://www.w3.org/1999/xhtml"?Pt(l):a==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var Cn,Jn=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,d,h,E){MSApp.execUnsafeLocalFunction(function(){return a(l,d,h,E)})}:a}(function(a,l){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=l;else{for(Cn=Cn||document.createElement("div"),Cn.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=Cn.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}});function A(a,l){if(l){var d=a.firstChild;if(d&&d===a.lastChild&&d.nodeType===3){d.nodeValue=l;return}}a.textContent=l}var w={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},O=["Webkit","ms","Moz","O"];Object.keys(w).forEach(function(a){O.forEach(function(l){l=l+a.charAt(0).toUpperCase()+a.substring(1),w[l]=w[a]})});function U(a,l,d){return l==null||typeof l=="boolean"||l===""?"":d||typeof l!="number"||l===0||w.hasOwnProperty(a)&&w[a]?(""+l).trim():l+"px"}function ee(a,l){a=a.style;for(var d in l)if(l.hasOwnProperty(d)){var h=d.indexOf("--")===0,E=U(d,l[d],h);d==="float"&&(d="cssFloat"),h?a.setProperty(d,E):a[d]=E}}var ve=pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(a,l){if(l){if(ve[a]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(i(137,a));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(i(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(l.style!=null&&typeof l.style!="object")throw Error(i(62))}}function Xe(a,l){if(a.indexOf("-")===-1)return typeof l.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mt=null;function gt(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Ct=null,Dt=null,or=null;function Bn(a){if(a=It(a)){if(typeof Ct!="function")throw Error(i(280));var l=a.stateNode;l&&(l=Wr(l),Ct(a.stateNode,a.type,l))}}function Mn(a){Dt?or?or.push(a):or=[a]:Dt=a}function kr(){if(Dt){var a=Dt,l=or;if(or=Dt=null,Bn(a),l)for(a=0;a<l.length;a++)Bn(l[a])}}function kn(a,l){return a(l)}function Ot(){}var et=!1;function At(a,l,d){if(et)return a(l,d);et=!0;try{return kn(a,l,d)}finally{et=!1,(Dt!==null||or!==null)&&(Ot(),kr())}}function dn(a,l){var d=a.stateNode;if(d===null)return null;var h=Wr(d);if(h===null)return null;d=h[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(a=a.type,h=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!h;break e;default:a=!1}if(a)return null;if(d&&typeof d!="function")throw Error(i(231,l,typeof d));return d}var qt=!1;if(g)try{var Qt={};Object.defineProperty(Qt,"passive",{get:function(){qt=!0}}),window.addEventListener("test",Qt,Qt),window.removeEventListener("test",Qt,Qt)}catch{qt=!1}function Nn(a,l,d,h,E,T,F,Q,ae){var _e=Array.prototype.slice.call(arguments,3);try{l.apply(d,_e)}catch(Ve){this.onError(Ve)}}var lr=!1,Nr=null,$r=!1,te=null,ze={onError:function(a){lr=!0,Nr=a}};function Ze(a,l,d,h,E,T,F,Q,ae){lr=!1,Nr=null,Nn.apply(ze,arguments)}function nt(a,l,d,h,E,T,F,Q,ae){if(Ze.apply(this,arguments),lr){if(lr){var _e=Nr;lr=!1,Nr=null}else throw Error(i(198));$r||($r=!0,te=_e)}}function Bt(a){var l=a,d=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,l.flags&4098&&(d=l.return),a=l.return;while(a)}return l.tag===3?d:null}function Nt(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function Et(a){if(Bt(a)!==a)throw Error(i(188))}function Kt(a){var l=a.alternate;if(!l){if(l=Bt(a),l===null)throw Error(i(188));return l!==a?null:a}for(var d=a,h=l;;){var E=d.return;if(E===null)break;var T=E.alternate;if(T===null){if(h=E.return,h!==null){d=h;continue}break}if(E.child===T.child){for(T=E.child;T;){if(T===d)return Et(E),a;if(T===h)return Et(E),l;T=T.sibling}throw Error(i(188))}if(d.return!==h.return)d=E,h=T;else{for(var F=!1,Q=E.child;Q;){if(Q===d){F=!0,d=E,h=T;break}if(Q===h){F=!0,h=E,d=T;break}Q=Q.sibling}if(!F){for(Q=T.child;Q;){if(Q===d){F=!0,d=T,h=E;break}if(Q===h){F=!0,h=T,d=E;break}Q=Q.sibling}if(!F)throw Error(i(189))}}if(d.alternate!==h)throw Error(i(190))}if(d.tag!==3)throw Error(i(188));return d.stateNode.current===d?a:l}function Zn(a){return a=Kt(a),a!==null?Dn(a):null}function Dn(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var l=Dn(a);if(l!==null)return l;a=a.sibling}return null}var Vn=r.unstable_scheduleCallback,Rn=r.unstable_cancelCallback,fi=r.unstable_shouldYield,Di=r.unstable_requestPaint,Vt=r.unstable_now,en=r.unstable_getCurrentPriorityLevel,Mi=r.unstable_ImmediatePriority,aa=r.unstable_UserBlockingPriority,Si=r.unstable_NormalPriority,Jr=r.unstable_LowPriority,Ba=r.unstable_IdlePriority,Pi=null,Er=null;function Va(a){if(Er&&typeof Er.onCommitFiberRoot=="function")try{Er.onCommitFiberRoot(Pi,a,void 0,(a.current.flags&128)===128)}catch{}}var Tr=Math.clz32?Math.clz32:oa,Ai=Math.log,Ei=Math.LN2;function oa(a){return a>>>=0,a===0?32:31-(Ai(a)/Ei|0)|0}var Ci=64,Cr=4194304;function $i(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function wi(a,l){var d=a.pendingLanes;if(d===0)return 0;var h=0,E=a.suspendedLanes,T=a.pingedLanes,F=d&268435455;if(F!==0){var Q=F&~E;Q!==0?h=$i(Q):(T&=F,T!==0&&(h=$i(T)))}else F=d&~E,F!==0?h=$i(F):T!==0&&(h=$i(T));if(h===0)return 0;if(l!==0&&l!==h&&!(l&E)&&(E=h&-h,T=l&-l,E>=T||E===16&&(T&4194240)!==0))return l;if(h&4&&(h|=d&16),l=a.entangledLanes,l!==0)for(a=a.entanglements,l&=h;0<l;)d=31-Tr(l),E=1<<d,h|=a[d],l&=~E;return h}function oo(a,l){switch(a){case 1:case 2:case 4:return l+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function la(a,l){for(var d=a.suspendedLanes,h=a.pingedLanes,E=a.expirationTimes,T=a.pendingLanes;0<T;){var F=31-Tr(T),Q=1<<F,ae=E[F];ae===-1?(!(Q&d)||Q&h)&&(E[F]=oo(Q,l)):ae<=l&&(a.expiredLanes|=Q),T&=~Q}}function Pn(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function bn(){var a=Ci;return Ci<<=1,!(Ci&4194240)&&(Ci=64),a}function An(a){for(var l=[],d=0;31>d;d++)l.push(a);return l}function dr(a,l,d){a.pendingLanes|=l,l!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,l=31-Tr(l),a[l]=d}function Vr(a,l){var d=a.pendingLanes&~l;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=l,a.mutableReadLanes&=l,a.entangledLanes&=l,l=a.entanglements;var h=a.eventTimes;for(a=a.expirationTimes;0<d;){var E=31-Tr(d),T=1<<E;l[E]=0,h[E]=-1,a[E]=-1,d&=~T}}function xi(a,l){var d=a.entangledLanes|=l;for(a=a.entanglements;d;){var h=31-Tr(d),E=1<<h;E&l|a[h]&l&&(a[h]|=l),d&=~E}}var vn=0;function lo(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var hn,wa,yr,jt,Hr,Ur=!1,Li=[],Dr=null,di=null,er=null,Hn=new Map,uo=new Map,Lr=[],pi="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function at(a,l){switch(a){case"focusin":case"focusout":Dr=null;break;case"dragenter":case"dragleave":di=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":Hn.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":uo.delete(l.pointerId)}}function Ft(a,l,d,h,E,T){return a===null||a.nativeEvent!==T?(a={blockedOn:l,domEventName:d,eventSystemFlags:h,nativeEvent:T,targetContainers:[E]},l!==null&&(l=It(l),l!==null&&wa(l)),a):(a.eventSystemFlags|=h,l=a.targetContainers,E!==null&&l.indexOf(E)===-1&&l.push(E),a)}function nr(a,l,d,h,E){switch(l){case"focusin":return Dr=Ft(Dr,a,l,d,h,E),!0;case"dragenter":return di=Ft(di,a,l,d,h,E),!0;case"mouseover":return er=Ft(er,a,l,d,h,E),!0;case"pointerover":var T=E.pointerId;return Hn.set(T,Ft(Hn.get(T)||null,a,l,d,h,E)),!0;case"gotpointercapture":return T=E.pointerId,uo.set(T,Ft(uo.get(T)||null,a,l,d,h,E)),!0}return!1}function Or(a){var l=ns(a.target);if(l!==null){var d=Bt(l);if(d!==null){if(l=d.tag,l===13){if(l=Nt(d),l!==null){a.blockedOn=l,Hr(a.priority,function(){yr(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){a.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}a.blockedOn=null}function tr(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var d=Ys(a.domEventName,a.eventSystemFlags,l[0],a.nativeEvent);if(d===null){d=a.nativeEvent;var h=new d.constructor(d.type,d);mt=h,d.target.dispatchEvent(h),mt=null}else return l=It(d),l!==null&&wa(l),a.blockedOn=d,!1;l.shift()}return!0}function so(a,l,d){tr(a)&&d.delete(l)}function Yu(){Ur=!1,Dr!==null&&tr(Dr)&&(Dr=null),di!==null&&tr(di)&&(di=null),er!==null&&tr(er)&&(er=null),Hn.forEach(so),uo.forEach(so)}function ua(a,l){a.blockedOn===l&&(a.blockedOn=null,Ur||(Ur=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Yu)))}function Xi(a){function l(E){return ua(E,a)}if(0<Li.length){ua(Li[0],a);for(var d=1;d<Li.length;d++){var h=Li[d];h.blockedOn===a&&(h.blockedOn=null)}}for(Dr!==null&&ua(Dr,a),di!==null&&ua(di,a),er!==null&&ua(er,a),Hn.forEach(l),uo.forEach(l),d=0;d<Lr.length;d++)h=Lr[d],h.blockedOn===a&&(h.blockedOn=null);for(;0<Lr.length&&(d=Lr[0],d.blockedOn===null);)Or(d),d.blockedOn===null&&Lr.shift()}var Yo=V.ReactCurrentBatchConfig,co=!0;function qs(a,l,d,h){var E=vn,T=Yo.transition;Yo.transition=null;try{vn=1,iu(a,l,d,h)}finally{vn=E,Yo.transition=T}}function Ks(a,l,d,h){var E=vn,T=Yo.transition;Yo.transition=null;try{vn=4,iu(a,l,d,h)}finally{vn=E,Yo.transition=T}}function iu(a,l,d,h){if(co){var E=Ys(a,l,d,h);if(E===null)sp(a,l,h,Gu,d),at(a,h);else if(nr(E,a,l,d,h))h.stopPropagation();else if(at(a,h),l&4&&-1<pi.indexOf(a)){for(;E!==null;){var T=It(E);if(T!==null&&hn(T),T=Ys(a,l,d,h),T===null&&sp(a,l,h,Gu,d),T===E)break;E=T}E!==null&&h.stopPropagation()}else sp(a,l,h,null,d)}}var Gu=null;function Ys(a,l,d,h){if(Gu=null,a=gt(h),a=ns(a),a!==null)if(l=Bt(a),l===null)a=null;else if(d=l.tag,d===13){if(a=Nt(l),a!==null)return a;a=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null);return Gu=a,null}function Gs(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(en()){case Mi:return 1;case aa:return 4;case Si:case Jr:return 16;case Ba:return 536870912;default:return 16}default:return 16}}var Do=null,$=null,re=null;function Oe(){if(re)return re;var a,l=$,d=l.length,h,E="value"in Do?Do.value:Do.textContent,T=E.length;for(a=0;a<d&&l[a]===E[a];a++);var F=d-a;for(h=1;h<=F&&l[d-h]===E[T-h];h++);return re=E.slice(a,1<h?1-h:void 0)}function Me(a){var l=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function Je(){return!0}function Ht(){return!1}function ot(a){function l(d,h,E,T,F){this._reactName=d,this._targetInst=E,this.type=h,this.nativeEvent=T,this.target=F,this.currentTarget=null;for(var Q in a)a.hasOwnProperty(Q)&&(d=a[Q],this[Q]=d?d(T):T[Q]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?Je:Ht,this.isPropagationStopped=Ht,this}return pe(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Je)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Je)},persist:function(){},isPersistent:Je}),l}var Gt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=ot(Gt),jn=pe({},Gt,{view:0,detail:0}),wr=ot(jn),pr,mn,vr,Fr=pe({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fh,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==vr&&(vr&&a.type==="mousemove"?(pr=a.screenX-vr.screenX,mn=a.screenY-vr.screenY):mn=pr=0,vr=a),pr)},movementY:function(a){return"movementY"in a?a.movementY:mn}}),au=ot(Fr),nf=pe({},Fr,{dataTransfer:0}),Tl=ot(nf),rf=pe({},jn,{relatedTarget:0}),Xu=ot(rf),Ph=pe({},Gt,{animationName:0,elapsedTime:0,pseudoElement:0}),Jd=ot(Ph),Ah=pe({},Gt,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),c0=ot(Ah),$h=pe({},Gt,{data:0}),Lh=ot($h),f0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},d0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ol(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=Kw[a])?!!l[a]:!1}function Fh(){return Ol}var Ih=pe({},jn,{key:function(a){if(a.key){var l=f0[a.key]||a.key;if(l!=="Unidentified")return l}return a.type==="keypress"?(a=Me(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?d0[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fh,charCode:function(a){return a.type==="keypress"?Me(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Me(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),zh=ot(Ih),jh=pe({},Fr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),p0=ot(jh),Zd=pe({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fh}),v0=ot(Zd),xa=pe({},Gt,{propertyName:0,elapsedTime:0,pseudoElement:0}),_l=ot(xa),Zr=pe({},Fr,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),kl=ot(Zr),Uh=[9,13,27,32],Xs=g&&"CompositionEvent"in window,af=null;g&&"documentMode"in document&&(af=document.documentMode);var of=g&&"TextEvent"in window&&!af,h0=g&&(!Xs||af&&8<af&&11>=af),m0=" ",ep=!1;function g0(a,l){switch(a){case"keyup":return Uh.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y0(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Qs=!1;function b0(a,l){switch(a){case"compositionend":return y0(l);case"keypress":return l.which!==32?null:(ep=!0,m0);case"textInput":return a=l.data,a===m0&&ep?null:a;default:return null}}function Yw(a,l){if(Qs)return a==="compositionend"||!Xs&&g0(a,l)?(a=Oe(),re=$=Do=null,Qs=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return h0&&l.locale!=="ko"?null:l.data;default:return null}}var Gw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function S0(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!Gw[a.type]:l==="textarea"}function Bh(a,l,d,h){Mn(h),l=df(l,"onChange"),0<l.length&&(d=new Sn("onChange","change",null,d,h),a.push({event:d,listeners:l}))}var Go=null,Qu=null;function E0(a){es(a,0)}function lf(a){var l=Po(a);if(Tt(l))return a}function Xw(a,l){if(a==="change")return l}var C0=!1;if(g){var Vh;if(g){var Hh="oninput"in document;if(!Hh){var w0=document.createElement("div");w0.setAttribute("oninput","return;"),Hh=typeof w0.oninput=="function"}Vh=Hh}else Vh=!1;C0=Vh&&(!document.documentMode||9<document.documentMode)}function x0(){Go&&(Go.detachEvent("onpropertychange",R0),Qu=Go=null)}function R0(a){if(a.propertyName==="value"&&lf(Qu)){var l=[];Bh(l,Qu,a,gt(a)),At(E0,l)}}function Qw(a,l,d){a==="focusin"?(x0(),Go=l,Qu=d,Go.attachEvent("onpropertychange",R0)):a==="focusout"&&x0()}function T0(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return lf(Qu)}function Jw(a,l){if(a==="click")return lf(l)}function O0(a,l){if(a==="input"||a==="change")return lf(l)}function Zw(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var Mo=typeof Object.is=="function"?Object.is:Zw;function uf(a,l){if(Mo(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var d=Object.keys(a),h=Object.keys(l);if(d.length!==h.length)return!1;for(h=0;h<d.length;h++){var E=d[h];if(!y.call(l,E)||!Mo(a[E],l[E]))return!1}return!0}function _0(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function tp(a,l){var d=_0(a);a=0;for(var h;d;){if(d.nodeType===3){if(h=a+d.textContent.length,a<=l&&h>=l)return{node:d,offset:l-a};a=h}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=_0(d)}}function ou(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?ou(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function sf(){for(var a=window,l=_t();l instanceof a.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)a=l.contentWindow;else break;l=_t(a.document)}return l}function np(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}function Js(a){var l=sf(),d=a.focusedElem,h=a.selectionRange;if(l!==d&&d&&d.ownerDocument&&ou(d.ownerDocument.documentElement,d)){if(h!==null&&np(d)){if(l=h.start,a=h.end,a===void 0&&(a=l),"selectionStart"in d)d.selectionStart=l,d.selectionEnd=Math.min(a,d.value.length);else if(a=(l=d.ownerDocument||document)&&l.defaultView||window,a.getSelection){a=a.getSelection();var E=d.textContent.length,T=Math.min(h.start,E);h=h.end===void 0?T:Math.min(h.end,E),!a.extend&&T>h&&(E=h,h=T,T=E),E=tp(d,T);var F=tp(d,h);E&&F&&(a.rangeCount!==1||a.anchorNode!==E.node||a.anchorOffset!==E.offset||a.focusNode!==F.node||a.focusOffset!==F.offset)&&(l=l.createRange(),l.setStart(E.node,E.offset),a.removeAllRanges(),T>h?(a.addRange(l),a.extend(F.node,F.offset)):(l.setEnd(F.node,F.offset),a.addRange(l)))}}for(l=[],a=d;a=a.parentNode;)a.nodeType===1&&l.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<l.length;d++)a=l[d],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var e1=g&&"documentMode"in document&&11>=document.documentMode,Zs=null,Wh=null,cf=null,qh=!1;function Kh(a,l,d){var h=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;qh||Zs==null||Zs!==_t(h)||(h=Zs,"selectionStart"in h&&np(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),cf&&uf(cf,h)||(cf=h,h=df(Wh,"onSelect"),0<h.length&&(l=new Sn("onSelect","select",null,l,d),a.push({event:l,listeners:h}),l.target=Zs)))}function rp(a,l){var d={};return d[a.toLowerCase()]=l.toLowerCase(),d["Webkit"+a]="webkit"+l,d["Moz"+a]="moz"+l,d}var Ju={animationend:rp("Animation","AnimationEnd"),animationiteration:rp("Animation","AnimationIteration"),animationstart:rp("Animation","AnimationStart"),transitionend:rp("Transition","TransitionEnd")},Fi={},Yh={};g&&(Yh=document.createElement("div").style,"AnimationEvent"in window||(delete Ju.animationend.animation,delete Ju.animationiteration.animation,delete Ju.animationstart.animation),"TransitionEvent"in window||delete Ju.transitionend.transition);function ip(a){if(Fi[a])return Fi[a];if(!Ju[a])return a;var l=Ju[a],d;for(d in l)if(l.hasOwnProperty(d)&&d in Yh)return Fi[a]=l[d];return a}var k0=ip("animationend"),N0=ip("animationiteration"),D0=ip("animationstart"),M0=ip("transitionend"),Gh=new Map,ap="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function fo(a,l){Gh.set(a,l),p(l,[a])}for(var Xh=0;Xh<ap.length;Xh++){var Zu=ap[Xh],t1=Zu.toLowerCase(),n1=Zu[0].toUpperCase()+Zu.slice(1);fo(t1,"on"+n1)}fo(k0,"onAnimationEnd"),fo(N0,"onAnimationIteration"),fo(D0,"onAnimationStart"),fo("dblclick","onDoubleClick"),fo("focusin","onFocus"),fo("focusout","onBlur"),fo(M0,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ff="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qh=new Set("cancel close invalid load scroll toggle".split(" ").concat(ff));function op(a,l,d){var h=a.type||"unknown-event";a.currentTarget=d,nt(h,l,void 0,a),a.currentTarget=null}function es(a,l){l=(l&4)!==0;for(var d=0;d<a.length;d++){var h=a[d],E=h.event;h=h.listeners;e:{var T=void 0;if(l)for(var F=h.length-1;0<=F;F--){var Q=h[F],ae=Q.instance,_e=Q.currentTarget;if(Q=Q.listener,ae!==T&&E.isPropagationStopped())break e;op(E,Q,_e),T=ae}else for(F=0;F<h.length;F++){if(Q=h[F],ae=Q.instance,_e=Q.currentTarget,Q=Q.listener,ae!==T&&E.isPropagationStopped())break e;op(E,Q,_e),T=ae}}}if($r)throw a=te,$r=!1,te=null,a}function rr(a,l){var d=l[hf];d===void 0&&(d=l[hf]=new Set);var h=a+"__bubble";d.has(h)||(P0(l,a,2,!1),d.add(h))}function lp(a,l,d){var h=0;l&&(h|=4),P0(d,a,h,l)}var up="_reactListening"+Math.random().toString(36).slice(2);function ec(a){if(!a[up]){a[up]=!0,o.forEach(function(d){d!=="selectionchange"&&(Qh.has(d)||lp(d,!1,a),lp(d,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[up]||(l[up]=!0,lp("selectionchange",!1,l))}}function P0(a,l,d,h){switch(Gs(l)){case 1:var E=qs;break;case 4:E=Ks;break;default:E=iu}d=E.bind(null,l,d,a),E=void 0,!qt||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(E=!0),h?E!==void 0?a.addEventListener(l,d,{capture:!0,passive:E}):a.addEventListener(l,d,!0):E!==void 0?a.addEventListener(l,d,{passive:E}):a.addEventListener(l,d,!1)}function sp(a,l,d,h,E){var T=h;if(!(l&1)&&!(l&2)&&h!==null)e:for(;;){if(h===null)return;var F=h.tag;if(F===3||F===4){var Q=h.stateNode.containerInfo;if(Q===E||Q.nodeType===8&&Q.parentNode===E)break;if(F===4)for(F=h.return;F!==null;){var ae=F.tag;if((ae===3||ae===4)&&(ae=F.stateNode.containerInfo,ae===E||ae.nodeType===8&&ae.parentNode===E))return;F=F.return}for(;Q!==null;){if(F=ns(Q),F===null)return;if(ae=F.tag,ae===5||ae===6){h=T=F;continue e}Q=Q.parentNode}}h=h.return}At(function(){var _e=T,Ve=gt(d),Ke=[];e:{var Be=Gh.get(a);if(Be!==void 0){var dt=Sn,wt=a;switch(a){case"keypress":if(Me(d)===0)break e;case"keydown":case"keyup":dt=zh;break;case"focusin":wt="focus",dt=Xu;break;case"focusout":wt="blur",dt=Xu;break;case"beforeblur":case"afterblur":dt=Xu;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":dt=au;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":dt=Tl;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":dt=v0;break;case k0:case N0:case D0:dt=Jd;break;case M0:dt=_l;break;case"scroll":dt=wr;break;case"wheel":dt=kl;break;case"copy":case"cut":case"paste":dt=c0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":dt=p0}var kt=(l&4)!==0,Xr=!kt&&a==="scroll",be=kt?Be!==null?Be+"Capture":null:Be;kt=[];for(var ce=_e,xe;ce!==null;){xe=ce;var He=xe.stateNode;if(xe.tag===5&&He!==null&&(xe=He,be!==null&&(He=dn(ce,be),He!=null&&kt.push(tc(ce,He,xe)))),Xr)break;ce=ce.return}0<kt.length&&(Be=new dt(Be,wt,null,d,Ve),Ke.push({event:Be,listeners:kt}))}}if(!(l&7)){e:{if(Be=a==="mouseover"||a==="pointerover",dt=a==="mouseout"||a==="pointerout",Be&&d!==mt&&(wt=d.relatedTarget||d.fromElement)&&(ns(wt)||wt[Nl]))break e;if((dt||Be)&&(Be=Ve.window===Ve?Ve:(Be=Ve.ownerDocument)?Be.defaultView||Be.parentWindow:window,dt?(wt=d.relatedTarget||d.toElement,dt=_e,wt=wt?ns(wt):null,wt!==null&&(Xr=Bt(wt),wt!==Xr||wt.tag!==5&&wt.tag!==6)&&(wt=null)):(dt=null,wt=_e),dt!==wt)){if(kt=au,He="onMouseLeave",be="onMouseEnter",ce="mouse",(a==="pointerout"||a==="pointerover")&&(kt=p0,He="onPointerLeave",be="onPointerEnter",ce="pointer"),Xr=dt==null?Be:Po(dt),xe=wt==null?Be:Po(wt),Be=new kt(He,ce+"leave",dt,d,Ve),Be.target=Xr,Be.relatedTarget=xe,He=null,ns(Ve)===_e&&(kt=new kt(be,ce+"enter",wt,d,Ve),kt.target=xe,kt.relatedTarget=Xr,He=kt),Xr=He,dt&&wt)t:{for(kt=dt,be=wt,ce=0,xe=kt;xe;xe=lu(xe))ce++;for(xe=0,He=be;He;He=lu(He))xe++;for(;0<ce-xe;)kt=lu(kt),ce--;for(;0<xe-ce;)be=lu(be),xe--;for(;ce--;){if(kt===be||be!==null&&kt===be.alternate)break t;kt=lu(kt),be=lu(be)}kt=null}else kt=null;dt!==null&&A0(Ke,Be,dt,kt,!1),wt!==null&&Xr!==null&&A0(Ke,Xr,wt,kt,!0)}}e:{if(Be=_e?Po(_e):window,dt=Be.nodeName&&Be.nodeName.toLowerCase(),dt==="select"||dt==="input"&&Be.type==="file")var xt=Xw;else if(S0(Be))if(C0)xt=O0;else{xt=T0;var Yt=Qw}else(dt=Be.nodeName)&&dt.toLowerCase()==="input"&&(Be.type==="checkbox"||Be.type==="radio")&&(xt=Jw);if(xt&&(xt=xt(a,_e))){Bh(Ke,xt,d,Ve);break e}Yt&&Yt(a,Be,_e),a==="focusout"&&(Yt=Be._wrapperState)&&Yt.controlled&&Be.type==="number"&&pn(Be,"number",Be.value)}switch(Yt=_e?Po(_e):window,a){case"focusin":(S0(Yt)||Yt.contentEditable==="true")&&(Zs=Yt,Wh=_e,cf=null);break;case"focusout":cf=Wh=Zs=null;break;case"mousedown":qh=!0;break;case"contextmenu":case"mouseup":case"dragend":qh=!1,Kh(Ke,d,Ve);break;case"selectionchange":if(e1)break;case"keydown":case"keyup":Kh(Ke,d,Ve)}var Xt;if(Xs)e:{switch(a){case"compositionstart":var nn="onCompositionStart";break e;case"compositionend":nn="onCompositionEnd";break e;case"compositionupdate":nn="onCompositionUpdate";break e}nn=void 0}else Qs?g0(a,d)&&(nn="onCompositionEnd"):a==="keydown"&&d.keyCode===229&&(nn="onCompositionStart");nn&&(h0&&d.locale!=="ko"&&(Qs||nn!=="onCompositionStart"?nn==="onCompositionEnd"&&Qs&&(Xt=Oe()):(Do=Ve,$="value"in Do?Do.value:Do.textContent,Qs=!0)),Yt=df(_e,nn),0<Yt.length&&(nn=new Lh(nn,a,null,d,Ve),Ke.push({event:nn,listeners:Yt}),Xt?nn.data=Xt:(Xt=y0(d),Xt!==null&&(nn.data=Xt)))),(Xt=of?b0(a,d):Yw(a,d))&&(_e=df(_e,"onBeforeInput"),0<_e.length&&(Ve=new Lh("onBeforeInput","beforeinput",null,d,Ve),Ke.push({event:Ve,listeners:_e}),Ve.data=Xt))}es(Ke,l)})}function tc(a,l,d){return{instance:a,listener:l,currentTarget:d}}function df(a,l){for(var d=l+"Capture",h=[];a!==null;){var E=a,T=E.stateNode;E.tag===5&&T!==null&&(E=T,T=dn(a,d),T!=null&&h.unshift(tc(a,T,E)),T=dn(a,l),T!=null&&h.push(tc(a,T,E))),a=a.return}return h}function lu(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function A0(a,l,d,h,E){for(var T=l._reactName,F=[];d!==null&&d!==h;){var Q=d,ae=Q.alternate,_e=Q.stateNode;if(ae!==null&&ae===h)break;Q.tag===5&&_e!==null&&(Q=_e,E?(ae=dn(d,T),ae!=null&&F.unshift(tc(d,ae,Q))):E||(ae=dn(d,T),ae!=null&&F.push(tc(d,ae,Q)))),d=d.return}F.length!==0&&a.push({event:l,listeners:F})}var $0=/\r\n?/g,r1=/\u0000|\uFFFD/g;function L0(a){return(typeof a=="string"?a:""+a).replace($0,`
|
|
77
|
-
`).replace(r1,"")}function cp(a,l,d){if(l=L0(l),L0(a)!==l&&d)throw Error(i(425))}function uu(){}var pf=null,ts=null;function fp(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var dp=typeof setTimeout=="function"?setTimeout:void 0,Jh=typeof clearTimeout=="function"?clearTimeout:void 0,F0=typeof Promise=="function"?Promise:void 0,nc=typeof queueMicrotask=="function"?queueMicrotask:typeof F0<"u"?function(a){return F0.resolve(null).then(a).catch(pp)}:dp;function pp(a){setTimeout(function(){throw a})}function rc(a,l){var d=l,h=0;do{var E=d.nextSibling;if(a.removeChild(d),E&&E.nodeType===8)if(d=E.data,d==="/$"){if(h===0){a.removeChild(E),Xi(l);return}h--}else d!=="$"&&d!=="$?"&&d!=="$!"||h++;d=E}while(d);Xi(l)}function Xo(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?")break;if(l==="/$")return null}}return a}function I0(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var d=a.data;if(d==="$"||d==="$!"||d==="$?"){if(l===0)return a;l--}else d==="/$"&&l++}a=a.previousSibling}return null}var su=Math.random().toString(36).slice(2),Qo="__reactFiber$"+su,vf="__reactProps$"+su,Nl="__reactContainer$"+su,hf="__reactEvents$"+su,ic="__reactListeners$"+su,i1="__reactHandles$"+su;function ns(a){var l=a[Qo];if(l)return l;for(var d=a.parentNode;d;){if(l=d[Nl]||d[Qo]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(a=I0(a);a!==null;){if(d=a[Qo])return d;a=I0(a)}return l}a=d,d=a.parentNode}return null}function It(a){return a=a[Qo]||a[Nl],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function Po(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(i(33))}function Wr(a){return a[vf]||null}var $n=[],po=-1;function Ao(a){return{current:a}}function xr(a){0>po||(a.current=$n[po],$n[po]=null,po--)}function $t(a,l){po++,$n[po]=a.current,a.current=l}var Ra={},Br=Ao(Ra),vi=Ao(!1),Ta=Ra;function vo(a,l){var d=a.type.contextTypes;if(!d)return Ra;var h=a.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===l)return h.__reactInternalMemoizedMaskedChildContext;var E={},T;for(T in d)E[T]=l[T];return h&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=l,a.__reactInternalMemoizedMaskedChildContext=E),E}function ei(a){return a=a.childContextTypes,a!=null}function ac(){xr(vi),xr(Br)}function z0(a,l,d){if(Br.current!==Ra)throw Error(i(168));$t(Br,l),$t(vi,d)}function mf(a,l,d){var h=a.stateNode;if(l=l.childContextTypes,typeof h.getChildContext!="function")return d;h=h.getChildContext();for(var E in h)if(!(E in l))throw Error(i(108,Ue(a)||"Unknown",E));return pe({},d,h)}function Oa(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Ra,Ta=Br.current,$t(Br,a),$t(vi,vi.current),!0}function vp(a,l,d){var h=a.stateNode;if(!h)throw Error(i(169));d?(a=mf(a,l,Ta),h.__reactInternalMemoizedMergedChildContext=a,xr(vi),xr(Br),$t(Br,a)):xr(vi),$t(vi,d)}var Jo=null,oc=!1,Dl=!1;function hp(a){Jo===null?Jo=[a]:Jo.push(a)}function cu(a){oc=!0,hp(a)}function Zo(){if(!Dl&&Jo!==null){Dl=!0;var a=0,l=vn;try{var d=Jo;for(vn=1;a<d.length;a++){var h=d[a];do h=h(!0);while(h!==null)}Jo=null,oc=!1}catch(E){throw Jo!==null&&(Jo=Jo.slice(a+1)),Vn(Mi,Zo),E}finally{vn=l,Dl=!1}}return null}var fu=[],du=0,pu=null,Ml=0,ti=[],ho=0,Ha=null,el=1,tl="";function rs(a,l){fu[du++]=Ml,fu[du++]=pu,pu=a,Ml=l}function j0(a,l,d){ti[ho++]=el,ti[ho++]=tl,ti[ho++]=Ha,Ha=a;var h=el;a=tl;var E=32-Tr(h)-1;h&=~(1<<E),d+=1;var T=32-Tr(l)+E;if(30<T){var F=E-E%5;T=(h&(1<<F)-1).toString(32),h>>=F,E-=F,el=1<<32-Tr(l)+E|d<<E|h,tl=T+a}else el=1<<T|d<<E|h,tl=a}function mp(a){a.return!==null&&(rs(a,1),j0(a,1,0))}function gp(a){for(;a===pu;)pu=fu[--du],fu[du]=null,Ml=fu[--du],fu[du]=null;for(;a===Ha;)Ha=ti[--ho],ti[ho]=null,tl=ti[--ho],ti[ho]=null,el=ti[--ho],ti[ho]=null}var _a=null,ka=null,Mr=!1,mo=null;function Zh(a,l){var d=Eo(5,null,null,0);d.elementType="DELETED",d.stateNode=l,d.return=a,l=a.deletions,l===null?(a.deletions=[d],a.flags|=16):l.push(d)}function U0(a,l){switch(a.tag){case 5:var d=a.type;return l=l.nodeType!==1||d.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(a.stateNode=l,_a=a,ka=Xo(l.firstChild),!0):!1;case 6:return l=a.pendingProps===""||l.nodeType!==3?null:l,l!==null?(a.stateNode=l,_a=a,ka=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(d=Ha!==null?{id:el,overflow:tl}:null,a.memoizedState={dehydrated:l,treeContext:d,retryLane:1073741824},d=Eo(18,null,null,0),d.stateNode=l,d.return=a,a.child=d,_a=a,ka=null,!0):!1;default:return!1}}function em(a){return(a.mode&1)!==0&&(a.flags&128)===0}function tm(a){if(Mr){var l=ka;if(l){var d=l;if(!U0(a,l)){if(em(a))throw Error(i(418));l=Xo(d.nextSibling);var h=_a;l&&U0(a,l)?Zh(h,d):(a.flags=a.flags&-4097|2,Mr=!1,_a=a)}}else{if(em(a))throw Error(i(418));a.flags=a.flags&-4097|2,Mr=!1,_a=a}}}function hi(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;_a=a}function yp(a){if(a!==_a)return!1;if(!Mr)return hi(a),Mr=!0,!1;var l;if((l=a.tag!==3)&&!(l=a.tag!==5)&&(l=a.type,l=l!=="head"&&l!=="body"&&!fp(a.type,a.memoizedProps)),l&&(l=ka)){if(em(a))throw gf(),Error(i(418));for(;l;)Zh(a,l),l=Xo(l.nextSibling)}if(hi(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));e:{for(a=a.nextSibling,l=0;a;){if(a.nodeType===8){var d=a.data;if(d==="/$"){if(l===0){ka=Xo(a.nextSibling);break e}l--}else d!=="$"&&d!=="$!"&&d!=="$?"||l++}a=a.nextSibling}ka=null}}else ka=_a?Xo(a.stateNode.nextSibling):null;return!0}function gf(){for(var a=ka;a;)a=Xo(a.nextSibling)}function vu(){ka=_a=null,Mr=!1}function Pl(a){mo===null?mo=[a]:mo.push(a)}var a1=V.ReactCurrentBatchConfig;function is(a,l,d){if(a=d.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(i(309));var h=d.stateNode}if(!h)throw Error(i(147,a));var E=h,T=""+a;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===T?l.ref:(l=function(F){var Q=E.refs;F===null?delete Q[T]:Q[T]=F},l._stringRef=T,l)}if(typeof a!="string")throw Error(i(284));if(!d._owner)throw Error(i(290,a))}return a}function bp(a,l){throw a=Object.prototype.toString.call(l),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a))}function B0(a){var l=a._init;return l(a._payload)}function as(a){function l(be,ce){if(a){var xe=be.deletions;xe===null?(be.deletions=[ce],be.flags|=16):xe.push(ce)}}function d(be,ce){if(!a)return null;for(;ce!==null;)l(be,ce),ce=ce.sibling;return null}function h(be,ce){for(be=new Map;ce!==null;)ce.key!==null?be.set(ce.key,ce):be.set(ce.index,ce),ce=ce.sibling;return be}function E(be,ce){return be=Cu(be,ce),be.index=0,be.sibling=null,be}function T(be,ce,xe){return be.index=xe,a?(xe=be.alternate,xe!==null?(xe=xe.index,xe<ce?(be.flags|=2,ce):xe):(be.flags|=2,ce)):(be.flags|=1048576,ce)}function F(be){return a&&be.alternate===null&&(be.flags|=2),be}function Q(be,ce,xe,He){return ce===null||ce.tag!==6?(ce=Mm(xe,be.mode,He),ce.return=be,ce):(ce=E(ce,xe),ce.return=be,ce)}function ae(be,ce,xe,He){var xt=xe.type;return xt===K?Ve(be,ce,xe.props.children,He,xe.key):ce!==null&&(ce.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===we&&B0(xt)===ce.type)?(He=E(ce,xe.props),He.ref=is(be,ce,xe),He.return=be,He):(He=Kf(xe.type,xe.key,xe.props,null,be.mode,He),He.ref=is(be,ce,xe),He.return=be,He)}function _e(be,ce,xe,He){return ce===null||ce.tag!==4||ce.stateNode.containerInfo!==xe.containerInfo||ce.stateNode.implementation!==xe.implementation?(ce=Jp(xe,be.mode,He),ce.return=be,ce):(ce=E(ce,xe.children||[]),ce.return=be,ce)}function Ve(be,ce,xe,He,xt){return ce===null||ce.tag!==7?(ce=zl(xe,be.mode,He,xt),ce.return=be,ce):(ce=E(ce,xe),ce.return=be,ce)}function Ke(be,ce,xe){if(typeof ce=="string"&&ce!==""||typeof ce=="number")return ce=Mm(""+ce,be.mode,xe),ce.return=be,ce;if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case B:return xe=Kf(ce.type,ce.key,ce.props,null,be.mode,xe),xe.ref=is(be,null,ce),xe.return=be,xe;case W:return ce=Jp(ce,be.mode,xe),ce.return=be,ce;case we:var He=ce._init;return Ke(be,He(ce._payload),xe)}if(rn(ce)||Re(ce))return ce=zl(ce,be.mode,xe,null),ce.return=be,ce;bp(be,ce)}return null}function Be(be,ce,xe,He){var xt=ce!==null?ce.key:null;if(typeof xe=="string"&&xe!==""||typeof xe=="number")return xt!==null?null:Q(be,ce,""+xe,He);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case B:return xe.key===xt?ae(be,ce,xe,He):null;case W:return xe.key===xt?_e(be,ce,xe,He):null;case we:return xt=xe._init,Be(be,ce,xt(xe._payload),He)}if(rn(xe)||Re(xe))return xt!==null?null:Ve(be,ce,xe,He,null);bp(be,xe)}return null}function dt(be,ce,xe,He,xt){if(typeof He=="string"&&He!==""||typeof He=="number")return be=be.get(xe)||null,Q(ce,be,""+He,xt);if(typeof He=="object"&&He!==null){switch(He.$$typeof){case B:return be=be.get(He.key===null?xe:He.key)||null,ae(ce,be,He,xt);case W:return be=be.get(He.key===null?xe:He.key)||null,_e(ce,be,He,xt);case we:var Yt=He._init;return dt(be,ce,xe,Yt(He._payload),xt)}if(rn(He)||Re(He))return be=be.get(xe)||null,Ve(ce,be,He,xt,null);bp(ce,He)}return null}function wt(be,ce,xe,He){for(var xt=null,Yt=null,Xt=ce,nn=ce=0,Oi=null;Xt!==null&&nn<xe.length;nn++){Xt.index>nn?(Oi=Xt,Xt=null):Oi=Xt.sibling;var Yn=Be(be,Xt,xe[nn],He);if(Yn===null){Xt===null&&(Xt=Oi);break}a&&Xt&&Yn.alternate===null&&l(be,Xt),ce=T(Yn,ce,nn),Yt===null?xt=Yn:Yt.sibling=Yn,Yt=Yn,Xt=Oi}if(nn===xe.length)return d(be,Xt),Mr&&rs(be,nn),xt;if(Xt===null){for(;nn<xe.length;nn++)Xt=Ke(be,xe[nn],He),Xt!==null&&(ce=T(Xt,ce,nn),Yt===null?xt=Xt:Yt.sibling=Xt,Yt=Xt);return Mr&&rs(be,nn),xt}for(Xt=h(be,Xt);nn<xe.length;nn++)Oi=dt(Xt,be,nn,xe[nn],He),Oi!==null&&(a&&Oi.alternate!==null&&Xt.delete(Oi.key===null?nn:Oi.key),ce=T(Oi,ce,nn),Yt===null?xt=Oi:Yt.sibling=Oi,Yt=Oi);return a&&Xt.forEach(function(Ru){return l(be,Ru)}),Mr&&rs(be,nn),xt}function kt(be,ce,xe,He){var xt=Re(xe);if(typeof xt!="function")throw Error(i(150));if(xe=xt.call(xe),xe==null)throw Error(i(151));for(var Yt=xt=null,Xt=ce,nn=ce=0,Oi=null,Yn=xe.next();Xt!==null&&!Yn.done;nn++,Yn=xe.next()){Xt.index>nn?(Oi=Xt,Xt=null):Oi=Xt.sibling;var Ru=Be(be,Xt,Yn.value,He);if(Ru===null){Xt===null&&(Xt=Oi);break}a&&Xt&&Ru.alternate===null&&l(be,Xt),ce=T(Ru,ce,nn),Yt===null?xt=Ru:Yt.sibling=Ru,Yt=Ru,Xt=Oi}if(Yn.done)return d(be,Xt),Mr&&rs(be,nn),xt;if(Xt===null){for(;!Yn.done;nn++,Yn=xe.next())Yn=Ke(be,Yn.value,He),Yn!==null&&(ce=T(Yn,ce,nn),Yt===null?xt=Yn:Yt.sibling=Yn,Yt=Yn);return Mr&&rs(be,nn),xt}for(Xt=h(be,Xt);!Yn.done;nn++,Yn=xe.next())Yn=dt(Xt,be,nn,Yn.value,He),Yn!==null&&(a&&Yn.alternate!==null&&Xt.delete(Yn.key===null?nn:Yn.key),ce=T(Yn,ce,nn),Yt===null?xt=Yn:Yt.sibling=Yn,Yt=Yn);return a&&Xt.forEach(function(xb){return l(be,xb)}),Mr&&rs(be,nn),xt}function Xr(be,ce,xe,He){if(typeof xe=="object"&&xe!==null&&xe.type===K&&xe.key===null&&(xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case B:e:{for(var xt=xe.key,Yt=ce;Yt!==null;){if(Yt.key===xt){if(xt=xe.type,xt===K){if(Yt.tag===7){d(be,Yt.sibling),ce=E(Yt,xe.props.children),ce.return=be,be=ce;break e}}else if(Yt.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===we&&B0(xt)===Yt.type){d(be,Yt.sibling),ce=E(Yt,xe.props),ce.ref=is(be,Yt,xe),ce.return=be,be=ce;break e}d(be,Yt);break}else l(be,Yt);Yt=Yt.sibling}xe.type===K?(ce=zl(xe.props.children,be.mode,He,xe.key),ce.return=be,be=ce):(He=Kf(xe.type,xe.key,xe.props,null,be.mode,He),He.ref=is(be,ce,xe),He.return=be,be=He)}return F(be);case W:e:{for(Yt=xe.key;ce!==null;){if(ce.key===Yt)if(ce.tag===4&&ce.stateNode.containerInfo===xe.containerInfo&&ce.stateNode.implementation===xe.implementation){d(be,ce.sibling),ce=E(ce,xe.children||[]),ce.return=be,be=ce;break e}else{d(be,ce);break}else l(be,ce);ce=ce.sibling}ce=Jp(xe,be.mode,He),ce.return=be,be=ce}return F(be);case we:return Yt=xe._init,Xr(be,ce,Yt(xe._payload),He)}if(rn(xe))return wt(be,ce,xe,He);if(Re(xe))return kt(be,ce,xe,He);bp(be,xe)}return typeof xe=="string"&&xe!==""||typeof xe=="number"?(xe=""+xe,ce!==null&&ce.tag===6?(d(be,ce.sibling),ce=E(ce,xe),ce.return=be,be=ce):(d(be,ce),ce=Mm(xe,be.mode,He),ce.return=be,be=ce),F(be)):d(be,ce)}return Xr}var qr=as(!0),lt=as(!1),Wa=Ao(null),Na=null,lc=null,nm=null;function rm(){nm=lc=Na=null}function im(a){var l=Wa.current;xr(Wa),a._currentValue=l}function am(a,l,d){for(;a!==null;){var h=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,h!==null&&(h.childLanes|=l)):h!==null&&(h.childLanes&l)!==l&&(h.childLanes|=l),a===d)break;a=a.return}}function Ir(a,l){Na=a,nm=lc=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&l&&(ri=!0),a.firstContext=null)}function go(a){var l=a._currentValue;if(nm!==a)if(a={context:a,memoizedValue:l,next:null},lc===null){if(Na===null)throw Error(i(308));lc=a,Na.dependencies={lanes:0,firstContext:a}}else lc=lc.next=a;return l}var os=null;function om(a){os===null?os=[a]:os.push(a)}function lm(a,l,d,h){var E=l.interleaved;return E===null?(d.next=d,om(l)):(d.next=E.next,E.next=d),l.interleaved=d,qa(a,h)}function qa(a,l){a.lanes|=l;var d=a.alternate;for(d!==null&&(d.lanes|=l),d=a,a=a.return;a!==null;)a.childLanes|=l,d=a.alternate,d!==null&&(d.childLanes|=l),d=a,a=a.return;return d.tag===3?d.stateNode:null}var Ka=!1;function um(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function V0(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function Al(a,l){return{eventTime:a,lane:l,tag:0,payload:null,callback:null,next:null}}function hu(a,l,d){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,Ln&2){var E=h.pending;return E===null?l.next=l:(l.next=E.next,E.next=l),h.pending=l,qa(a,d)}return E=h.interleaved,E===null?(l.next=l,om(h)):(l.next=E.next,E.next=l),h.interleaved=l,qa(a,d)}function Sp(a,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194240)!==0)){var h=l.lanes;h&=a.pendingLanes,d|=h,l.lanes=d,xi(a,d)}}function H0(a,l){var d=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,d===h)){var E=null,T=null;if(d=d.firstBaseUpdate,d!==null){do{var F={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};T===null?E=T=F:T=T.next=F,d=d.next}while(d!==null);T===null?E=T=l:T=T.next=l}else E=T=l;d={baseState:h.baseState,firstBaseUpdate:E,lastBaseUpdate:T,shared:h.shared,effects:h.effects},a.updateQueue=d;return}a=d.lastBaseUpdate,a===null?d.firstBaseUpdate=l:a.next=l,d.lastBaseUpdate=l}function yf(a,l,d,h){var E=a.updateQueue;Ka=!1;var T=E.firstBaseUpdate,F=E.lastBaseUpdate,Q=E.shared.pending;if(Q!==null){E.shared.pending=null;var ae=Q,_e=ae.next;ae.next=null,F===null?T=_e:F.next=_e,F=ae;var Ve=a.alternate;Ve!==null&&(Ve=Ve.updateQueue,Q=Ve.lastBaseUpdate,Q!==F&&(Q===null?Ve.firstBaseUpdate=_e:Q.next=_e,Ve.lastBaseUpdate=ae))}if(T!==null){var Ke=E.baseState;F=0,Ve=_e=ae=null,Q=T;do{var Be=Q.lane,dt=Q.eventTime;if((h&Be)===Be){Ve!==null&&(Ve=Ve.next={eventTime:dt,lane:0,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null});e:{var wt=a,kt=Q;switch(Be=l,dt=d,kt.tag){case 1:if(wt=kt.payload,typeof wt=="function"){Ke=wt.call(dt,Ke,Be);break e}Ke=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=kt.payload,Be=typeof wt=="function"?wt.call(dt,Ke,Be):wt,Be==null)break e;Ke=pe({},Ke,Be);break e;case 2:Ka=!0}}Q.callback!==null&&Q.lane!==0&&(a.flags|=64,Be=E.effects,Be===null?E.effects=[Q]:Be.push(Q))}else dt={eventTime:dt,lane:Be,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null},Ve===null?(_e=Ve=dt,ae=Ke):Ve=Ve.next=dt,F|=Be;if(Q=Q.next,Q===null){if(Q=E.shared.pending,Q===null)break;Be=Q,Q=Be.next,Be.next=null,E.lastBaseUpdate=Be,E.shared.pending=null}}while(!0);if(Ve===null&&(ae=Ke),E.baseState=ae,E.firstBaseUpdate=_e,E.lastBaseUpdate=Ve,l=E.shared.interleaved,l!==null){E=l;do F|=E.lane,E=E.next;while(E!==l)}else T===null&&(E.shared.lanes=0);ol|=F,a.lanes=F,a.memoizedState=Ke}}function sm(a,l,d){if(a=l.effects,l.effects=null,a!==null)for(l=0;l<a.length;l++){var h=a[l],E=h.callback;if(E!==null){if(h.callback=null,h=d,typeof E!="function")throw Error(i(191,E));E.call(h)}}}var bf={},nl=Ao(bf),Sf=Ao(bf),Ef=Ao(bf);function ls(a){if(a===bf)throw Error(i(174));return a}function cm(a,l){switch($t(Ef,l),$t(Sf,a),$t(nl,bf),a=l.nodeType,a){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:Un(null,"");break;default:a=a===8?l.parentNode:l,l=a.namespaceURI||null,a=a.tagName,l=Un(l,a)}xr(nl),$t(nl,l)}function us(){xr(nl),xr(Sf),xr(Ef)}function W0(a){ls(Ef.current);var l=ls(nl.current),d=Un(l,a.type);l!==d&&($t(Sf,a),$t(nl,d))}function Ep(a){Sf.current===a&&(xr(nl),xr(Sf))}var zr=Ao(0);function Cp(a){for(var l=a;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Cf=[];function zt(){for(var a=0;a<Cf.length;a++)Cf[a]._workInProgressVersionPrimary=null;Cf.length=0}var yn=V.ReactCurrentDispatcher,qn=V.ReactCurrentBatchConfig,hr=0,Kn=null,ni=null,Ri=null,wp=!1,wf=!1,ss=0,je=0;function Wn(){throw Error(i(321))}function Jt(a,l){if(l===null)return!1;for(var d=0;d<l.length&&d<a.length;d++)if(!Mo(a[d],l[d]))return!1;return!0}function mu(a,l,d,h,E,T){if(hr=T,Kn=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,yn.current=a===null||a.memoizedState===null?Ip:kf,a=d(h,E),wf){T=0;do{if(wf=!1,ss=0,25<=T)throw Error(i(301));T+=1,Ri=ni=null,l.updateQueue=null,yn.current=zp,a=d(h,E)}while(wf)}if(yn.current=vs,l=ni!==null&&ni.next!==null,hr=0,Ri=ni=Kn=null,wp=!1,l)throw Error(i(300));return a}function $o(){var a=ss!==0;return ss=0,a}function Qi(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ri===null?Kn.memoizedState=Ri=a:Ri=Ri.next=a,Ri}function Kr(){if(ni===null){var a=Kn.alternate;a=a!==null?a.memoizedState:null}else a=ni.next;var l=Ri===null?Kn.memoizedState:Ri.next;if(l!==null)Ri=l,ni=a;else{if(a===null)throw Error(i(310));ni=a,a={memoizedState:ni.memoizedState,baseState:ni.baseState,baseQueue:ni.baseQueue,queue:ni.queue,next:null},Ri===null?Kn.memoizedState=Ri=a:Ri=Ri.next=a}return Ri}function $l(a,l){return typeof l=="function"?l(a):l}function gu(a){var l=Kr(),d=l.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=a;var h=ni,E=h.baseQueue,T=d.pending;if(T!==null){if(E!==null){var F=E.next;E.next=T.next,T.next=F}h.baseQueue=E=T,d.pending=null}if(E!==null){T=E.next,h=h.baseState;var Q=F=null,ae=null,_e=T;do{var Ve=_e.lane;if((hr&Ve)===Ve)ae!==null&&(ae=ae.next={lane:0,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),h=_e.hasEagerState?_e.eagerState:a(h,_e.action);else{var Ke={lane:Ve,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};ae===null?(Q=ae=Ke,F=h):ae=ae.next=Ke,Kn.lanes|=Ve,ol|=Ve}_e=_e.next}while(_e!==null&&_e!==T);ae===null?F=h:ae.next=Q,Mo(h,l.memoizedState)||(ri=!0),l.memoizedState=h,l.baseState=F,l.baseQueue=ae,d.lastRenderedState=h}if(a=d.interleaved,a!==null){E=a;do T=E.lane,Kn.lanes|=T,ol|=T,E=E.next;while(E!==a)}else E===null&&(d.lanes=0);return[l.memoizedState,d.dispatch]}function cs(a){var l=Kr(),d=l.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=a;var h=d.dispatch,E=d.pending,T=l.memoizedState;if(E!==null){d.pending=null;var F=E=E.next;do T=a(T,F.action),F=F.next;while(F!==E);Mo(T,l.memoizedState)||(ri=!0),l.memoizedState=T,l.baseQueue===null&&(l.baseState=T),d.lastRenderedState=T}return[T,h]}function xp(){}function Rp(a,l){var d=Kn,h=Kr(),E=l(),T=!Mo(h.memoizedState,E);if(T&&(h.memoizedState=E,ri=!0),h=h.queue,xf(_p.bind(null,d,h,a),[a]),h.getSnapshot!==l||T||Ri!==null&&Ri.memoizedState.tag&1){if(d.flags|=2048,fs(9,Op.bind(null,d,h,E,l),void 0,null),mi===null)throw Error(i(349));hr&30||Tp(d,l,E)}return E}function Tp(a,l,d){a.flags|=16384,a={getSnapshot:l,value:d},l=Kn.updateQueue,l===null?(l={lastEffect:null,stores:null},Kn.updateQueue=l,l.stores=[a]):(d=l.stores,d===null?l.stores=[a]:d.push(a))}function Op(a,l,d,h){l.value=d,l.getSnapshot=h,kp(l)&&Np(a)}function _p(a,l,d){return d(function(){kp(l)&&Np(a)})}function kp(a){var l=a.getSnapshot;a=a.value;try{var d=l();return!Mo(a,d)}catch{return!0}}function Np(a){var l=qa(a,1);l!==null&&da(l,a,1,-1)}function Dp(a){var l=Qi();return typeof a=="function"&&(a=a()),l.memoizedState=l.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$l,lastRenderedState:a},l.queue=a,a=a.dispatch=ps.bind(null,Kn,a),[l.memoizedState,a]}function fs(a,l,d,h){return a={tag:a,create:l,destroy:d,deps:h,next:null},l=Kn.updateQueue,l===null?(l={lastEffect:null,stores:null},Kn.updateQueue=l,l.lastEffect=a.next=a):(d=l.lastEffect,d===null?l.lastEffect=a.next=a:(h=d.next,d.next=a,a.next=h,l.lastEffect=a)),a}function Mp(){return Kr().memoizedState}function uc(a,l,d,h){var E=Qi();Kn.flags|=a,E.memoizedState=fs(1|l,d,void 0,h===void 0?null:h)}function sc(a,l,d,h){var E=Kr();h=h===void 0?null:h;var T=void 0;if(ni!==null){var F=ni.memoizedState;if(T=F.destroy,h!==null&&Jt(h,F.deps)){E.memoizedState=fs(l,d,T,h);return}}Kn.flags|=a,E.memoizedState=fs(1|l,d,T,h)}function Pp(a,l){return uc(8390656,8,a,l)}function xf(a,l){return sc(2048,8,a,l)}function Ap(a,l){return sc(4,2,a,l)}function Rf(a,l){return sc(4,4,a,l)}function ds(a,l){if(typeof l=="function")return a=a(),l(a),function(){l(null)};if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function $p(a,l,d){return d=d!=null?d.concat([a]):null,sc(4,4,ds.bind(null,l,a),d)}function Tf(){}function Lp(a,l){var d=Kr();l=l===void 0?null:l;var h=d.memoizedState;return h!==null&&l!==null&&Jt(l,h[1])?h[0]:(d.memoizedState=[a,l],a)}function Fp(a,l){var d=Kr();l=l===void 0?null:l;var h=d.memoizedState;return h!==null&&l!==null&&Jt(l,h[1])?h[0]:(a=a(),d.memoizedState=[a,l],a)}function fm(a,l,d){return hr&21?(Mo(d,l)||(d=bn(),Kn.lanes|=d,ol|=d,a.baseState=!0),l):(a.baseState&&(a.baseState=!1,ri=!0),a.memoizedState=d)}function Of(a,l){var d=vn;vn=d!==0&&4>d?d:4,a(!0);var h=qn.transition;qn.transition={};try{a(!1),l()}finally{vn=d,qn.transition=h}}function dm(){return Kr().memoizedState}function _f(a,l,d){var h=ll(a);if(d={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null},Ya(a))q0(l,d);else if(d=lm(a,l,d,h),d!==null){var E=oi();da(d,a,h,E),br(d,l,h)}}function ps(a,l,d){var h=ll(a),E={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(Ya(a))q0(l,E);else{var T=a.alternate;if(a.lanes===0&&(T===null||T.lanes===0)&&(T=l.lastRenderedReducer,T!==null))try{var F=l.lastRenderedState,Q=T(F,d);if(E.hasEagerState=!0,E.eagerState=Q,Mo(Q,F)){var ae=l.interleaved;ae===null?(E.next=E,om(l)):(E.next=ae.next,ae.next=E),l.interleaved=E;return}}catch{}finally{}d=lm(a,l,E,h),d!==null&&(E=oi(),da(d,a,h,E),br(d,l,h))}}function Ya(a){var l=a.alternate;return a===Kn||l!==null&&l===Kn}function q0(a,l){wf=wp=!0;var d=a.pending;d===null?l.next=l:(l.next=d.next,d.next=l),a.pending=l}function br(a,l,d){if(d&4194240){var h=l.lanes;h&=a.pendingLanes,d|=h,l.lanes=d,xi(a,d)}}var vs={readContext:go,useCallback:Wn,useContext:Wn,useEffect:Wn,useImperativeHandle:Wn,useInsertionEffect:Wn,useLayoutEffect:Wn,useMemo:Wn,useReducer:Wn,useRef:Wn,useState:Wn,useDebugValue:Wn,useDeferredValue:Wn,useTransition:Wn,useMutableSource:Wn,useSyncExternalStore:Wn,useId:Wn,unstable_isNewReconciler:!1},Ip={readContext:go,useCallback:function(a,l){return Qi().memoizedState=[a,l===void 0?null:l],a},useContext:go,useEffect:Pp,useImperativeHandle:function(a,l,d){return d=d!=null?d.concat([a]):null,uc(4194308,4,ds.bind(null,l,a),d)},useLayoutEffect:function(a,l){return uc(4194308,4,a,l)},useInsertionEffect:function(a,l){return uc(4,2,a,l)},useMemo:function(a,l){var d=Qi();return l=l===void 0?null:l,a=a(),d.memoizedState=[a,l],a},useReducer:function(a,l,d){var h=Qi();return l=d!==void 0?d(l):l,h.memoizedState=h.baseState=l,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:l},h.queue=a,a=a.dispatch=_f.bind(null,Kn,a),[h.memoizedState,a]},useRef:function(a){var l=Qi();return a={current:a},l.memoizedState=a},useState:Dp,useDebugValue:Tf,useDeferredValue:function(a){return Qi().memoizedState=a},useTransition:function(){var a=Dp(!1),l=a[0];return a=Of.bind(null,a[1]),Qi().memoizedState=a,[l,a]},useMutableSource:function(){},useSyncExternalStore:function(a,l,d){var h=Kn,E=Qi();if(Mr){if(d===void 0)throw Error(i(407));d=d()}else{if(d=l(),mi===null)throw Error(i(349));hr&30||Tp(h,l,d)}E.memoizedState=d;var T={value:d,getSnapshot:l};return E.queue=T,Pp(_p.bind(null,h,T,a),[a]),h.flags|=2048,fs(9,Op.bind(null,h,T,d,l),void 0,null),d},useId:function(){var a=Qi(),l=mi.identifierPrefix;if(Mr){var d=tl,h=el;d=(h&~(1<<32-Tr(h)-1)).toString(32)+d,l=":"+l+"R"+d,d=ss++,0<d&&(l+="H"+d.toString(32)),l+=":"}else d=je++,l=":"+l+"r"+d.toString(32)+":";return a.memoizedState=l},unstable_isNewReconciler:!1},kf={readContext:go,useCallback:Lp,useContext:go,useEffect:xf,useImperativeHandle:$p,useInsertionEffect:Ap,useLayoutEffect:Rf,useMemo:Fp,useReducer:gu,useRef:Mp,useState:function(){return gu($l)},useDebugValue:Tf,useDeferredValue:function(a){var l=Kr();return fm(l,ni.memoizedState,a)},useTransition:function(){var a=gu($l)[0],l=Kr().memoizedState;return[a,l]},useMutableSource:xp,useSyncExternalStore:Rp,useId:dm,unstable_isNewReconciler:!1},zp={readContext:go,useCallback:Lp,useContext:go,useEffect:xf,useImperativeHandle:$p,useInsertionEffect:Ap,useLayoutEffect:Rf,useMemo:Fp,useReducer:cs,useRef:Mp,useState:function(){return cs($l)},useDebugValue:Tf,useDeferredValue:function(a){var l=Kr();return ni===null?l.memoizedState=a:fm(l,ni.memoizedState,a)},useTransition:function(){var a=cs($l)[0],l=Kr().memoizedState;return[a,l]},useMutableSource:xp,useSyncExternalStore:Rp,useId:dm,unstable_isNewReconciler:!1};function Lo(a,l){if(a&&a.defaultProps){l=pe({},l),a=a.defaultProps;for(var d in a)l[d]===void 0&&(l[d]=a[d]);return l}return l}function pm(a,l,d,h){l=a.memoizedState,d=d(h,l),d=d==null?l:pe({},l,d),a.memoizedState=d,a.lanes===0&&(a.updateQueue.baseState=d)}var jp={isMounted:function(a){return(a=a._reactInternals)?Bt(a)===a:!1},enqueueSetState:function(a,l,d){a=a._reactInternals;var h=oi(),E=ll(a),T=Al(h,E);T.payload=l,d!=null&&(T.callback=d),l=hu(a,T,E),l!==null&&(da(l,a,E,h),Sp(l,a,E))},enqueueReplaceState:function(a,l,d){a=a._reactInternals;var h=oi(),E=ll(a),T=Al(h,E);T.tag=1,T.payload=l,d!=null&&(T.callback=d),l=hu(a,T,E),l!==null&&(da(l,a,E,h),Sp(l,a,E))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var d=oi(),h=ll(a),E=Al(d,h);E.tag=2,l!=null&&(E.callback=l),l=hu(a,E,h),l!==null&&(da(l,a,h,d),Sp(l,a,h))}};function K0(a,l,d,h,E,T,F){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,T,F):l.prototype&&l.prototype.isPureReactComponent?!uf(d,h)||!uf(E,T):!0}function Up(a,l,d){var h=!1,E=Ra,T=l.contextType;return typeof T=="object"&&T!==null?T=go(T):(E=ei(l)?Ta:Br.current,h=l.contextTypes,T=(h=h!=null)?vo(a,E):Ra),l=new l(d,T),a.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=jp,a.stateNode=l,l._reactInternals=a,h&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=E,a.__reactInternalMemoizedMaskedChildContext=T),l}function Y0(a,l,d,h){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,h),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,h),l.state!==a&&jp.enqueueReplaceState(l,l.state,null)}function Nf(a,l,d,h){var E=a.stateNode;E.props=d,E.state=a.memoizedState,E.refs={},um(a);var T=l.contextType;typeof T=="object"&&T!==null?E.context=go(T):(T=ei(l)?Ta:Br.current,E.context=vo(a,T)),E.state=a.memoizedState,T=l.getDerivedStateFromProps,typeof T=="function"&&(pm(a,l,T,d),E.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(l=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),l!==E.state&&jp.enqueueReplaceState(E,E.state,null),yf(a,d,E,h),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308)}function hs(a,l){try{var d="",h=l;do d+=Le(h),h=h.return;while(h);var E=d}catch(T){E=`
|
|
78
|
-
Error generating stack: `+T.message+`
|
|
79
|
-
`+T.stack}return{value:a,source:l,stack:E,digest:null}}function vm(a,l,d){return{value:a,source:null,stack:d??null,digest:l??null}}function hm(a,l){try{console.error(l.value)}catch(d){setTimeout(function(){throw d})}}var Bp=typeof WeakMap=="function"?WeakMap:Map;function G0(a,l,d){d=Al(-1,d),d.tag=3,d.payload={element:null};var h=l.value;return d.callback=function(){hc||(hc=!0,ys=h),hm(a,l)},d}function mm(a,l,d){d=Al(-1,d),d.tag=3;var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var E=l.value;d.payload=function(){return h(E)},d.callback=function(){hm(a,l)}}var T=a.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(d.callback=function(){hm(a,l),typeof h!="function"&&(Su===null?Su=new Set([this]):Su.add(this));var F=l.stack;this.componentDidCatch(l.value,{componentStack:F!==null?F:""})}),d}function gm(a,l,d){var h=a.pingCache;if(h===null){h=a.pingCache=new Bp;var E=new Set;h.set(l,E)}else E=h.get(l),E===void 0&&(E=new Set,h.set(l,E));E.has(d)||(E.add(d),a=d1.bind(null,a,l,d),l.then(a,a))}function X0(a){do{var l;if((l=a.tag===13)&&(l=a.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return a;a=a.return}while(a!==null);return null}function yu(a,l,d,h,E){return a.mode&1?(a.flags|=65536,a.lanes=E,a):(a===l?a.flags|=65536:(a.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(l=Al(-1,1),l.tag=2,hu(d,l,1))),d.lanes|=1),a)}var Df=V.ReactCurrentOwner,ri=!1;function Ii(a,l,d,h){l.child=a===null?lt(l,null,d,h):qr(l,a.child,d,h)}function Da(a,l,d,h,E){d=d.render;var T=l.ref;return Ir(l,E),h=mu(a,l,d,h,T,E),d=$o(),a!==null&&!ri?(l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~E,bo(a,l,E)):(Mr&&d&&mp(l),l.flags|=1,Ii(a,l,h,E),l.child)}function ms(a,l,d,h,E){if(a===null){var T=d.type;return typeof T=="function"&&!Dm(T)&&T.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(l.tag=15,l.type=T,fn(a,l,T,h,E)):(a=Kf(d.type,null,h,l,l.mode,E),a.ref=l.ref,a.return=l,l.child=a)}if(T=a.child,!(a.lanes&E)){var F=T.memoizedProps;if(d=d.compare,d=d!==null?d:uf,d(F,h)&&a.ref===l.ref)return bo(a,l,E)}return l.flags|=1,a=Cu(T,h),a.ref=l.ref,a.return=l,l.child=a}function fn(a,l,d,h,E){if(a!==null){var T=a.memoizedProps;if(uf(T,h)&&a.ref===l.ref)if(ri=!1,l.pendingProps=h=T,(a.lanes&E)!==0)a.flags&131072&&(ri=!0);else return l.lanes=a.lanes,bo(a,l,E)}return Q0(a,l,d,h,E)}function Mf(a,l,d){var h=l.pendingProps,E=h.children,T=a!==null?a.memoizedState:null;if(h.mode==="hidden")if(!(l.mode&1))l.memoizedState={baseLanes:0,cachePool:null,transitions:null},$t(dc,Ga),Ga|=d;else{if(!(d&1073741824))return a=T!==null?T.baseLanes|d:d,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:a,cachePool:null,transitions:null},l.updateQueue=null,$t(dc,Ga),Ga|=a,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=T!==null?T.baseLanes:d,$t(dc,Ga),Ga|=h}else T!==null?(h=T.baseLanes|d,l.memoizedState=null):h=d,$t(dc,Ga),Ga|=h;return Ii(a,l,E,d),l.child}function ym(a,l){var d=l.ref;(a===null&&d!==null||a!==null&&a.ref!==d)&&(l.flags|=512,l.flags|=2097152)}function Q0(a,l,d,h,E){var T=ei(d)?Ta:Br.current;return T=vo(l,T),Ir(l,E),d=mu(a,l,d,h,T,E),h=$o(),a!==null&&!ri?(l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~E,bo(a,l,E)):(Mr&&h&&mp(l),l.flags|=1,Ii(a,l,d,E),l.child)}function J0(a,l,d,h,E){if(ei(d)){var T=!0;Oa(l)}else T=!1;if(Ir(l,E),l.stateNode===null)yo(a,l),Up(l,d,h),Nf(l,d,h,E),h=!0;else if(a===null){var F=l.stateNode,Q=l.memoizedProps;F.props=Q;var ae=F.context,_e=d.contextType;typeof _e=="object"&&_e!==null?_e=go(_e):(_e=ei(d)?Ta:Br.current,_e=vo(l,_e));var Ve=d.getDerivedStateFromProps,Ke=typeof Ve=="function"||typeof F.getSnapshotBeforeUpdate=="function";Ke||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(Q!==h||ae!==_e)&&Y0(l,F,h,_e),Ka=!1;var Be=l.memoizedState;F.state=Be,yf(l,h,F,E),ae=l.memoizedState,Q!==h||Be!==ae||vi.current||Ka?(typeof Ve=="function"&&(pm(l,d,Ve,h),ae=l.memoizedState),(Q=Ka||K0(l,d,Q,h,Be,ae,_e))?(Ke||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount=="function"&&(l.flags|=4194308)):(typeof F.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=h,l.memoizedState=ae),F.props=h,F.state=ae,F.context=_e,h=Q):(typeof F.componentDidMount=="function"&&(l.flags|=4194308),h=!1)}else{F=l.stateNode,V0(a,l),Q=l.memoizedProps,_e=l.type===l.elementType?Q:Lo(l.type,Q),F.props=_e,Ke=l.pendingProps,Be=F.context,ae=d.contextType,typeof ae=="object"&&ae!==null?ae=go(ae):(ae=ei(d)?Ta:Br.current,ae=vo(l,ae));var dt=d.getDerivedStateFromProps;(Ve=typeof dt=="function"||typeof F.getSnapshotBeforeUpdate=="function")||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(Q!==Ke||Be!==ae)&&Y0(l,F,h,ae),Ka=!1,Be=l.memoizedState,F.state=Be,yf(l,h,F,E);var wt=l.memoizedState;Q!==Ke||Be!==wt||vi.current||Ka?(typeof dt=="function"&&(pm(l,d,dt,h),wt=l.memoizedState),(_e=Ka||K0(l,d,_e,h,Be,wt,ae)||!1)?(Ve||typeof F.UNSAFE_componentWillUpdate!="function"&&typeof F.componentWillUpdate!="function"||(typeof F.componentWillUpdate=="function"&&F.componentWillUpdate(h,wt,ae),typeof F.UNSAFE_componentWillUpdate=="function"&&F.UNSAFE_componentWillUpdate(h,wt,ae)),typeof F.componentDidUpdate=="function"&&(l.flags|=4),typeof F.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof F.componentDidUpdate!="function"||Q===a.memoizedProps&&Be===a.memoizedState||(l.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||Q===a.memoizedProps&&Be===a.memoizedState||(l.flags|=1024),l.memoizedProps=h,l.memoizedState=wt),F.props=h,F.state=wt,F.context=ae,h=_e):(typeof F.componentDidUpdate!="function"||Q===a.memoizedProps&&Be===a.memoizedState||(l.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||Q===a.memoizedProps&&Be===a.memoizedState||(l.flags|=1024),h=!1)}return Pf(a,l,d,h,T,E)}function Pf(a,l,d,h,E,T){ym(a,l);var F=(l.flags&128)!==0;if(!h&&!F)return E&&vp(l,d,!1),bo(a,l,T);h=l.stateNode,Df.current=l;var Q=F&&typeof d.getDerivedStateFromError!="function"?null:h.render();return l.flags|=1,a!==null&&F?(l.child=qr(l,a.child,null,T),l.child=qr(l,null,Q,T)):Ii(a,l,Q,T),l.memoizedState=h.state,E&&vp(l,d,!0),l.child}function cc(a){var l=a.stateNode;l.pendingContext?z0(a,l.pendingContext,l.pendingContext!==l.context):l.context&&z0(a,l.context,!1),cm(a,l.containerInfo)}function Z0(a,l,d,h,E){return vu(),Pl(E),l.flags|=256,Ii(a,l,d,h),l.child}var Vp={dehydrated:null,treeContext:null,retryLane:0};function bm(a){return{baseLanes:a,cachePool:null,transitions:null}}function Hp(a,l,d){var h=l.pendingProps,E=zr.current,T=!1,F=(l.flags&128)!==0,Q;if((Q=F)||(Q=a!==null&&a.memoizedState===null?!1:(E&2)!==0),Q?(T=!0,l.flags&=-129):(a===null||a.memoizedState!==null)&&(E|=1),$t(zr,E&1),a===null)return tm(l),a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(l.mode&1?a.data==="$!"?l.lanes=8:l.lanes=1073741824:l.lanes=1,null):(F=h.children,a=h.fallback,T?(h=l.mode,T=l.child,F={mode:"hidden",children:F},!(h&1)&&T!==null?(T.childLanes=0,T.pendingProps=F):T=wu(F,h,0,null),a=zl(a,h,d,null),T.return=l,a.return=l,T.sibling=a,l.child=T,l.child.memoizedState=bm(d),l.memoizedState=Vp,a):Sm(l,F));if(E=a.memoizedState,E!==null&&(Q=E.dehydrated,Q!==null))return eb(a,l,F,h,Q,E,d);if(T){T=h.fallback,F=l.mode,E=a.child,Q=E.sibling;var ae={mode:"hidden",children:h.children};return!(F&1)&&l.child!==E?(h=l.child,h.childLanes=0,h.pendingProps=ae,l.deletions=null):(h=Cu(E,ae),h.subtreeFlags=E.subtreeFlags&14680064),Q!==null?T=Cu(Q,T):(T=zl(T,F,d,null),T.flags|=2),T.return=l,h.return=l,h.sibling=T,l.child=h,h=T,T=l.child,F=a.child.memoizedState,F=F===null?bm(d):{baseLanes:F.baseLanes|d,cachePool:null,transitions:F.transitions},T.memoizedState=F,T.childLanes=a.childLanes&~d,l.memoizedState=Vp,h}return T=a.child,a=T.sibling,h=Cu(T,{mode:"visible",children:h.children}),!(l.mode&1)&&(h.lanes=d),h.return=l,h.sibling=null,a!==null&&(d=l.deletions,d===null?(l.deletions=[a],l.flags|=16):d.push(a)),l.child=h,l.memoizedState=null,h}function Sm(a,l){return l=wu({mode:"visible",children:l},a.mode,0,null),l.return=a,a.child=l}function Af(a,l,d,h){return h!==null&&Pl(h),qr(l,a.child,null,d),a=Sm(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function eb(a,l,d,h,E,T,F){if(d)return l.flags&256?(l.flags&=-257,h=vm(Error(i(422))),Af(a,l,F,h)):l.memoizedState!==null?(l.child=a.child,l.flags|=128,null):(T=h.fallback,E=l.mode,h=wu({mode:"visible",children:h.children},E,0,null),T=zl(T,E,F,null),T.flags|=2,h.return=l,T.return=l,h.sibling=T,l.child=h,l.mode&1&&qr(l,a.child,null,F),l.child.memoizedState=bm(F),l.memoizedState=Vp,T);if(!(l.mode&1))return Af(a,l,F,null);if(E.data==="$!"){if(h=E.nextSibling&&E.nextSibling.dataset,h)var Q=h.dgst;return h=Q,T=Error(i(419)),h=vm(T,h,void 0),Af(a,l,F,h)}if(Q=(F&a.childLanes)!==0,ri||Q){if(h=mi,h!==null){switch(F&-F){case 4:E=2;break;case 16:E=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:E=32;break;case 536870912:E=268435456;break;default:E=0}E=E&(h.suspendedLanes|F)?0:E,E!==0&&E!==T.retryLane&&(T.retryLane=E,qa(a,E),da(h,a,E,-1))}return Nm(),h=vm(Error(i(421))),Af(a,l,F,h)}return E.data==="$?"?(l.flags|=128,l.child=a.child,l=p1.bind(null,a),E._reactRetry=l,null):(a=T.treeContext,ka=Xo(E.nextSibling),_a=l,Mr=!0,mo=null,a!==null&&(ti[ho++]=el,ti[ho++]=tl,ti[ho++]=Ha,el=a.id,tl=a.overflow,Ha=l),l=Sm(l,h.children),l.flags|=4096,l)}function Em(a,l,d){a.lanes|=l;var h=a.alternate;h!==null&&(h.lanes|=l),am(a.return,l,d)}function sa(a,l,d,h,E){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:E}:(T.isBackwards=l,T.rendering=null,T.renderingStartTime=0,T.last=h,T.tail=d,T.tailMode=E)}function rl(a,l,d){var h=l.pendingProps,E=h.revealOrder,T=h.tail;if(Ii(a,l,h.children,d),h=zr.current,h&2)h=h&1|2,l.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Em(a,d,l);else if(a.tag===19)Em(a,d,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}h&=1}if($t(zr,h),!(l.mode&1))l.memoizedState=null;else switch(E){case"forwards":for(d=l.child,E=null;d!==null;)a=d.alternate,a!==null&&Cp(a)===null&&(E=d),d=d.sibling;d=E,d===null?(E=l.child,l.child=null):(E=d.sibling,d.sibling=null),sa(l,!1,E,d,T);break;case"backwards":for(d=null,E=l.child,l.child=null;E!==null;){if(a=E.alternate,a!==null&&Cp(a)===null){l.child=E;break}a=E.sibling,E.sibling=d,d=E,E=a}sa(l,!0,d,null,T);break;case"together":sa(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function yo(a,l){!(l.mode&1)&&a!==null&&(a.alternate=null,l.alternate=null,l.flags|=2)}function bo(a,l,d){if(a!==null&&(l.dependencies=a.dependencies),ol|=l.lanes,!(d&l.childLanes))return null;if(a!==null&&l.child!==a.child)throw Error(i(153));if(l.child!==null){for(a=l.child,d=Cu(a,a.pendingProps),l.child=d,d.return=l;a.sibling!==null;)a=a.sibling,d=d.sibling=Cu(a,a.pendingProps),d.return=l;d.sibling=null}return l.child}function $f(a,l,d){switch(l.tag){case 3:cc(l),vu();break;case 5:W0(l);break;case 1:ei(l.type)&&Oa(l);break;case 4:cm(l,l.stateNode.containerInfo);break;case 10:var h=l.type._context,E=l.memoizedProps.value;$t(Wa,h._currentValue),h._currentValue=E;break;case 13:if(h=l.memoizedState,h!==null)return h.dehydrated!==null?($t(zr,zr.current&1),l.flags|=128,null):d&l.child.childLanes?Hp(a,l,d):($t(zr,zr.current&1),a=bo(a,l,d),a!==null?a.sibling:null);$t(zr,zr.current&1);break;case 19:if(h=(d&l.childLanes)!==0,a.flags&128){if(h)return rl(a,l,d);l.flags|=128}if(E=l.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),$t(zr,zr.current),h)break;return null;case 22:case 23:return l.lanes=0,Mf(a,l,d)}return bo(a,l,d)}var So,ii,tb,nb;So=function(a,l){for(var d=l.child;d!==null;){if(d.tag===5||d.tag===6)a.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===l)break;for(;d.sibling===null;){if(d.return===null||d.return===l)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},ii=function(){},tb=function(a,l,d,h){var E=a.memoizedProps;if(E!==h){a=l.stateNode,ls(nl.current);var T=null;switch(d){case"input":E=$e(a,E),h=$e(a,h),T=[];break;case"select":E=pe({},E,{value:void 0}),h=pe({},h,{value:void 0}),T=[];break;case"textarea":E=Ut(a,E),h=Ut(a,h),T=[];break;default:typeof E.onClick!="function"&&typeof h.onClick=="function"&&(a.onclick=uu)}Se(d,h);var F;d=null;for(_e in E)if(!h.hasOwnProperty(_e)&&E.hasOwnProperty(_e)&&E[_e]!=null)if(_e==="style"){var Q=E[_e];for(F in Q)Q.hasOwnProperty(F)&&(d||(d={}),d[F]="")}else _e!=="dangerouslySetInnerHTML"&&_e!=="children"&&_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&_e!=="autoFocus"&&(u.hasOwnProperty(_e)?T||(T=[]):(T=T||[]).push(_e,null));for(_e in h){var ae=h[_e];if(Q=E?.[_e],h.hasOwnProperty(_e)&&ae!==Q&&(ae!=null||Q!=null))if(_e==="style")if(Q){for(F in Q)!Q.hasOwnProperty(F)||ae&&ae.hasOwnProperty(F)||(d||(d={}),d[F]="");for(F in ae)ae.hasOwnProperty(F)&&Q[F]!==ae[F]&&(d||(d={}),d[F]=ae[F])}else d||(T||(T=[]),T.push(_e,d)),d=ae;else _e==="dangerouslySetInnerHTML"?(ae=ae?ae.__html:void 0,Q=Q?Q.__html:void 0,ae!=null&&Q!==ae&&(T=T||[]).push(_e,ae)):_e==="children"?typeof ae!="string"&&typeof ae!="number"||(T=T||[]).push(_e,""+ae):_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&(u.hasOwnProperty(_e)?(ae!=null&&_e==="onScroll"&&rr("scroll",a),T||Q===ae||(T=[])):(T=T||[]).push(_e,ae))}d&&(T=T||[]).push("style",d);var _e=T;(l.updateQueue=_e)&&(l.flags|=4)}},nb=function(a,l,d,h){d!==h&&(l.flags|=4)};function Lf(a,l){if(!Mr)switch(a.tailMode){case"hidden":l=a.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?a.tail=null:d.sibling=null;break;case"collapsed":d=a.tail;for(var h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:h.sibling=null}}function Ti(a){var l=a.alternate!==null&&a.alternate.child===a.child,d=0,h=0;if(l)for(var E=a.child;E!==null;)d|=E.lanes|E.childLanes,h|=E.subtreeFlags&14680064,h|=E.flags&14680064,E.return=a,E=E.sibling;else for(E=a.child;E!==null;)d|=E.lanes|E.childLanes,h|=E.subtreeFlags,h|=E.flags,E.return=a,E=E.sibling;return a.subtreeFlags|=h,a.childLanes=d,l}function rb(a,l,d){var h=l.pendingProps;switch(gp(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ti(l),null;case 1:return ei(l.type)&&ac(),Ti(l),null;case 3:return h=l.stateNode,us(),xr(vi),xr(Br),zt(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(a===null||a.child===null)&&(yp(l)?l.flags|=4:a===null||a.memoizedState.isDehydrated&&!(l.flags&256)||(l.flags|=1024,mo!==null&&(bs(mo),mo=null))),ii(a,l),Ti(l),null;case 5:Ep(l);var E=ls(Ef.current);if(d=l.type,a!==null&&l.stateNode!=null)tb(a,l,d,h,E),a.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!h){if(l.stateNode===null)throw Error(i(166));return Ti(l),null}if(a=ls(nl.current),yp(l)){h=l.stateNode,d=l.type;var T=l.memoizedProps;switch(h[Qo]=l,h[vf]=T,a=(l.mode&1)!==0,d){case"dialog":rr("cancel",h),rr("close",h);break;case"iframe":case"object":case"embed":rr("load",h);break;case"video":case"audio":for(E=0;E<ff.length;E++)rr(ff[E],h);break;case"source":rr("error",h);break;case"img":case"image":case"link":rr("error",h),rr("load",h);break;case"details":rr("toggle",h);break;case"input":yt(h,T),rr("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!T.multiple},rr("invalid",h);break;case"textarea":tt(h,T),rr("invalid",h)}Se(d,T),E=null;for(var F in T)if(T.hasOwnProperty(F)){var Q=T[F];F==="children"?typeof Q=="string"?h.textContent!==Q&&(T.suppressHydrationWarning!==!0&&cp(h.textContent,Q,a),E=["children",Q]):typeof Q=="number"&&h.textContent!==""+Q&&(T.suppressHydrationWarning!==!0&&cp(h.textContent,Q,a),E=["children",""+Q]):u.hasOwnProperty(F)&&Q!=null&&F==="onScroll"&&rr("scroll",h)}switch(d){case"input":rt(h),cn(h,T,!0);break;case"textarea":rt(h),St(h);break;case"select":case"option":break;default:typeof T.onClick=="function"&&(h.onclick=uu)}h=E,l.updateQueue=h,h!==null&&(l.flags|=4)}else{F=E.nodeType===9?E:E.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=Pt(d)),a==="http://www.w3.org/1999/xhtml"?d==="script"?(a=F.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof h.is=="string"?a=F.createElement(d,{is:h.is}):(a=F.createElement(d),d==="select"&&(F=a,h.multiple?F.multiple=!0:h.size&&(F.size=h.size))):a=F.createElementNS(a,d),a[Qo]=l,a[vf]=h,So(a,l,!1,!1),l.stateNode=a;e:{switch(F=Xe(d,h),d){case"dialog":rr("cancel",a),rr("close",a),E=h;break;case"iframe":case"object":case"embed":rr("load",a),E=h;break;case"video":case"audio":for(E=0;E<ff.length;E++)rr(ff[E],a);E=h;break;case"source":rr("error",a),E=h;break;case"img":case"image":case"link":rr("error",a),rr("load",a),E=h;break;case"details":rr("toggle",a),E=h;break;case"input":yt(a,h),E=$e(a,h),rr("invalid",a);break;case"option":E=h;break;case"select":a._wrapperState={wasMultiple:!!h.multiple},E=pe({},h,{value:void 0}),rr("invalid",a);break;case"textarea":tt(a,h),E=Ut(a,h),rr("invalid",a);break;default:E=h}Se(d,E),Q=E;for(T in Q)if(Q.hasOwnProperty(T)){var ae=Q[T];T==="style"?ee(a,ae):T==="dangerouslySetInnerHTML"?(ae=ae?ae.__html:void 0,ae!=null&&Jn(a,ae)):T==="children"?typeof ae=="string"?(d!=="textarea"||ae!=="")&&A(a,ae):typeof ae=="number"&&A(a,""+ae):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(u.hasOwnProperty(T)?ae!=null&&T==="onScroll"&&rr("scroll",a):ae!=null&&z(a,T,ae,F))}switch(d){case"input":rt(a),cn(a,h,!1);break;case"textarea":rt(a),St(a);break;case"option":h.value!=null&&a.setAttribute("value",""+qe(h.value));break;case"select":a.multiple=!!h.multiple,T=h.value,T!=null?bt(a,!!h.multiple,T,!1):h.defaultValue!=null&&bt(a,!!h.multiple,h.defaultValue,!0);break;default:typeof E.onClick=="function"&&(a.onclick=uu)}switch(d){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(l.flags|=4)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return Ti(l),null;case 6:if(a&&l.stateNode!=null)nb(a,l,a.memoizedProps,h);else{if(typeof h!="string"&&l.stateNode===null)throw Error(i(166));if(d=ls(Ef.current),ls(nl.current),yp(l)){if(h=l.stateNode,d=l.memoizedProps,h[Qo]=l,(T=h.nodeValue!==d)&&(a=_a,a!==null))switch(a.tag){case 3:cp(h.nodeValue,d,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&cp(h.nodeValue,d,(a.mode&1)!==0)}T&&(l.flags|=4)}else h=(d.nodeType===9?d:d.ownerDocument).createTextNode(h),h[Qo]=l,l.stateNode=h}return Ti(l),null;case 13:if(xr(zr),h=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Mr&&ka!==null&&l.mode&1&&!(l.flags&128))gf(),vu(),l.flags|=98560,T=!1;else if(T=yp(l),h!==null&&h.dehydrated!==null){if(a===null){if(!T)throw Error(i(318));if(T=l.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(i(317));T[Qo]=l}else vu(),!(l.flags&128)&&(l.memoizedState=null),l.flags|=4;Ti(l),T=!1}else mo!==null&&(bs(mo),mo=null),T=!0;if(!T)return l.flags&65536?l:null}return l.flags&128?(l.lanes=d,l):(h=h!==null,h!==(a!==null&&a.memoizedState!==null)&&h&&(l.child.flags|=8192,l.mode&1&&(a===null||zr.current&1?Gr===0&&(Gr=3):Nm())),l.updateQueue!==null&&(l.flags|=4),Ti(l),null);case 4:return us(),ii(a,l),a===null&&ec(l.stateNode.containerInfo),Ti(l),null;case 10:return im(l.type._context),Ti(l),null;case 17:return ei(l.type)&&ac(),Ti(l),null;case 19:if(xr(zr),T=l.memoizedState,T===null)return Ti(l),null;if(h=(l.flags&128)!==0,F=T.rendering,F===null)if(h)Lf(T,!1);else{if(Gr!==0||a!==null&&a.flags&128)for(a=l.child;a!==null;){if(F=Cp(a),F!==null){for(l.flags|=128,Lf(T,!1),h=F.updateQueue,h!==null&&(l.updateQueue=h,l.flags|=4),l.subtreeFlags=0,h=d,d=l.child;d!==null;)T=d,a=h,T.flags&=14680066,F=T.alternate,F===null?(T.childLanes=0,T.lanes=a,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=F.childLanes,T.lanes=F.lanes,T.child=F.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=F.memoizedProps,T.memoizedState=F.memoizedState,T.updateQueue=F.updateQueue,T.type=F.type,a=F.dependencies,T.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),d=d.sibling;return $t(zr,zr.current&1|2),l.child}a=a.sibling}T.tail!==null&&Vt()>vc&&(l.flags|=128,h=!0,Lf(T,!1),l.lanes=4194304)}else{if(!h)if(a=Cp(F),a!==null){if(l.flags|=128,h=!0,d=a.updateQueue,d!==null&&(l.updateQueue=d,l.flags|=4),Lf(T,!0),T.tail===null&&T.tailMode==="hidden"&&!F.alternate&&!Mr)return Ti(l),null}else 2*Vt()-T.renderingStartTime>vc&&d!==1073741824&&(l.flags|=128,h=!0,Lf(T,!1),l.lanes=4194304);T.isBackwards?(F.sibling=l.child,l.child=F):(d=T.last,d!==null?d.sibling=F:l.child=F,T.last=F)}return T.tail!==null?(l=T.tail,T.rendering=l,T.tail=l.sibling,T.renderingStartTime=Vt(),l.sibling=null,d=zr.current,$t(zr,h?d&1|2:d&1),l):(Ti(l),null);case 22:case 23:return km(),h=l.memoizedState!==null,a!==null&&a.memoizedState!==null!==h&&(l.flags|=8192),h&&l.mode&1?Ga&1073741824&&(Ti(l),l.subtreeFlags&6&&(l.flags|=8192)):Ti(l),null;case 24:return null;case 25:return null}throw Error(i(156,l.tag))}function Wp(a,l){switch(gp(l),l.tag){case 1:return ei(l.type)&&ac(),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return us(),xr(vi),xr(Br),zt(),a=l.flags,a&65536&&!(a&128)?(l.flags=a&-65537|128,l):null;case 5:return Ep(l),null;case 13:if(xr(zr),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(i(340));vu()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return xr(zr),null;case 4:return us(),null;case 10:return im(l.type._context),null;case 22:case 23:return km(),null;case 24:return null;default:return null}}var Ff=!1,Ji=!1,o1=typeof WeakSet=="function"?WeakSet:Set,ht=null;function fc(a,l){var d=a.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(h){Pr(a,l,h)}else d.current=null}function qp(a,l,d){try{d()}catch(h){Pr(a,l,h)}}var ib=!1;function ab(a,l){if(pf=co,a=sf(),np(a)){if("selectionStart"in a)var d={start:a.selectionStart,end:a.selectionEnd};else e:{d=(d=a.ownerDocument)&&d.defaultView||window;var h=d.getSelection&&d.getSelection();if(h&&h.rangeCount!==0){d=h.anchorNode;var E=h.anchorOffset,T=h.focusNode;h=h.focusOffset;try{d.nodeType,T.nodeType}catch{d=null;break e}var F=0,Q=-1,ae=-1,_e=0,Ve=0,Ke=a,Be=null;t:for(;;){for(var dt;Ke!==d||E!==0&&Ke.nodeType!==3||(Q=F+E),Ke!==T||h!==0&&Ke.nodeType!==3||(ae=F+h),Ke.nodeType===3&&(F+=Ke.nodeValue.length),(dt=Ke.firstChild)!==null;)Be=Ke,Ke=dt;for(;;){if(Ke===a)break t;if(Be===d&&++_e===E&&(Q=F),Be===T&&++Ve===h&&(ae=F),(dt=Ke.nextSibling)!==null)break;Ke=Be,Be=Ke.parentNode}Ke=dt}d=Q===-1||ae===-1?null:{start:Q,end:ae}}else d=null}d=d||{start:0,end:0}}else d=null;for(ts={focusedElem:a,selectionRange:d},co=!1,ht=l;ht!==null;)if(l=ht,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,ht=a;else for(;ht!==null;){l=ht;try{var wt=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(wt!==null){var kt=wt.memoizedProps,Xr=wt.memoizedState,be=l.stateNode,ce=be.getSnapshotBeforeUpdate(l.elementType===l.type?kt:Lo(l.type,kt),Xr);be.__reactInternalSnapshotBeforeUpdate=ce}break;case 3:var xe=l.stateNode.containerInfo;xe.nodeType===1?xe.textContent="":xe.nodeType===9&&xe.documentElement&&xe.removeChild(xe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(He){Pr(l,l.return,He)}if(a=l.sibling,a!==null){a.return=l.return,ht=a;break}ht=l.return}return wt=ib,ib=!1,wt}function If(a,l,d){var h=l.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var E=h=h.next;do{if((E.tag&a)===a){var T=E.destroy;E.destroy=void 0,T!==void 0&&qp(l,d,T)}E=E.next}while(E!==h)}}function zf(a,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var d=l=l.next;do{if((d.tag&a)===a){var h=d.create;d.destroy=h()}d=d.next}while(d!==l)}}function Cm(a){var l=a.ref;if(l!==null){var d=a.stateNode;switch(a.tag){case 5:a=d;break;default:a=d}typeof l=="function"?l(a):l.current=a}}function Kp(a){var l=a.alternate;l!==null&&(a.alternate=null,Kp(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&(delete l[Qo],delete l[vf],delete l[hf],delete l[ic],delete l[i1])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function jf(a){return a.tag===5||a.tag===3||a.tag===4}function Ll(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||jf(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function il(a,l,d){var h=a.tag;if(h===5||h===6)a=a.stateNode,l?d.nodeType===8?d.parentNode.insertBefore(a,l):d.insertBefore(a,l):(d.nodeType===8?(l=d.parentNode,l.insertBefore(a,d)):(l=d,l.appendChild(a)),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=uu));else if(h!==4&&(a=a.child,a!==null))for(il(a,l,d),a=a.sibling;a!==null;)il(a,l,d),a=a.sibling}function al(a,l,d){var h=a.tag;if(h===5||h===6)a=a.stateNode,l?d.insertBefore(a,l):d.appendChild(a);else if(h!==4&&(a=a.child,a!==null))for(al(a,l,d),a=a.sibling;a!==null;)al(a,l,d),a=a.sibling}var Yr=null,ca=!1;function fa(a,l,d){for(d=d.child;d!==null;)ob(a,l,d),d=d.sibling}function ob(a,l,d){if(Er&&typeof Er.onCommitFiberUnmount=="function")try{Er.onCommitFiberUnmount(Pi,d)}catch{}switch(d.tag){case 5:Ji||fc(d,l);case 6:var h=Yr,E=ca;Yr=null,fa(a,l,d),Yr=h,ca=E,Yr!==null&&(ca?(a=Yr,d=d.stateNode,a.nodeType===8?a.parentNode.removeChild(d):a.removeChild(d)):Yr.removeChild(d.stateNode));break;case 18:Yr!==null&&(ca?(a=Yr,d=d.stateNode,a.nodeType===8?rc(a.parentNode,d):a.nodeType===1&&rc(a,d),Xi(a)):rc(Yr,d.stateNode));break;case 4:h=Yr,E=ca,Yr=d.stateNode.containerInfo,ca=!0,fa(a,l,d),Yr=h,ca=E;break;case 0:case 11:case 14:case 15:if(!Ji&&(h=d.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){E=h=h.next;do{var T=E,F=T.destroy;T=T.tag,F!==void 0&&(T&2||T&4)&&qp(d,l,F),E=E.next}while(E!==h)}fa(a,l,d);break;case 1:if(!Ji&&(fc(d,l),h=d.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=d.memoizedProps,h.state=d.memoizedState,h.componentWillUnmount()}catch(Q){Pr(d,l,Q)}fa(a,l,d);break;case 21:fa(a,l,d);break;case 22:d.mode&1?(Ji=(h=Ji)||d.memoizedState!==null,fa(a,l,d),Ji=h):fa(a,l,d);break;default:fa(a,l,d)}}function lb(a){var l=a.updateQueue;if(l!==null){a.updateQueue=null;var d=a.stateNode;d===null&&(d=a.stateNode=new o1),l.forEach(function(h){var E=mb.bind(null,a,h);d.has(h)||(d.add(h),h.then(E,E))})}}function Fo(a,l){var d=l.deletions;if(d!==null)for(var h=0;h<d.length;h++){var E=d[h];try{var T=a,F=l,Q=F;e:for(;Q!==null;){switch(Q.tag){case 5:Yr=Q.stateNode,ca=!1;break e;case 3:Yr=Q.stateNode.containerInfo,ca=!0;break e;case 4:Yr=Q.stateNode.containerInfo,ca=!0;break e}Q=Q.return}if(Yr===null)throw Error(i(160));ob(T,F,E),Yr=null,ca=!1;var ae=E.alternate;ae!==null&&(ae.return=null),E.return=null}catch(_e){Pr(E,l,_e)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)wm(l,a),l=l.sibling}function wm(a,l){var d=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Fo(l,a),Ma(a),h&4){try{If(3,a,a.return),zf(3,a)}catch(kt){Pr(a,a.return,kt)}try{If(5,a,a.return)}catch(kt){Pr(a,a.return,kt)}}break;case 1:Fo(l,a),Ma(a),h&512&&d!==null&&fc(d,d.return);break;case 5:if(Fo(l,a),Ma(a),h&512&&d!==null&&fc(d,d.return),a.flags&32){var E=a.stateNode;try{A(E,"")}catch(kt){Pr(a,a.return,kt)}}if(h&4&&(E=a.stateNode,E!=null)){var T=a.memoizedProps,F=d!==null?d.memoizedProps:T,Q=a.type,ae=a.updateQueue;if(a.updateQueue=null,ae!==null)try{Q==="input"&&T.type==="radio"&&T.name!=null&&st(E,T),Xe(Q,F);var _e=Xe(Q,T);for(F=0;F<ae.length;F+=2){var Ve=ae[F],Ke=ae[F+1];Ve==="style"?ee(E,Ke):Ve==="dangerouslySetInnerHTML"?Jn(E,Ke):Ve==="children"?A(E,Ke):z(E,Ve,Ke,_e)}switch(Q){case"input":sn(E,T);break;case"textarea":an(E,T);break;case"select":var Be=E._wrapperState.wasMultiple;E._wrapperState.wasMultiple=!!T.multiple;var dt=T.value;dt!=null?bt(E,!!T.multiple,dt,!1):Be!==!!T.multiple&&(T.defaultValue!=null?bt(E,!!T.multiple,T.defaultValue,!0):bt(E,!!T.multiple,T.multiple?[]:"",!1))}E[vf]=T}catch(kt){Pr(a,a.return,kt)}}break;case 6:if(Fo(l,a),Ma(a),h&4){if(a.stateNode===null)throw Error(i(162));E=a.stateNode,T=a.memoizedProps;try{E.nodeValue=T}catch(kt){Pr(a,a.return,kt)}}break;case 3:if(Fo(l,a),Ma(a),h&4&&d!==null&&d.memoizedState.isDehydrated)try{Xi(l.containerInfo)}catch(kt){Pr(a,a.return,kt)}break;case 4:Fo(l,a),Ma(a);break;case 13:Fo(l,a),Ma(a),E=a.child,E.flags&8192&&(T=E.memoizedState!==null,E.stateNode.isHidden=T,!T||E.alternate!==null&&E.alternate.memoizedState!==null||(Tm=Vt())),h&4&&lb(a);break;case 22:if(Ve=d!==null&&d.memoizedState!==null,a.mode&1?(Ji=(_e=Ji)||Ve,Fo(l,a),Ji=_e):Fo(l,a),Ma(a),h&8192){if(_e=a.memoizedState!==null,(a.stateNode.isHidden=_e)&&!Ve&&a.mode&1)for(ht=a,Ve=a.child;Ve!==null;){for(Ke=ht=Ve;ht!==null;){switch(Be=ht,dt=Be.child,Be.tag){case 0:case 11:case 14:case 15:If(4,Be,Be.return);break;case 1:fc(Be,Be.return);var wt=Be.stateNode;if(typeof wt.componentWillUnmount=="function"){h=Be,d=Be.return;try{l=h,wt.props=l.memoizedProps,wt.state=l.memoizedState,wt.componentWillUnmount()}catch(kt){Pr(h,d,kt)}}break;case 5:fc(Be,Be.return);break;case 22:if(Be.memoizedState!==null){Uf(Ke);continue}}dt!==null?(dt.return=Be,ht=dt):Uf(Ke)}Ve=Ve.sibling}e:for(Ve=null,Ke=a;;){if(Ke.tag===5){if(Ve===null){Ve=Ke;try{E=Ke.stateNode,_e?(T=E.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none"):(Q=Ke.stateNode,ae=Ke.memoizedProps.style,F=ae!=null&&ae.hasOwnProperty("display")?ae.display:null,Q.style.display=U("display",F))}catch(kt){Pr(a,a.return,kt)}}}else if(Ke.tag===6){if(Ve===null)try{Ke.stateNode.nodeValue=_e?"":Ke.memoizedProps}catch(kt){Pr(a,a.return,kt)}}else if((Ke.tag!==22&&Ke.tag!==23||Ke.memoizedState===null||Ke===a)&&Ke.child!==null){Ke.child.return=Ke,Ke=Ke.child;continue}if(Ke===a)break e;for(;Ke.sibling===null;){if(Ke.return===null||Ke.return===a)break e;Ve===Ke&&(Ve=null),Ke=Ke.return}Ve===Ke&&(Ve=null),Ke.sibling.return=Ke.return,Ke=Ke.sibling}}break;case 19:Fo(l,a),Ma(a),h&4&&lb(a);break;case 21:break;default:Fo(l,a),Ma(a)}}function Ma(a){var l=a.flags;if(l&2){try{e:{for(var d=a.return;d!==null;){if(jf(d)){var h=d;break e}d=d.return}throw Error(i(160))}switch(h.tag){case 5:var E=h.stateNode;h.flags&32&&(A(E,""),h.flags&=-33);var T=Ll(a);al(a,T,E);break;case 3:case 4:var F=h.stateNode.containerInfo,Q=Ll(a);il(a,Q,F);break;default:throw Error(i(161))}}catch(ae){Pr(a,a.return,ae)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function l1(a,l,d){ht=a,xm(a)}function xm(a,l,d){for(var h=(a.mode&1)!==0;ht!==null;){var E=ht,T=E.child;if(E.tag===22&&h){var F=E.memoizedState!==null||Ff;if(!F){var Q=E.alternate,ae=Q!==null&&Q.memoizedState!==null||Ji;Q=Ff;var _e=Ji;if(Ff=F,(Ji=ae)&&!_e)for(ht=E;ht!==null;)F=ht,ae=F.child,F.tag===22&&F.memoizedState!==null?Rm(E):ae!==null?(ae.return=F,ht=ae):Rm(E);for(;T!==null;)ht=T,xm(T),T=T.sibling;ht=E,Ff=Q,Ji=_e}ub(a)}else E.subtreeFlags&8772&&T!==null?(T.return=E,ht=T):ub(a)}}function ub(a){for(;ht!==null;){var l=ht;if(l.flags&8772){var d=l.alternate;try{if(l.flags&8772)switch(l.tag){case 0:case 11:case 15:Ji||zf(5,l);break;case 1:var h=l.stateNode;if(l.flags&4&&!Ji)if(d===null)h.componentDidMount();else{var E=l.elementType===l.type?d.memoizedProps:Lo(l.type,d.memoizedProps);h.componentDidUpdate(E,d.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var T=l.updateQueue;T!==null&&sm(l,T,h);break;case 3:var F=l.updateQueue;if(F!==null){if(d=null,l.child!==null)switch(l.child.tag){case 5:d=l.child.stateNode;break;case 1:d=l.child.stateNode}sm(l,F,d)}break;case 5:var Q=l.stateNode;if(d===null&&l.flags&4){d=Q;var ae=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":ae.autoFocus&&d.focus();break;case"img":ae.src&&(d.src=ae.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(l.memoizedState===null){var _e=l.alternate;if(_e!==null){var Ve=_e.memoizedState;if(Ve!==null){var Ke=Ve.dehydrated;Ke!==null&&Xi(Ke)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Ji||l.flags&512&&Cm(l)}catch(Be){Pr(l,l.return,Be)}}if(l===a){ht=null;break}if(d=l.sibling,d!==null){d.return=l.return,ht=d;break}ht=l.return}}function Uf(a){for(;ht!==null;){var l=ht;if(l===a){ht=null;break}var d=l.sibling;if(d!==null){d.return=l.return,ht=d;break}ht=l.return}}function Rm(a){for(;ht!==null;){var l=ht;try{switch(l.tag){case 0:case 11:case 15:var d=l.return;try{zf(4,l)}catch(ae){Pr(l,d,ae)}break;case 1:var h=l.stateNode;if(typeof h.componentDidMount=="function"){var E=l.return;try{h.componentDidMount()}catch(ae){Pr(l,E,ae)}}var T=l.return;try{Cm(l)}catch(ae){Pr(l,T,ae)}break;case 5:var F=l.return;try{Cm(l)}catch(ae){Pr(l,F,ae)}}}catch(ae){Pr(l,l.return,ae)}if(l===a){ht=null;break}var Q=l.sibling;if(Q!==null){Q.return=l.return,ht=Q;break}ht=l.return}}var u1=Math.ceil,bu=V.ReactCurrentDispatcher,gs=V.ReactCurrentOwner,zi=V.ReactCurrentBatchConfig,Ln=0,mi=null,ai=null,ji=0,Ga=0,dc=Ao(0),Gr=0,Bf=null,ol=0,pc=0,Yp=0,Vf=null,Pa=null,Tm=0,vc=1/0,Xa=null,hc=!1,ys=null,Su=null,Gp=!1,Fl=null,Hf=0,Eu=0,mc=null,Wf=-1,Zi=0;function oi(){return Ln&6?Vt():Wf!==-1?Wf:Wf=Vt()}function ll(a){return a.mode&1?Ln&2&&ji!==0?ji&-ji:a1.transition!==null?(Zi===0&&(Zi=bn()),Zi):(a=vn,a!==0||(a=window.event,a=a===void 0?16:Gs(a.type)),a):1}function da(a,l,d,h){if(50<Eu)throw Eu=0,mc=null,Error(i(185));dr(a,d,h),(!(Ln&2)||a!==mi)&&(a===mi&&(!(Ln&2)&&(pc|=d),Gr===4&&Io(a,ji)),Aa(a,h),d===1&&Ln===0&&!(l.mode&1)&&(vc=Vt()+500,oc&&Zo()))}function Aa(a,l){var d=a.callbackNode;la(a,l);var h=wi(a,a===mi?ji:0);if(h===0)d!==null&&Rn(d),a.callbackNode=null,a.callbackPriority=0;else if(l=h&-h,a.callbackPriority!==l){if(d!=null&&Rn(d),l===1)a.tag===0?cu(Om.bind(null,a)):hp(Om.bind(null,a)),nc(function(){!(Ln&6)&&Zo()}),d=null;else{switch(lo(h)){case 1:d=Mi;break;case 4:d=aa;break;case 16:d=Si;break;case 536870912:d=Ba;break;default:d=Si}d=yb(d,Xp.bind(null,a))}a.callbackPriority=l,a.callbackNode=d}}function Xp(a,l){if(Wf=-1,Zi=0,Ln&6)throw Error(i(327));var d=a.callbackNode;if(gc()&&a.callbackNode!==d)return null;var h=wi(a,a===mi?ji:0);if(h===0)return null;if(h&30||h&a.expiredLanes||l)l=Qp(a,h);else{l=h;var E=Ln;Ln|=2;var T=cb();(mi!==a||ji!==l)&&(Xa=null,vc=Vt()+500,Il(a,l));do try{fb();break}catch(Q){sb(a,Q)}while(!0);rm(),bu.current=T,Ln=E,ai!==null?l=0:(mi=null,ji=0,l=Gr)}if(l!==0){if(l===2&&(E=Pn(a),E!==0&&(h=E,l=qf(a,E))),l===1)throw d=Bf,Il(a,0),Io(a,h),Aa(a,Vt()),d;if(l===6)Io(a,h);else{if(E=a.current.alternate,!(h&30)&&!s1(E)&&(l=Qp(a,h),l===2&&(T=Pn(a),T!==0&&(h=T,l=qf(a,T))),l===1))throw d=Bf,Il(a,0),Io(a,h),Aa(a,Vt()),d;switch(a.finishedWork=E,a.finishedLanes=h,l){case 0:case 1:throw Error(i(345));case 2:Es(a,Pa,Xa);break;case 3:if(Io(a,h),(h&130023424)===h&&(l=Tm+500-Vt(),10<l)){if(wi(a,0)!==0)break;if(E=a.suspendedLanes,(E&h)!==h){oi(),a.pingedLanes|=a.suspendedLanes&E;break}a.timeoutHandle=dp(Es.bind(null,a,Pa,Xa),l);break}Es(a,Pa,Xa);break;case 4:if(Io(a,h),(h&4194240)===h)break;for(l=a.eventTimes,E=-1;0<h;){var F=31-Tr(h);T=1<<F,F=l[F],F>E&&(E=F),h&=~T}if(h=E,h=Vt()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*u1(h/1960))-h,10<h){a.timeoutHandle=dp(Es.bind(null,a,Pa,Xa),h);break}Es(a,Pa,Xa);break;case 5:Es(a,Pa,Xa);break;default:throw Error(i(329))}}}return Aa(a,Vt()),a.callbackNode===d?Xp.bind(null,a):null}function qf(a,l){var d=Vf;return a.current.memoizedState.isDehydrated&&(Il(a,l).flags|=256),a=Qp(a,l),a!==2&&(l=Pa,Pa=d,l!==null&&bs(l)),a}function bs(a){Pa===null?Pa=a:Pa.push.apply(Pa,a)}function s1(a){for(var l=a;;){if(l.flags&16384){var d=l.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var h=0;h<d.length;h++){var E=d[h],T=E.getSnapshot;E=E.value;try{if(!Mo(T(),E))return!1}catch{return!1}}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Io(a,l){for(l&=~Yp,l&=~pc,a.suspendedLanes|=l,a.pingedLanes&=~l,a=a.expirationTimes;0<l;){var d=31-Tr(l),h=1<<d;a[d]=-1,l&=~h}}function Om(a){if(Ln&6)throw Error(i(327));gc();var l=wi(a,0);if(!(l&1))return Aa(a,Vt()),null;var d=Qp(a,l);if(a.tag!==0&&d===2){var h=Pn(a);h!==0&&(l=h,d=qf(a,h))}if(d===1)throw d=Bf,Il(a,0),Io(a,l),Aa(a,Vt()),d;if(d===6)throw Error(i(345));return a.finishedWork=a.current.alternate,a.finishedLanes=l,Es(a,Pa,Xa),Aa(a,Vt()),null}function _m(a,l){var d=Ln;Ln|=1;try{return a(l)}finally{Ln=d,Ln===0&&(vc=Vt()+500,oc&&Zo())}}function Ss(a){Fl!==null&&Fl.tag===0&&!(Ln&6)&&gc();var l=Ln;Ln|=1;var d=zi.transition,h=vn;try{if(zi.transition=null,vn=1,a)return a()}finally{vn=h,zi.transition=d,Ln=l,!(Ln&6)&&Zo()}}function km(){Ga=dc.current,xr(dc)}function Il(a,l){a.finishedWork=null,a.finishedLanes=0;var d=a.timeoutHandle;if(d!==-1&&(a.timeoutHandle=-1,Jh(d)),ai!==null)for(d=ai.return;d!==null;){var h=d;switch(gp(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&ac();break;case 3:us(),xr(vi),xr(Br),zt();break;case 5:Ep(h);break;case 4:us();break;case 13:xr(zr);break;case 19:xr(zr);break;case 10:im(h.type._context);break;case 22:case 23:km()}d=d.return}if(mi=a,ai=a=Cu(a.current,null),ji=Ga=l,Gr=0,Bf=null,Yp=pc=ol=0,Pa=Vf=null,os!==null){for(l=0;l<os.length;l++)if(d=os[l],h=d.interleaved,h!==null){d.interleaved=null;var E=h.next,T=d.pending;if(T!==null){var F=T.next;T.next=E,h.next=F}d.pending=h}os=null}return a}function sb(a,l){do{var d=ai;try{if(rm(),yn.current=vs,wp){for(var h=Kn.memoizedState;h!==null;){var E=h.queue;E!==null&&(E.pending=null),h=h.next}wp=!1}if(hr=0,Ri=ni=Kn=null,wf=!1,ss=0,gs.current=null,d===null||d.return===null){Gr=1,Bf=l,ai=null;break}e:{var T=a,F=d.return,Q=d,ae=l;if(l=ji,Q.flags|=32768,ae!==null&&typeof ae=="object"&&typeof ae.then=="function"){var _e=ae,Ve=Q,Ke=Ve.tag;if(!(Ve.mode&1)&&(Ke===0||Ke===11||Ke===15)){var Be=Ve.alternate;Be?(Ve.updateQueue=Be.updateQueue,Ve.memoizedState=Be.memoizedState,Ve.lanes=Be.lanes):(Ve.updateQueue=null,Ve.memoizedState=null)}var dt=X0(F);if(dt!==null){dt.flags&=-257,yu(dt,F,Q,T,l),dt.mode&1&&gm(T,_e,l),l=dt,ae=_e;var wt=l.updateQueue;if(wt===null){var kt=new Set;kt.add(ae),l.updateQueue=kt}else wt.add(ae);break e}else{if(!(l&1)){gm(T,_e,l),Nm();break e}ae=Error(i(426))}}else if(Mr&&Q.mode&1){var Xr=X0(F);if(Xr!==null){!(Xr.flags&65536)&&(Xr.flags|=256),yu(Xr,F,Q,T,l),Pl(hs(ae,Q));break e}}T=ae=hs(ae,Q),Gr!==4&&(Gr=2),Vf===null?Vf=[T]:Vf.push(T),T=F;do{switch(T.tag){case 3:T.flags|=65536,l&=-l,T.lanes|=l;var be=G0(T,ae,l);H0(T,be);break e;case 1:Q=ae;var ce=T.type,xe=T.stateNode;if(!(T.flags&128)&&(typeof ce.getDerivedStateFromError=="function"||xe!==null&&typeof xe.componentDidCatch=="function"&&(Su===null||!Su.has(xe)))){T.flags|=65536,l&=-l,T.lanes|=l;var He=mm(T,Q,l);H0(T,He);break e}}T=T.return}while(T!==null)}pb(d)}catch(xt){l=xt,ai===d&&d!==null&&(ai=d=d.return);continue}break}while(!0)}function cb(){var a=bu.current;return bu.current=vs,a===null?vs:a}function Nm(){(Gr===0||Gr===3||Gr===2)&&(Gr=4),mi===null||!(ol&268435455)&&!(pc&268435455)||Io(mi,ji)}function Qp(a,l){var d=Ln;Ln|=2;var h=cb();(mi!==a||ji!==l)&&(Xa=null,Il(a,l));do try{c1();break}catch(E){sb(a,E)}while(!0);if(rm(),Ln=d,bu.current=h,ai!==null)throw Error(i(261));return mi=null,ji=0,Gr}function c1(){for(;ai!==null;)db(ai)}function fb(){for(;ai!==null&&!fi();)db(ai)}function db(a){var l=gb(a.alternate,a,Ga);a.memoizedProps=a.pendingProps,l===null?pb(a):ai=l,gs.current=null}function pb(a){var l=a;do{var d=l.alternate;if(a=l.return,l.flags&32768){if(d=Wp(d,l),d!==null){d.flags&=32767,ai=d;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Gr=6,ai=null;return}}else if(d=rb(d,l,Ga),d!==null){ai=d;return}if(l=l.sibling,l!==null){ai=l;return}ai=l=a}while(l!==null);Gr===0&&(Gr=5)}function Es(a,l,d){var h=vn,E=zi.transition;try{zi.transition=null,vn=1,f1(a,l,d,h)}finally{zi.transition=E,vn=h}return null}function f1(a,l,d,h){do gc();while(Fl!==null);if(Ln&6)throw Error(i(327));d=a.finishedWork;var E=a.finishedLanes;if(d===null)return null;if(a.finishedWork=null,a.finishedLanes=0,d===a.current)throw Error(i(177));a.callbackNode=null,a.callbackPriority=0;var T=d.lanes|d.childLanes;if(Vr(a,T),a===mi&&(ai=mi=null,ji=0),!(d.subtreeFlags&2064)&&!(d.flags&2064)||Gp||(Gp=!0,yb(Si,function(){return gc(),null})),T=(d.flags&15990)!==0,d.subtreeFlags&15990||T){T=zi.transition,zi.transition=null;var F=vn;vn=1;var Q=Ln;Ln|=4,gs.current=null,ab(a,d),wm(d,a),Js(ts),co=!!pf,ts=pf=null,a.current=d,l1(d),Di(),Ln=Q,vn=F,zi.transition=T}else a.current=d;if(Gp&&(Gp=!1,Fl=a,Hf=E),T=a.pendingLanes,T===0&&(Su=null),Va(d.stateNode),Aa(a,Vt()),l!==null)for(h=a.onRecoverableError,d=0;d<l.length;d++)E=l[d],h(E.value,{componentStack:E.stack,digest:E.digest});if(hc)throw hc=!1,a=ys,ys=null,a;return Hf&1&&a.tag!==0&&gc(),T=a.pendingLanes,T&1?a===mc?Eu++:(Eu=0,mc=a):Eu=0,Zo(),null}function gc(){if(Fl!==null){var a=lo(Hf),l=zi.transition,d=vn;try{if(zi.transition=null,vn=16>a?16:a,Fl===null)var h=!1;else{if(a=Fl,Fl=null,Hf=0,Ln&6)throw Error(i(331));var E=Ln;for(Ln|=4,ht=a.current;ht!==null;){var T=ht,F=T.child;if(ht.flags&16){var Q=T.deletions;if(Q!==null){for(var ae=0;ae<Q.length;ae++){var _e=Q[ae];for(ht=_e;ht!==null;){var Ve=ht;switch(Ve.tag){case 0:case 11:case 15:If(8,Ve,T)}var Ke=Ve.child;if(Ke!==null)Ke.return=Ve,ht=Ke;else for(;ht!==null;){Ve=ht;var Be=Ve.sibling,dt=Ve.return;if(Kp(Ve),Ve===_e){ht=null;break}if(Be!==null){Be.return=dt,ht=Be;break}ht=dt}}}var wt=T.alternate;if(wt!==null){var kt=wt.child;if(kt!==null){wt.child=null;do{var Xr=kt.sibling;kt.sibling=null,kt=Xr}while(kt!==null)}}ht=T}}if(T.subtreeFlags&2064&&F!==null)F.return=T,ht=F;else e:for(;ht!==null;){if(T=ht,T.flags&2048)switch(T.tag){case 0:case 11:case 15:If(9,T,T.return)}var be=T.sibling;if(be!==null){be.return=T.return,ht=be;break e}ht=T.return}}var ce=a.current;for(ht=ce;ht!==null;){F=ht;var xe=F.child;if(F.subtreeFlags&2064&&xe!==null)xe.return=F,ht=xe;else e:for(F=ce;ht!==null;){if(Q=ht,Q.flags&2048)try{switch(Q.tag){case 0:case 11:case 15:zf(9,Q)}}catch(xt){Pr(Q,Q.return,xt)}if(Q===F){ht=null;break e}var He=Q.sibling;if(He!==null){He.return=Q.return,ht=He;break e}ht=Q.return}}if(Ln=E,Zo(),Er&&typeof Er.onPostCommitFiberRoot=="function")try{Er.onPostCommitFiberRoot(Pi,a)}catch{}h=!0}return h}finally{vn=d,zi.transition=l}}return!1}function vb(a,l,d){l=hs(d,l),l=G0(a,l,1),a=hu(a,l,1),l=oi(),a!==null&&(dr(a,1,l),Aa(a,l))}function Pr(a,l,d){if(a.tag===3)vb(a,a,d);else for(;l!==null;){if(l.tag===3){vb(l,a,d);break}else if(l.tag===1){var h=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Su===null||!Su.has(h))){a=hs(d,a),a=mm(l,a,1),l=hu(l,a,1),a=oi(),l!==null&&(dr(l,1,a),Aa(l,a));break}}l=l.return}}function d1(a,l,d){var h=a.pingCache;h!==null&&h.delete(l),l=oi(),a.pingedLanes|=a.suspendedLanes&d,mi===a&&(ji&d)===d&&(Gr===4||Gr===3&&(ji&130023424)===ji&&500>Vt()-Tm?Il(a,0):Yp|=d),Aa(a,l)}function hb(a,l){l===0&&(a.mode&1?(l=Cr,Cr<<=1,!(Cr&130023424)&&(Cr=4194304)):l=1);var d=oi();a=qa(a,l),a!==null&&(dr(a,l,d),Aa(a,d))}function p1(a){var l=a.memoizedState,d=0;l!==null&&(d=l.retryLane),hb(a,d)}function mb(a,l){var d=0;switch(a.tag){case 13:var h=a.stateNode,E=a.memoizedState;E!==null&&(d=E.retryLane);break;case 19:h=a.stateNode;break;default:throw Error(i(314))}h!==null&&h.delete(l),hb(a,d)}var gb;gb=function(a,l,d){if(a!==null)if(a.memoizedProps!==l.pendingProps||vi.current)ri=!0;else{if(!(a.lanes&d)&&!(l.flags&128))return ri=!1,$f(a,l,d);ri=!!(a.flags&131072)}else ri=!1,Mr&&l.flags&1048576&&j0(l,Ml,l.index);switch(l.lanes=0,l.tag){case 2:var h=l.type;yo(a,l),a=l.pendingProps;var E=vo(l,Br.current);Ir(l,d),E=mu(null,l,h,a,E,d);var T=$o();return l.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,ei(h)?(T=!0,Oa(l)):T=!1,l.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,um(l),E.updater=jp,l.stateNode=E,E._reactInternals=l,Nf(l,h,a,d),l=Pf(null,l,h,!0,T,d)):(l.tag=0,Mr&&T&&mp(l),Ii(null,l,E,d),l=l.child),l;case 16:h=l.elementType;e:{switch(yo(a,l),a=l.pendingProps,E=h._init,h=E(h._payload),l.type=h,E=l.tag=h1(h),a=Lo(h,a),E){case 0:l=Q0(null,l,h,a,d);break e;case 1:l=J0(null,l,h,a,d);break e;case 11:l=Da(null,l,h,a,d);break e;case 14:l=ms(null,l,h,Lo(h.type,a),d);break e}throw Error(i(306,h,""))}return l;case 0:return h=l.type,E=l.pendingProps,E=l.elementType===h?E:Lo(h,E),Q0(a,l,h,E,d);case 1:return h=l.type,E=l.pendingProps,E=l.elementType===h?E:Lo(h,E),J0(a,l,h,E,d);case 3:e:{if(cc(l),a===null)throw Error(i(387));h=l.pendingProps,T=l.memoizedState,E=T.element,V0(a,l),yf(l,h,null,d);var F=l.memoizedState;if(h=F.element,T.isDehydrated)if(T={element:h,isDehydrated:!1,cache:F.cache,pendingSuspenseBoundaries:F.pendingSuspenseBoundaries,transitions:F.transitions},l.updateQueue.baseState=T,l.memoizedState=T,l.flags&256){E=hs(Error(i(423)),l),l=Z0(a,l,h,d,E);break e}else if(h!==E){E=hs(Error(i(424)),l),l=Z0(a,l,h,d,E);break e}else for(ka=Xo(l.stateNode.containerInfo.firstChild),_a=l,Mr=!0,mo=null,d=lt(l,null,h,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(vu(),h===E){l=bo(a,l,d);break e}Ii(a,l,h,d)}l=l.child}return l;case 5:return W0(l),a===null&&tm(l),h=l.type,E=l.pendingProps,T=a!==null?a.memoizedProps:null,F=E.children,fp(h,E)?F=null:T!==null&&fp(h,T)&&(l.flags|=32),ym(a,l),Ii(a,l,F,d),l.child;case 6:return a===null&&tm(l),null;case 13:return Hp(a,l,d);case 4:return cm(l,l.stateNode.containerInfo),h=l.pendingProps,a===null?l.child=qr(l,null,h,d):Ii(a,l,h,d),l.child;case 11:return h=l.type,E=l.pendingProps,E=l.elementType===h?E:Lo(h,E),Da(a,l,h,E,d);case 7:return Ii(a,l,l.pendingProps,d),l.child;case 8:return Ii(a,l,l.pendingProps.children,d),l.child;case 12:return Ii(a,l,l.pendingProps.children,d),l.child;case 10:e:{if(h=l.type._context,E=l.pendingProps,T=l.memoizedProps,F=E.value,$t(Wa,h._currentValue),h._currentValue=F,T!==null)if(Mo(T.value,F)){if(T.children===E.children&&!vi.current){l=bo(a,l,d);break e}}else for(T=l.child,T!==null&&(T.return=l);T!==null;){var Q=T.dependencies;if(Q!==null){F=T.child;for(var ae=Q.firstContext;ae!==null;){if(ae.context===h){if(T.tag===1){ae=Al(-1,d&-d),ae.tag=2;var _e=T.updateQueue;if(_e!==null){_e=_e.shared;var Ve=_e.pending;Ve===null?ae.next=ae:(ae.next=Ve.next,Ve.next=ae),_e.pending=ae}}T.lanes|=d,ae=T.alternate,ae!==null&&(ae.lanes|=d),am(T.return,d,l),Q.lanes|=d;break}ae=ae.next}}else if(T.tag===10)F=T.type===l.type?null:T.child;else if(T.tag===18){if(F=T.return,F===null)throw Error(i(341));F.lanes|=d,Q=F.alternate,Q!==null&&(Q.lanes|=d),am(F,d,l),F=T.sibling}else F=T.child;if(F!==null)F.return=T;else for(F=T;F!==null;){if(F===l){F=null;break}if(T=F.sibling,T!==null){T.return=F.return,F=T;break}F=F.return}T=F}Ii(a,l,E.children,d),l=l.child}return l;case 9:return E=l.type,h=l.pendingProps.children,Ir(l,d),E=go(E),h=h(E),l.flags|=1,Ii(a,l,h,d),l.child;case 14:return h=l.type,E=Lo(h,l.pendingProps),E=Lo(h.type,E),ms(a,l,h,E,d);case 15:return fn(a,l,l.type,l.pendingProps,d);case 17:return h=l.type,E=l.pendingProps,E=l.elementType===h?E:Lo(h,E),yo(a,l),l.tag=1,ei(h)?(a=!0,Oa(l)):a=!1,Ir(l,d),Up(l,h,E),Nf(l,h,E,d),Pf(null,l,h,!0,a,d);case 19:return rl(a,l,d);case 22:return Mf(a,l,d)}throw Error(i(156,l.tag))};function yb(a,l){return Vn(a,l)}function v1(a,l,d,h){this.tag=a,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Eo(a,l,d,h){return new v1(a,l,d,h)}function Dm(a){return a=a.prototype,!(!a||!a.isReactComponent)}function h1(a){if(typeof a=="function")return Dm(a)?1:0;if(a!=null){if(a=a.$$typeof,a===oe)return 11;if(a===de)return 14}return 2}function Cu(a,l){var d=a.alternate;return d===null?(d=Eo(a.tag,l,a.key,a.mode),d.elementType=a.elementType,d.type=a.type,d.stateNode=a.stateNode,d.alternate=a,a.alternate=d):(d.pendingProps=l,d.type=a.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=a.flags&14680064,d.childLanes=a.childLanes,d.lanes=a.lanes,d.child=a.child,d.memoizedProps=a.memoizedProps,d.memoizedState=a.memoizedState,d.updateQueue=a.updateQueue,l=a.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=a.sibling,d.index=a.index,d.ref=a.ref,d}function Kf(a,l,d,h,E,T){var F=2;if(h=a,typeof a=="function")Dm(a)&&(F=1);else if(typeof a=="string")F=5;else e:switch(a){case K:return zl(d.children,E,T,l);case Z:F=8,E|=8;break;case ie:return a=Eo(12,d,l,E|2),a.elementType=ie,a.lanes=T,a;case X:return a=Eo(13,d,l,E),a.elementType=X,a.lanes=T,a;case ne:return a=Eo(19,d,l,E),a.elementType=ne,a.lanes=T,a;case ge:return wu(d,E,T,l);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Y:F=10;break e;case J:F=9;break e;case oe:F=11;break e;case de:F=14;break e;case we:F=16,h=null;break e}throw Error(i(130,a==null?a:typeof a,""))}return l=Eo(F,d,l,E),l.elementType=a,l.type=h,l.lanes=T,l}function zl(a,l,d,h){return a=Eo(7,a,h,l),a.lanes=d,a}function wu(a,l,d,h){return a=Eo(22,a,h,l),a.elementType=ge,a.lanes=d,a.stateNode={isHidden:!1},a}function Mm(a,l,d){return a=Eo(6,a,null,l),a.lanes=d,a}function Jp(a,l,d){return l=Eo(4,a.children!==null?a.children:[],a.key,l),l.lanes=d,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}function bb(a,l,d,h,E){this.tag=l,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=An(0),this.expirationTimes=An(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=An(0),this.identifierPrefix=h,this.onRecoverableError=E,this.mutableSourceEagerHydrationData=null}function Zp(a,l,d,h,E,T,F,Q,ae){return a=new bb(a,l,d,Q,ae),l===1?(l=1,T===!0&&(l|=8)):l=0,T=Eo(3,null,null,l),a.current=T,T.stateNode=a,T.memoizedState={element:h,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},um(T),a}function m1(a,l,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:W,key:h==null?null:""+h,children:a,containerInfo:l,implementation:d}}function Pm(a){if(!a)return Ra;a=a._reactInternals;e:{if(Bt(a)!==a||a.tag!==1)throw Error(i(170));var l=a;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(ei(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(i(171))}if(a.tag===1){var d=a.type;if(ei(d))return mf(a,d,l)}return l}function Sb(a,l,d,h,E,T,F,Q,ae){return a=Zp(d,h,!0,a,E,T,F,Q,ae),a.context=Pm(null),d=a.current,h=oi(),E=ll(d),T=Al(h,E),T.callback=l??null,hu(d,T,E),a.current.lanes=E,dr(a,E,h),Aa(a,h),a}function ev(a,l,d,h){var E=l.current,T=oi(),F=ll(E);return d=Pm(d),l.context===null?l.context=d:l.pendingContext=d,l=Al(T,F),l.payload={element:a},h=h===void 0?null:h,h!==null&&(l.callback=h),a=hu(E,l,F),a!==null&&(da(a,E,F,T),Sp(a,E,F)),F}function tv(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Am(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var d=a.retryLane;a.retryLane=d!==0&&d<l?d:l}}function nv(a,l){Am(a,l),(a=a.alternate)&&Am(a,l)}function Eb(){return null}var Cs=typeof reportError=="function"?reportError:function(a){console.error(a)};function $m(a){this._internalRoot=a}rv.prototype.render=$m.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(i(409));ev(a,l,null,null)},rv.prototype.unmount=$m.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;Ss(function(){ev(null,a,null,null)}),l[Nl]=null}};function rv(a){this._internalRoot=a}rv.prototype.unstable_scheduleHydration=function(a){if(a){var l=jt();a={blockedOn:null,target:a,priority:l};for(var d=0;d<Lr.length&&l!==0&&l<Lr[d].priority;d++);Lr.splice(d,0,a),d===0&&Or(a)}};function Lm(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function iv(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function Cb(){}function g1(a,l,d,h,E){if(E){if(typeof h=="function"){var T=h;h=function(){var _e=tv(F);T.call(_e)}}var F=Sb(l,h,a,0,null,!1,!1,"",Cb);return a._reactRootContainer=F,a[Nl]=F.current,ec(a.nodeType===8?a.parentNode:a),Ss(),F}for(;E=a.lastChild;)a.removeChild(E);if(typeof h=="function"){var Q=h;h=function(){var _e=tv(ae);Q.call(_e)}}var ae=Zp(a,0,!1,null,null,!1,!1,"",Cb);return a._reactRootContainer=ae,a[Nl]=ae.current,ec(a.nodeType===8?a.parentNode:a),Ss(function(){ev(l,ae,d,h)}),ae}function Yf(a,l,d,h,E){var T=d._reactRootContainer;if(T){var F=T;if(typeof E=="function"){var Q=E;E=function(){var ae=tv(F);Q.call(ae)}}ev(l,F,a,E)}else F=g1(d,l,a,E,h);return tv(F)}hn=function(a){switch(a.tag){case 3:var l=a.stateNode;if(l.current.memoizedState.isDehydrated){var d=$i(l.pendingLanes);d!==0&&(xi(l,d|1),Aa(l,Vt()),!(Ln&6)&&(vc=Vt()+500,Zo()))}break;case 13:Ss(function(){var h=qa(a,1);if(h!==null){var E=oi();da(h,a,1,E)}}),nv(a,1)}},wa=function(a){if(a.tag===13){var l=qa(a,134217728);if(l!==null){var d=oi();da(l,a,134217728,d)}nv(a,134217728)}},yr=function(a){if(a.tag===13){var l=ll(a),d=qa(a,l);if(d!==null){var h=oi();da(d,a,l,h)}nv(a,l)}},jt=function(){return vn},Hr=function(a,l){var d=vn;try{return vn=a,l()}finally{vn=d}},Ct=function(a,l,d){switch(l){case"input":if(sn(a,d),l=d.name,d.type==="radio"&&l!=null){for(d=a;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<d.length;l++){var h=d[l];if(h!==a&&h.form===a.form){var E=Wr(h);if(!E)throw Error(i(90));Tt(h),sn(h,E)}}}break;case"textarea":an(a,d);break;case"select":l=d.value,l!=null&&bt(a,!!d.multiple,l,!1)}},kn=_m,Ot=Ss;var y1={usingClientEntryPoint:!1,Events:[It,Po,Wr,Mn,kr,_m]},Gf={findFiberByHostInstance:ns,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},wb={bundleType:Gf.bundleType,version:Gf.version,rendererPackageName:Gf.rendererPackageName,rendererConfig:Gf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:V.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=Zn(a),a===null?null:a.stateNode},findFiberByHostInstance:Gf.findFiberByHostInstance||Eb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xu.isDisabled&&xu.supportsFiber)try{Pi=xu.inject(wb),Er=xu}catch{}}return no.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=y1,no.createPortal=function(a,l){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Lm(l))throw Error(i(200));return m1(a,l,null,d)},no.createRoot=function(a,l){if(!Lm(a))throw Error(i(299));var d=!1,h="",E=Cs;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onRecoverableError!==void 0&&(E=l.onRecoverableError)),l=Zp(a,1,!1,null,null,d,!1,h,E),a[Nl]=l.current,ec(a.nodeType===8?a.parentNode:a),new $m(l)},no.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=Zn(l),a=a===null?null:a.stateNode,a},no.flushSync=function(a){return Ss(a)},no.hydrate=function(a,l,d){if(!iv(l))throw Error(i(200));return Yf(null,a,l,!0,d)},no.hydrateRoot=function(a,l,d){if(!Lm(a))throw Error(i(405));var h=d!=null&&d.hydratedSources||null,E=!1,T="",F=Cs;if(d!=null&&(d.unstable_strictMode===!0&&(E=!0),d.identifierPrefix!==void 0&&(T=d.identifierPrefix),d.onRecoverableError!==void 0&&(F=d.onRecoverableError)),l=Sb(l,null,a,1,d??null,E,!1,T,F),a[Nl]=l.current,ec(a),h)for(a=0;a<h.length;a++)d=h[a],E=d._getVersion,E=E(d._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[d,E]:l.mutableSourceEagerHydrationData.push(d,E);return new rv(l)},no.render=function(a,l,d){if(!iv(l))throw Error(i(200));return Yf(null,a,l,!1,d)},no.unmountComponentAtNode=function(a){if(!iv(a))throw Error(i(40));return a._reactRootContainer?(Ss(function(){Yf(null,null,a,!1,function(){a._reactRootContainer=null,a[Nl]=null})}),!0):!1},no.unstable_batchedUpdates=_m,no.unstable_renderSubtreeIntoContainer=function(a,l,d,h){if(!iv(d))throw Error(i(200));if(a==null||a._reactInternals===void 0)throw Error(i(38));return Yf(a,l,d,!1,h)},no.version="18.3.1-next-f1338f8080-20240426",no}var ro={},kT;function f$(){return kT||(kT=1,me.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=Iv(),r=OT(),i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=!1;function u(e){o=e}function p(e){if(!o){for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];g("warn",e,s)}}function f(e){if(!o){for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];g("error",e,s)}}function g(e,n,s){{var c=i.ReactDebugCurrentFrame,v=c.getStackAddendum();v!==""&&(n+="%s",s=s.concat([v]));var m=s.map(function(C){return String(C)});m.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,m)}}var y=0,S=1,b=2,R=3,_=4,P=5,N=6,L=7,D=8,H=9,I=10,z=11,V=12,B=13,W=14,K=15,Z=16,ie=17,Y=18,J=19,oe=21,X=22,ne=23,de=24,we=25,ge=!0,le=!1,Re=!1,pe=!1,G=!1,ue=!0,De=!0,ye=!0,Le=!0,We=new Set,Ue={},qe={};function Qe(e,n){ft(e,n),ft(e+"Capture",n)}function ft(e,n){Ue[e]&&f("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ue[e]=n;{var s=e.toLowerCase();qe[s]=e,e==="onDoubleClick"&&(qe.ondblclick=e)}for(var c=0;c<n.length;c++)We.add(n[c])}var rt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tt=Object.prototype.hasOwnProperty;function _t(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,s=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function $e(e){try{return yt(e),!1}catch{return!0}}function yt(e){return""+e}function st(e,n){if($e(e))return f("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",n,_t(e)),yt(e)}function sn(e){if($e(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_t(e)),yt(e)}function cn(e,n){if($e(e))return f("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",n,_t(e)),yt(e)}function pn(e,n){if($e(e))return f("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",n,_t(e)),yt(e)}function rn(e){if($e(e))return f("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",_t(e)),yt(e)}function bt(e){if($e(e))return f("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",_t(e)),yt(e)}var Ut=0,tt=1,an=2,St=3,Pt=4,Un=5,Cn=6,Jn=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",A=Jn+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=new RegExp("^["+Jn+"]["+A+"]*$"),O={},U={};function ee(e){return Tt.call(U,e)?!0:Tt.call(O,e)?!1:w.test(e)?(U[e]=!0,!0):(O[e]=!0,f("Invalid attribute name: `%s`",e),!1)}function ve(e,n,s){return n!==null?n.type===Ut:s?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Se(e,n,s,c){if(s!==null&&s.type===Ut)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":{if(c)return!1;if(s!==null)return!s.acceptsBooleans;var v=e.toLowerCase().slice(0,5);return v!=="data-"&&v!=="aria-"}default:return!1}}function Xe(e,n,s,c){if(n===null||typeof n>"u"||Se(e,n,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case St:return!n;case Pt:return n===!1;case Un:return isNaN(n);case Cn:return isNaN(n)||n<1}return!1}function mt(e){return Ct.hasOwnProperty(e)?Ct[e]:null}function gt(e,n,s,c,v,m,C){this.acceptsBooleans=n===an||n===St||n===Pt,this.attributeName=c,this.attributeNamespace=v,this.mustUseProperty=s,this.propertyName=e,this.type=n,this.sanitizeURL=m,this.removeEmptyString=C}var Ct={},Dt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Dt.forEach(function(e){Ct[e]=new gt(e,Ut,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0],s=e[1];Ct[n]=new gt(n,tt,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ct[e]=new gt(e,an,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ct[e]=new gt(e,an,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){Ct[e]=new gt(e,St,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ct[e]=new gt(e,St,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ct[e]=new gt(e,Pt,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ct[e]=new gt(e,Cn,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ct[e]=new gt(e,Un,!1,e.toLowerCase(),null,!1,!1)});var or=/[\-\:]([a-z])/g,Bn=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var n=e.replace(or,Bn);Ct[n]=new gt(n,tt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var n=e.replace(or,Bn);Ct[n]=new gt(n,tt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(or,Bn);Ct[n]=new gt(n,tt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ct[e]=new gt(e,tt,!1,e.toLowerCase(),null,!1,!1)});var Mn="xlinkHref";Ct[Mn]=new gt("xlinkHref",tt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ct[e]=new gt(e,tt,!1,e.toLowerCase(),null,!0,!0)});var kr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,kn=!1;function Ot(e){!kn&&kr.test(e)&&(kn=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function et(e,n,s,c){if(c.mustUseProperty){var v=c.propertyName;return e[v]}else{st(s,n),c.sanitizeURL&&Ot(""+s);var m=c.attributeName,C=null;if(c.type===Pt){if(e.hasAttribute(m)){var k=e.getAttribute(m);return k===""?!0:Xe(n,s,c,!1)?k:k===""+s?s:k}}else if(e.hasAttribute(m)){if(Xe(n,s,c,!1))return e.getAttribute(m);if(c.type===St)return s;C=e.getAttribute(m)}return Xe(n,s,c,!1)?C===null?s:C:C===""+s?s:C}}function At(e,n,s,c){{if(!ee(n))return;if(!e.hasAttribute(n))return s===void 0?void 0:null;var v=e.getAttribute(n);return st(s,n),v===""+s?s:v}}function dn(e,n,s,c){var v=mt(n);if(!ve(n,v,c)){if(Xe(n,s,v,c)&&(s=null),c||v===null){if(ee(n)){var m=n;s===null?e.removeAttribute(m):(st(s,n),e.setAttribute(m,""+s))}return}var C=v.mustUseProperty;if(C){var k=v.propertyName;if(s===null){var M=v.type;e[k]=M===St?!1:""}else e[k]=s;return}var j=v.attributeName,q=v.attributeNamespace;if(s===null)e.removeAttribute(j);else{var fe=v.type,se;fe===St||fe===Pt&&s===!0?se="":(st(s,j),se=""+s,v.sanitizeURL&&Ot(se.toString())),q?e.setAttributeNS(q,j,se):e.setAttribute(j,se)}}}var qt=Symbol.for("react.element"),Qt=Symbol.for("react.portal"),Nn=Symbol.for("react.fragment"),lr=Symbol.for("react.strict_mode"),Nr=Symbol.for("react.profiler"),$r=Symbol.for("react.provider"),te=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),Ze=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),Bt=Symbol.for("react.memo"),Nt=Symbol.for("react.lazy"),Et=Symbol.for("react.scope"),Kt=Symbol.for("react.debug_trace_mode"),Zn=Symbol.for("react.offscreen"),Dn=Symbol.for("react.legacy_hidden"),Vn=Symbol.for("react.cache"),Rn=Symbol.for("react.tracing_marker"),fi=Symbol.iterator,Di="@@iterator";function Vt(e){if(e===null||typeof e!="object")return null;var n=fi&&e[fi]||e[Di];return typeof n=="function"?n:null}var en=Object.assign,Mi=0,aa,Si,Jr,Ba,Pi,Er,Va;function Tr(){}Tr.__reactDisabledLog=!0;function Ai(){{if(Mi===0){aa=console.log,Si=console.info,Jr=console.warn,Ba=console.error,Pi=console.group,Er=console.groupCollapsed,Va=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Tr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Mi++}}function Ei(){{if(Mi--,Mi===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:en({},e,{value:aa}),info:en({},e,{value:Si}),warn:en({},e,{value:Jr}),error:en({},e,{value:Ba}),group:en({},e,{value:Pi}),groupCollapsed:en({},e,{value:Er}),groupEnd:en({},e,{value:Va})})}Mi<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oa=i.ReactCurrentDispatcher,Ci;function Cr(e,n,s){{if(Ci===void 0)try{throw Error()}catch(v){var c=v.stack.trim().match(/\n( *(at )?)/);Ci=c&&c[1]||""}return`
|
|
80
|
-
`+Ci+e}}var $i=!1,wi;{var oo=typeof WeakMap=="function"?WeakMap:Map;wi=new oo}function la(e,n){if(!e||$i)return"";{var s=wi.get(e);if(s!==void 0)return s}var c;$i=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=oa.current,oa.current=null,Ai();try{if(n){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(Ne){c=Ne}Reflect.construct(e,[],C)}else{try{C.call()}catch(Ne){c=Ne}e.call(C.prototype)}}else{try{throw Error()}catch(Ne){c=Ne}e()}}catch(Ne){if(Ne&&c&&typeof Ne.stack=="string"){for(var k=Ne.stack.split(`
|
|
81
|
-
`),M=c.stack.split(`
|
|
82
|
-
`),j=k.length-1,q=M.length-1;j>=1&&q>=0&&k[j]!==M[q];)q--;for(;j>=1&&q>=0;j--,q--)if(k[j]!==M[q]){if(j!==1||q!==1)do if(j--,q--,q<0||k[j]!==M[q]){var fe=`
|
|
83
|
-
`+k[j].replace(" at new "," at ");return e.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",e.displayName)),typeof e=="function"&&wi.set(e,fe),fe}while(j>=1&&q>=0);break}}}finally{$i=!1,oa.current=m,Ei(),Error.prepareStackTrace=v}var se=e?e.displayName||e.name:"",Te=se?Cr(se):"";return typeof e=="function"&&wi.set(e,Te),Te}function Pn(e,n,s){return la(e,!0)}function bn(e,n,s){return la(e,!1)}function An(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function dr(e,n,s){if(e==null)return"";if(typeof e=="function")return la(e,An(e));if(typeof e=="string")return Cr(e);switch(e){case Ze:return Cr("Suspense");case nt:return Cr("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case ze:return bn(e.render);case Bt:return dr(e.type,n,s);case Nt:{var c=e,v=c._payload,m=c._init;try{return dr(m(v),n,s)}catch{}}}return""}function Vr(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case P:return Cr(e.type);case Z:return Cr("Lazy");case B:return Cr("Suspense");case J:return Cr("SuspenseList");case y:case b:case K:return bn(e.type);case z:return bn(e.type.render);case S:return Pn(e.type);default:return""}}function xi(e){try{var n="",s=e;do n+=Vr(s),s=s.return;while(s);return n}catch(c){return`
|
|
84
|
-
Error generating stack: `+c.message+`
|
|
85
|
-
`+c.stack}}function vn(e,n,s){var c=e.displayName;if(c)return c;var v=n.displayName||n.name||"";return v!==""?s+"("+v+")":s}function lo(e){return e.displayName||"Context"}function hn(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nn:return"Fragment";case Qt:return"Portal";case Nr:return"Profiler";case lr:return"StrictMode";case Ze:return"Suspense";case nt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case te:var n=e;return lo(n)+".Consumer";case $r:var s=e;return lo(s._context)+".Provider";case ze:return vn(e,e.render,"ForwardRef");case Bt:var c=e.displayName||null;return c!==null?c:hn(e.type)||"Memo";case Nt:{var v=e,m=v._payload,C=v._init;try{return hn(C(m))}catch{return null}}}return null}function wa(e,n,s){var c=n.displayName||n.name||"";return e.displayName||(c!==""?s+"("+c+")":s)}function yr(e){return e.displayName||"Context"}function jt(e){var n=e.tag,s=e.type;switch(n){case de:return"Cache";case H:var c=s;return yr(c)+".Consumer";case I:var v=s;return yr(v._context)+".Provider";case Y:return"DehydratedFragment";case z:return wa(s,s.render,"ForwardRef");case L:return"Fragment";case P:return s;case _:return"Portal";case R:return"Root";case N:return"Text";case Z:return hn(s);case D:return s===lr?"StrictMode":"Mode";case X:return"Offscreen";case V:return"Profiler";case oe:return"Scope";case B:return"Suspense";case J:return"SuspenseList";case we:return"TracingMarker";case S:case y:case ie:case b:case W:case K:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;break}return null}var Hr=i.ReactDebugCurrentFrame,Ur=null,Li=!1;function Dr(){{if(Ur===null)return null;var e=Ur._debugOwner;if(e!==null&&typeof e<"u")return jt(e)}return null}function di(){return Ur===null?"":xi(Ur)}function er(){Hr.getCurrentStack=null,Ur=null,Li=!1}function Hn(e){Hr.getCurrentStack=e===null?null:di,Ur=e,Li=!1}function uo(){return Ur}function Lr(e){Li=e}function pi(e){return""+e}function at(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return bt(e),e;default:return""}}var Ft={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function nr(e,n){Ft[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||f("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||f("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Or(e){var n=e.type,s=e.nodeName;return s&&s.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function tr(e){return e._valueTracker}function so(e){e._valueTracker=null}function Yu(e){var n="";return e&&(Or(e)?n=e.checked?"true":"false":n=e.value),n}function ua(e){var n=Or(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);bt(e[n]);var c=""+e[n];if(!(e.hasOwnProperty(n)||typeof s>"u"||typeof s.get!="function"||typeof s.set!="function")){var v=s.get,m=s.set;Object.defineProperty(e,n,{configurable:!0,get:function(){return v.call(this)},set:function(k){bt(k),c=""+k,m.call(this,k)}}),Object.defineProperty(e,n,{enumerable:s.enumerable});var C={getValue:function(){return c},setValue:function(k){bt(k),c=""+k},stopTracking:function(){so(e),delete e[n]}};return C}}function Xi(e){tr(e)||(e._valueTracker=ua(e))}function Yo(e){if(!e)return!1;var n=tr(e);if(!n)return!0;var s=n.getValue(),c=Yu(e);return c!==s?(n.setValue(c),!0):!1}function co(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var qs=!1,Ks=!1,iu=!1,Gu=!1;function Ys(e){var n=e.type==="checkbox"||e.type==="radio";return n?e.checked!=null:e.value!=null}function Gs(e,n){var s=e,c=n.checked,v=en({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??s._wrapperState.initialChecked});return v}function Do(e,n){nr("input",n),n.checked!==void 0&&n.defaultChecked!==void 0&&!Ks&&(f("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Dr()||"A component",n.type),Ks=!0),n.value!==void 0&&n.defaultValue!==void 0&&!qs&&(f("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Dr()||"A component",n.type),qs=!0);var s=e,c=n.defaultValue==null?"":n.defaultValue;s._wrapperState={initialChecked:n.checked!=null?n.checked:n.defaultChecked,initialValue:at(n.value!=null?n.value:c),controlled:Ys(n)}}function $(e,n){var s=e,c=n.checked;c!=null&&dn(s,"checked",c,!1)}function re(e,n){var s=e;{var c=Ys(n);!s._wrapperState.controlled&&c&&!Gu&&(f("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Gu=!0),s._wrapperState.controlled&&!c&&!iu&&(f("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),iu=!0)}$(e,n);var v=at(n.value),m=n.type;if(v!=null)m==="number"?(v===0&&s.value===""||s.value!=v)&&(s.value=pi(v)):s.value!==pi(v)&&(s.value=pi(v));else if(m==="submit"||m==="reset"){s.removeAttribute("value");return}n.hasOwnProperty("value")?Ht(s,n.type,v):n.hasOwnProperty("defaultValue")&&Ht(s,n.type,at(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(s.defaultChecked=!!n.defaultChecked)}function Oe(e,n,s){var c=e;if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var v=n.type,m=v==="submit"||v==="reset";if(m&&(n.value===void 0||n.value===null))return;var C=pi(c._wrapperState.initialValue);s||C!==c.value&&(c.value=C),c.defaultValue=C}var k=c.name;k!==""&&(c.name=""),c.defaultChecked=!c.defaultChecked,c.defaultChecked=!!c._wrapperState.initialChecked,k!==""&&(c.name=k)}function Me(e,n){var s=e;re(s,n),Je(s,n)}function Je(e,n){var s=n.name;if(n.type==="radio"&&s!=null){for(var c=e;c.parentNode;)c=c.parentNode;st(s,"name");for(var v=c.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),m=0;m<v.length;m++){var C=v[m];if(!(C===e||C.form!==e.form)){var k=Ub(C);if(!k)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Yo(C),re(C,k)}}}}function Ht(e,n,s){(n!=="number"||co(e.ownerDocument)!==e)&&(s==null?e.defaultValue=pi(e._wrapperState.initialValue):e.defaultValue!==pi(s)&&(e.defaultValue=pi(s)))}var ot=!1,Gt=!1,Sn=!1;function jn(e,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?t.Children.forEach(n.children,function(s){s!=null&&(typeof s=="string"||typeof s=="number"||Gt||(Gt=!0,f("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):n.dangerouslySetInnerHTML!=null&&(Sn||(Sn=!0,f("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),n.selected!=null&&!ot&&(f("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ot=!0)}function wr(e,n){n.value!=null&&e.setAttribute("value",pi(at(n.value)))}var pr=Array.isArray;function mn(e){return pr(e)}var vr;vr=!1;function Fr(){var e=Dr();return e?`
|
|
86
|
-
|
|
87
|
-
Check the render method of \``+e+"`.":""}var au=["value","defaultValue"];function nf(e){{nr("select",e);for(var n=0;n<au.length;n++){var s=au[n];if(e[s]!=null){var c=mn(e[s]);e.multiple&&!c?f("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,Fr()):!e.multiple&&c&&f("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,Fr())}}}}function Tl(e,n,s,c){var v=e.options;if(n){for(var m=s,C={},k=0;k<m.length;k++)C["$"+m[k]]=!0;for(var M=0;M<v.length;M++){var j=C.hasOwnProperty("$"+v[M].value);v[M].selected!==j&&(v[M].selected=j),j&&c&&(v[M].defaultSelected=!0)}}else{for(var q=pi(at(s)),fe=null,se=0;se<v.length;se++){if(v[se].value===q){v[se].selected=!0,c&&(v[se].defaultSelected=!0);return}fe===null&&!v[se].disabled&&(fe=v[se])}fe!==null&&(fe.selected=!0)}}function rf(e,n){return en({},n,{value:void 0})}function Xu(e,n){var s=e;nf(n),s._wrapperState={wasMultiple:!!n.multiple},n.value!==void 0&&n.defaultValue!==void 0&&!vr&&(f("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),vr=!0)}function Ph(e,n){var s=e;s.multiple=!!n.multiple;var c=n.value;c!=null?Tl(s,!!n.multiple,c,!1):n.defaultValue!=null&&Tl(s,!!n.multiple,n.defaultValue,!0)}function Jd(e,n){var s=e,c=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!n.multiple;var v=n.value;v!=null?Tl(s,!!n.multiple,v,!1):c!==!!n.multiple&&(n.defaultValue!=null?Tl(s,!!n.multiple,n.defaultValue,!0):Tl(s,!!n.multiple,n.multiple?[]:"",!1))}function Ah(e,n){var s=e,c=n.value;c!=null&&Tl(s,!!n.multiple,c,!1)}var c0=!1;function $h(e,n){var s=e;if(n.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var c=en({},n,{value:void 0,defaultValue:void 0,children:pi(s._wrapperState.initialValue)});return c}function Lh(e,n){var s=e;nr("textarea",n),n.value!==void 0&&n.defaultValue!==void 0&&!c0&&(f("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Dr()||"A component"),c0=!0);var c=n.value;if(c==null){var v=n.children,m=n.defaultValue;if(v!=null){f("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(m!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(mn(v)){if(v.length>1)throw new Error("<textarea> can only have at most one child.");v=v[0]}m=v}}m==null&&(m=""),c=m}s._wrapperState={initialValue:at(c)}}function f0(e,n){var s=e,c=at(n.value),v=at(n.defaultValue);if(c!=null){var m=pi(c);m!==s.value&&(s.value=m),n.defaultValue==null&&s.defaultValue!==m&&(s.defaultValue=m)}v!=null&&(s.defaultValue=pi(v))}function d0(e,n){var s=e,c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function Kw(e,n){f0(e,n)}var Ol="http://www.w3.org/1999/xhtml",Fh="http://www.w3.org/1998/Math/MathML",Ih="http://www.w3.org/2000/svg";function zh(e){switch(e){case"svg":return Ih;case"math":return Fh;default:return Ol}}function jh(e,n){return e==null||e===Ol?zh(n):e===Ih&&n==="foreignObject"?Ol:e}var p0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,c,v){MSApp.execUnsafeLocalFunction(function(){return e(n,s,c,v)})}:e},Zd,v0=p0(function(e,n){if(e.namespaceURI===Ih&&!("innerHTML"in e)){Zd=Zd||document.createElement("div"),Zd.innerHTML="<svg>"+n.valueOf().toString()+"</svg>";for(var s=Zd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild);return}e.innerHTML=n}),xa=1,_l=3,Zr=8,kl=9,Uh=11,Xs=function(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===_l){s.nodeValue=n;return}}e.textContent=n},af={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},of={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function h0(e,n){return e+n.charAt(0).toUpperCase()+n.substring(1)}var m0=["Webkit","ms","Moz","O"];Object.keys(of).forEach(function(e){m0.forEach(function(n){of[h0(n,e)]=of[e]})});function ep(e,n,s){var c=n==null||typeof n=="boolean"||n==="";return c?"":!s&&typeof n=="number"&&n!==0&&!(of.hasOwnProperty(e)&&of[e])?n+"px":(pn(n,e),(""+n).trim())}var g0=/([A-Z])/g,y0=/^ms-/;function Qs(e){return e.replace(g0,"-$1").toLowerCase().replace(y0,"-ms-")}var b0=function(){};{var Yw=/^(?:webkit|moz|o)[A-Z]/,Gw=/^-ms-/,S0=/-(.)/g,Bh=/;\s*$/,Go={},Qu={},E0=!1,lf=!1,Xw=function(e){return e.replace(S0,function(n,s){return s.toUpperCase()})},C0=function(e){Go.hasOwnProperty(e)&&Go[e]||(Go[e]=!0,f("Unsupported style property %s. Did you mean %s?",e,Xw(e.replace(Gw,"ms-"))))},Vh=function(e){Go.hasOwnProperty(e)&&Go[e]||(Go[e]=!0,f("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},Hh=function(e,n){Qu.hasOwnProperty(n)&&Qu[n]||(Qu[n]=!0,f(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,n.replace(Bh,"")))},w0=function(e,n){E0||(E0=!0,f("`NaN` is an invalid value for the `%s` css style property.",e))},x0=function(e,n){lf||(lf=!0,f("`Infinity` is an invalid value for the `%s` css style property.",e))};b0=function(e,n){e.indexOf("-")>-1?C0(e):Yw.test(e)?Vh(e):Bh.test(n)&&Hh(e,n),typeof n=="number"&&(isNaN(n)?w0(e,n):isFinite(n)||x0(e,n))}}var R0=b0;function Qw(e){{var n="",s="";for(var c in e)if(e.hasOwnProperty(c)){var v=e[c];if(v!=null){var m=c.indexOf("--")===0;n+=s+(m?c:Qs(c))+":",n+=ep(c,v,m),s=";"}}return n||null}}function T0(e,n){var s=e.style;for(var c in n)if(n.hasOwnProperty(c)){var v=c.indexOf("--")===0;v||R0(c,n[c]);var m=ep(c,n[c],v);c==="float"&&(c="cssFloat"),v?s.setProperty(c,m):s[c]=m}}function Jw(e){return e==null||typeof e=="boolean"||e===""}function O0(e){var n={};for(var s in e)for(var c=af[s]||[s],v=0;v<c.length;v++)n[c[v]]=s;return n}function Zw(e,n){{if(!n)return;var s=O0(e),c=O0(n),v={};for(var m in s){var C=s[m],k=c[m];if(k&&C!==k){var M=C+","+k;if(v[M])continue;v[M]=!0,f("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Jw(e[C])?"Removing":"Updating",C,k)}}}}var Mo={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},uf=en({menuitem:!0},Mo),_0="__html";function tp(e,n){if(n){if(uf[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof n.dangerouslySetInnerHTML!="object"||!(_0 in n.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!n.suppressContentEditableWarning&&n.contentEditable&&n.children!=null&&f("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),n.style!=null&&typeof n.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function ou(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sf={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},np={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Js={},e1=new RegExp("^(aria)-["+A+"]*$"),Zs=new RegExp("^(aria)[A-Z]["+A+"]*$");function Wh(e,n){{if(Tt.call(Js,n)&&Js[n])return!0;if(Zs.test(n)){var s="aria-"+n.slice(4).toLowerCase(),c=np.hasOwnProperty(s)?s:null;if(c==null)return f("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),Js[n]=!0,!0;if(n!==c)return f("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,c),Js[n]=!0,!0}if(e1.test(n)){var v=n.toLowerCase(),m=np.hasOwnProperty(v)?v:null;if(m==null)return Js[n]=!0,!1;if(n!==m)return f("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,m),Js[n]=!0,!0}}return!0}function cf(e,n){{var s=[];for(var c in n){var v=Wh(e,c);v||s.push(c)}var m=s.map(function(C){return"`"+C+"`"}).join(", ");s.length===1?f("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",m,e):s.length>1&&f("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",m,e)}}function qh(e,n){ou(e,n)||cf(e,n)}var Kh=!1;function rp(e,n){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;n!=null&&n.value===null&&!Kh&&(Kh=!0,e==="select"&&n.multiple?f("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):f("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Ju=function(){};{var Fi={},Yh=/^on./,ip=/^on[^A-Z]/,k0=new RegExp("^(aria)-["+A+"]*$"),N0=new RegExp("^(aria)[A-Z]["+A+"]*$");Ju=function(e,n,s,c){if(Tt.call(Fi,n)&&Fi[n])return!0;var v=n.toLowerCase();if(v==="onfocusin"||v==="onfocusout")return f("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Fi[n]=!0,!0;if(c!=null){var m=c.registrationNameDependencies,C=c.possibleRegistrationNames;if(m.hasOwnProperty(n))return!0;var k=C.hasOwnProperty(v)?C[v]:null;if(k!=null)return f("Invalid event handler property `%s`. Did you mean `%s`?",n,k),Fi[n]=!0,!0;if(Yh.test(n))return f("Unknown event handler property `%s`. It will be ignored.",n),Fi[n]=!0,!0}else if(Yh.test(n))return ip.test(n)&&f("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),Fi[n]=!0,!0;if(k0.test(n)||N0.test(n))return!0;if(v==="innerhtml")return f("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Fi[n]=!0,!0;if(v==="aria")return f("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Fi[n]=!0,!0;if(v==="is"&&s!==null&&s!==void 0&&typeof s!="string")return f("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),Fi[n]=!0,!0;if(typeof s=="number"&&isNaN(s))return f("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),Fi[n]=!0,!0;var M=mt(n),j=M!==null&&M.type===Ut;if(sf.hasOwnProperty(v)){var q=sf[v];if(q!==n)return f("Invalid DOM property `%s`. Did you mean `%s`?",n,q),Fi[n]=!0,!0}else if(!j&&n!==v)return f("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,v),Fi[n]=!0,!0;return typeof s=="boolean"&&Se(n,s,M,!1)?(s?f('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,n,n,s,n):f('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,n,n,s,n,n,n),Fi[n]=!0,!0):j?!0:Se(n,s,M,!1)?(Fi[n]=!0,!1):((s==="false"||s==="true")&&M!==null&&M.type===St&&(f("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,n,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,s),Fi[n]=!0),!0)}}var D0=function(e,n,s){{var c=[];for(var v in n){var m=Ju(e,v,n[v],s);m||c.push(v)}var C=c.map(function(k){return"`"+k+"`"}).join(", ");c.length===1?f("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",C,e):c.length>1&&f("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",C,e)}};function M0(e,n,s){ou(e,n)||D0(e,n,s)}var Gh=1,ap=2,fo=4,Xh=Gh|ap|fo,Zu=null;function t1(e){Zu!==null&&f("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Zu=e}function n1(){Zu===null&&f("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Zu=null}function ff(e){return e===Zu}function Qh(e){var n=e.target||e.srcElement||window;return n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===_l?n.parentNode:n}var op=null,es=null,rr=null;function lp(e){var n=Sc(e);if(n){if(typeof op!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var s=n.stateNode;if(s){var c=Ub(s);op(n.stateNode,n.type,c)}}}function up(e){op=e}function ec(e){es?rr?rr.push(e):rr=[e]:es=e}function P0(){return es!==null||rr!==null}function sp(){if(es){var e=es,n=rr;if(es=null,rr=null,lp(e),n)for(var s=0;s<n.length;s++)lp(n[s])}}var tc=function(e,n){return e(n)},df=function(){},lu=!1;function A0(){var e=P0();e&&(df(),sp())}function $0(e,n,s){if(lu)return e(n,s);lu=!0;try{return tc(e,n,s)}finally{lu=!1,A0()}}function r1(e,n,s){tc=e,df=s}function L0(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function cp(e,n,s){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(s.disabled&&L0(n));default:return!1}}function uu(e,n){var s=e.stateNode;if(s===null)return null;var c=Ub(s);if(c===null)return null;var v=c[n];if(cp(n,e.type,c))return null;if(v&&typeof v!="function")throw new Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof v+"` type.");return v}var pf=!1;if(rt)try{var ts={};Object.defineProperty(ts,"passive",{get:function(){pf=!0}}),window.addEventListener("test",ts,ts),window.removeEventListener("test",ts,ts)}catch{pf=!1}function fp(e,n,s,c,v,m,C,k,M){var j=Array.prototype.slice.call(arguments,3);try{n.apply(s,j)}catch(q){this.onError(q)}}var dp=fp;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Jh=document.createElement("react");dp=function(n,s,c,v,m,C,k,M,j){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var q=document.createEvent("Event"),fe=!1,se=!0,Te=window.event,Ne=Object.getOwnPropertyDescriptor(window,"event");function Pe(){Jh.removeEventListener(Ae,Wt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=Te)}var ut=Array.prototype.slice.call(arguments,3);function Wt(){fe=!0,Pe(),s.apply(c,ut),se=!1}var Mt,In=!1,Tn=!1;function Ee(Ce){if(Mt=Ce.error,In=!0,Mt===null&&Ce.colno===0&&Ce.lineno===0&&(Tn=!0),Ce.defaultPrevented&&Mt!=null&&typeof Mt=="object")try{Mt._suppressLogging=!0}catch{}}var Ae="react-"+(n||"invokeguardedcallback");if(window.addEventListener("error",Ee),Jh.addEventListener(Ae,Wt,!1),q.initEvent(Ae,!1,!1),Jh.dispatchEvent(q),Ne&&Object.defineProperty(window,"event",Ne),fe&&se&&(In?Tn&&(Mt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Mt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Mt)),window.removeEventListener("error",Ee),!fe)return Pe(),fp.apply(this,arguments)}}var F0=dp,nc=!1,pp=null,rc=!1,Xo=null,I0={onError:function(e){nc=!0,pp=e}};function su(e,n,s,c,v,m,C,k,M){nc=!1,pp=null,F0.apply(I0,arguments)}function Qo(e,n,s,c,v,m,C,k,M){if(su.apply(this,arguments),nc){var j=hf();rc||(rc=!0,Xo=j)}}function vf(){if(rc){var e=Xo;throw rc=!1,Xo=null,e}}function Nl(){return nc}function hf(){if(nc){var e=pp;return nc=!1,pp=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function ic(e){return e._reactInternals}function i1(e){return e._reactInternals!==void 0}function ns(e,n){e._reactInternals=n}var It=0,Po=1,Wr=2,$n=4,po=16,Ao=32,xr=64,$t=128,Ra=256,Br=512,vi=1024,Ta=2048,vo=4096,ei=8192,ac=16384,z0=32767,mf=32768,Oa=65536,vp=131072,Jo=1048576,oc=2097152,Dl=4194304,hp=8388608,cu=16777216,Zo=33554432,fu=$n|vi|0,du=Wr|$n|po|Ao|Br|vo|ei,pu=$n|xr|Br|ei,Ml=Ta|po,ti=Dl|hp|oc,ho=i.ReactCurrentOwner;function Ha(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{var c=n;do n=c,(n.flags&(Wr|vo))!==It&&(s=n.return),c=n.return;while(c)}return n.tag===R?s:null}function el(e){if(e.tag===B){var n=e.memoizedState;if(n===null){var s=e.alternate;s!==null&&(n=s.memoizedState)}if(n!==null)return n.dehydrated}return null}function tl(e){return e.tag===R?e.stateNode.containerInfo:null}function rs(e){return Ha(e)===e}function j0(e){{var n=ho.current;if(n!==null&&n.tag===S){var s=n,c=s.stateNode;c._warnedAboutRefsInRender||f("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",jt(s)||"A component"),c._warnedAboutRefsInRender=!0}}var v=ic(e);return v?Ha(v)===v:!1}function mp(e){if(Ha(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function gp(e){var n=e.alternate;if(!n){var s=Ha(e);if(s===null)throw new Error("Unable to find node on an unmounted component.");return s!==e?null:e}for(var c=e,v=n;;){var m=c.return;if(m===null)break;var C=m.alternate;if(C===null){var k=m.return;if(k!==null){c=v=k;continue}break}if(m.child===C.child){for(var M=m.child;M;){if(M===c)return mp(m),e;if(M===v)return mp(m),n;M=M.sibling}throw new Error("Unable to find node on an unmounted component.")}if(c.return!==v.return)c=m,v=C;else{for(var j=!1,q=m.child;q;){if(q===c){j=!0,c=m,v=C;break}if(q===v){j=!0,v=m,c=C;break}q=q.sibling}if(!j){for(q=C.child;q;){if(q===c){j=!0,c=C,v=m;break}if(q===v){j=!0,v=C,c=m;break}q=q.sibling}if(!j)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(c.alternate!==v)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(c.tag!==R)throw new Error("Unable to find node on an unmounted component.");return c.stateNode.current===c?e:n}function _a(e){var n=gp(e);return n!==null?ka(n):null}function ka(e){if(e.tag===P||e.tag===N)return e;for(var n=e.child;n!==null;){var s=ka(n);if(s!==null)return s;n=n.sibling}return null}function Mr(e){var n=gp(e);return n!==null?mo(n):null}function mo(e){if(e.tag===P||e.tag===N)return e;for(var n=e.child;n!==null;){if(n.tag!==_){var s=mo(n);if(s!==null)return s}n=n.sibling}return null}var Zh=r.unstable_scheduleCallback,U0=r.unstable_cancelCallback,em=r.unstable_shouldYield,tm=r.unstable_requestPaint,hi=r.unstable_now,yp=r.unstable_getCurrentPriorityLevel,gf=r.unstable_ImmediatePriority,vu=r.unstable_UserBlockingPriority,Pl=r.unstable_NormalPriority,a1=r.unstable_LowPriority,is=r.unstable_IdlePriority,bp=r.unstable_yieldValue,B0=r.unstable_setDisableYieldValue,as=null,qr=null,lt=null,Wa=!1,Na=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function lc(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return f("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{De&&(e=en({},e,{getLaneLabelMap:os,injectProfilingHooks:go})),as=n.inject(e),qr=n}catch(s){f("React instrumentation encountered an error: %s.",s)}return!!n.checkDCE}function nm(e,n){if(qr&&typeof qr.onScheduleFiberRoot=="function")try{qr.onScheduleFiberRoot(as,e,n)}catch(s){Wa||(Wa=!0,f("React instrumentation encountered an error: %s",s))}}function rm(e,n){if(qr&&typeof qr.onCommitFiberRoot=="function")try{var s=(e.current.flags&$t)===$t;if(ye){var c;switch(n){case sa:c=gf;break;case rl:c=vu;break;case yo:c=Pl;break;case bo:c=is;break;default:c=Pl;break}qr.onCommitFiberRoot(as,e,c,s)}}catch(v){Wa||(Wa=!0,f("React instrumentation encountered an error: %s",v))}}function im(e){if(qr&&typeof qr.onPostCommitFiberRoot=="function")try{qr.onPostCommitFiberRoot(as,e)}catch(n){Wa||(Wa=!0,f("React instrumentation encountered an error: %s",n))}}function am(e){if(qr&&typeof qr.onCommitFiberUnmount=="function")try{qr.onCommitFiberUnmount(as,e)}catch(n){Wa||(Wa=!0,f("React instrumentation encountered an error: %s",n))}}function Ir(e){if(typeof bp=="function"&&(B0(e),u(e)),qr&&typeof qr.setStrictMode=="function")try{qr.setStrictMode(as,e)}catch(n){Wa||(Wa=!0,f("React instrumentation encountered an error: %s",n))}}function go(e){lt=e}function os(){{for(var e=new Map,n=1,s=0;s<ss;s++){var c=q0(n);e.set(n,c),n*=2}return e}}function om(e){lt!==null&&typeof lt.markCommitStarted=="function"&<.markCommitStarted(e)}function lm(){lt!==null&&typeof lt.markCommitStopped=="function"&<.markCommitStopped()}function qa(e){lt!==null&&typeof lt.markComponentRenderStarted=="function"&<.markComponentRenderStarted(e)}function Ka(){lt!==null&&typeof lt.markComponentRenderStopped=="function"&<.markComponentRenderStopped()}function um(e){lt!==null&&typeof lt.markComponentPassiveEffectMountStarted=="function"&<.markComponentPassiveEffectMountStarted(e)}function V0(){lt!==null&&typeof lt.markComponentPassiveEffectMountStopped=="function"&<.markComponentPassiveEffectMountStopped()}function Al(e){lt!==null&&typeof lt.markComponentPassiveEffectUnmountStarted=="function"&<.markComponentPassiveEffectUnmountStarted(e)}function hu(){lt!==null&&typeof lt.markComponentPassiveEffectUnmountStopped=="function"&<.markComponentPassiveEffectUnmountStopped()}function Sp(e){lt!==null&&typeof lt.markComponentLayoutEffectMountStarted=="function"&<.markComponentLayoutEffectMountStarted(e)}function H0(){lt!==null&&typeof lt.markComponentLayoutEffectMountStopped=="function"&<.markComponentLayoutEffectMountStopped()}function yf(e){lt!==null&&typeof lt.markComponentLayoutEffectUnmountStarted=="function"&<.markComponentLayoutEffectUnmountStarted(e)}function sm(){lt!==null&&typeof lt.markComponentLayoutEffectUnmountStopped=="function"&<.markComponentLayoutEffectUnmountStopped()}function bf(e,n,s){lt!==null&&typeof lt.markComponentErrored=="function"&<.markComponentErrored(e,n,s)}function nl(e,n,s){lt!==null&&typeof lt.markComponentSuspended=="function"&<.markComponentSuspended(e,n,s)}function Sf(e){lt!==null&&typeof lt.markLayoutEffectsStarted=="function"&<.markLayoutEffectsStarted(e)}function Ef(){lt!==null&&typeof lt.markLayoutEffectsStopped=="function"&<.markLayoutEffectsStopped()}function ls(e){lt!==null&&typeof lt.markPassiveEffectsStarted=="function"&<.markPassiveEffectsStarted(e)}function cm(){lt!==null&&typeof lt.markPassiveEffectsStopped=="function"&<.markPassiveEffectsStopped()}function us(e){lt!==null&&typeof lt.markRenderStarted=="function"&<.markRenderStarted(e)}function W0(){lt!==null&&typeof lt.markRenderYielded=="function"&<.markRenderYielded()}function Ep(){lt!==null&&typeof lt.markRenderStopped=="function"&<.markRenderStopped()}function zr(e){lt!==null&&typeof lt.markRenderScheduled=="function"&<.markRenderScheduled(e)}function Cp(e,n){lt!==null&&typeof lt.markForceUpdateScheduled=="function"&<.markForceUpdateScheduled(e,n)}function Cf(e,n){lt!==null&&typeof lt.markStateUpdateScheduled=="function"&<.markStateUpdateScheduled(e,n)}var zt=0,yn=1,qn=2,hr=8,Kn=16,ni=Math.clz32?Math.clz32:wf,Ri=Math.log,wp=Math.LN2;function wf(e){var n=e>>>0;return n===0?32:31-(Ri(n)/wp|0)|0}var ss=31,je=0,Wn=0,Jt=1,mu=2,$o=4,Qi=8,Kr=16,$l=32,gu=4194240,cs=64,xp=128,Rp=256,Tp=512,Op=1024,_p=2048,kp=4096,Np=8192,Dp=16384,fs=32768,Mp=65536,uc=131072,sc=262144,Pp=524288,xf=1048576,Ap=2097152,Rf=130023424,ds=4194304,$p=8388608,Tf=16777216,Lp=33554432,Fp=67108864,fm=ds,Of=134217728,dm=268435455,_f=268435456,ps=536870912,Ya=1073741824;function q0(e){{if(e&Jt)return"Sync";if(e&mu)return"InputContinuousHydration";if(e&$o)return"InputContinuous";if(e&Qi)return"DefaultHydration";if(e&Kr)return"Default";if(e&$l)return"TransitionHydration";if(e&gu)return"Transition";if(e&Rf)return"Retry";if(e&Of)return"SelectiveHydration";if(e&_f)return"IdleHydration";if(e&ps)return"Idle";if(e&Ya)return"Offscreen"}}var br=-1,vs=cs,Ip=ds;function kf(e){switch(yu(e)){case Jt:return Jt;case mu:return mu;case $o:return $o;case Qi:return Qi;case Kr:return Kr;case $l:return $l;case cs:case xp:case Rp:case Tp:case Op:case _p:case kp:case Np:case Dp:case fs:case Mp:case uc:case sc:case Pp:case xf:case Ap:return e&gu;case ds:case $p:case Tf:case Lp:case Fp:return e&Rf;case Of:return Of;case _f:return _f;case ps:return ps;case Ya:return Ya;default:return f("Should have found matching lanes. This is a bug in React."),e}}function zp(e,n){var s=e.pendingLanes;if(s===je)return je;var c=je,v=e.suspendedLanes,m=e.pingedLanes,C=s&dm;if(C!==je){var k=C&~v;if(k!==je)c=kf(k);else{var M=C&m;M!==je&&(c=kf(M))}}else{var j=s&~v;j!==je?c=kf(j):m!==je&&(c=kf(m))}if(c===je)return je;if(n!==je&&n!==c&&(n&v)===je){var q=yu(c),fe=yu(n);if(q>=fe||q===Kr&&(fe&gu)!==je)return n}(c&$o)!==je&&(c|=s&Kr);var se=e.entangledLanes;if(se!==je)for(var Te=e.entanglements,Ne=c&se;Ne>0;){var Pe=ri(Ne),ut=1<<Pe;c|=Te[Pe],Ne&=~ut}return c}function Lo(e,n){for(var s=e.eventTimes,c=br;n>0;){var v=ri(n),m=1<<v,C=s[v];C>c&&(c=C),n&=~m}return c}function pm(e,n){switch(e){case Jt:case mu:case $o:return n+250;case Qi:case Kr:case $l:case cs:case xp:case Rp:case Tp:case Op:case _p:case kp:case Np:case Dp:case fs:case Mp:case uc:case sc:case Pp:case xf:case Ap:return n+5e3;case ds:case $p:case Tf:case Lp:case Fp:return br;case Of:case _f:case ps:case Ya:return br;default:return f("Should have found matching lanes. This is a bug in React."),br}}function jp(e,n){for(var s=e.pendingLanes,c=e.suspendedLanes,v=e.pingedLanes,m=e.expirationTimes,C=s;C>0;){var k=ri(C),M=1<<k,j=m[k];j===br?((M&c)===je||(M&v)!==je)&&(m[k]=pm(M,n)):j<=n&&(e.expiredLanes|=M),C&=~M}}function K0(e){return kf(e.pendingLanes)}function Up(e){var n=e.pendingLanes&-1073741825;return n!==je?n:n&Ya?Ya:je}function Y0(e){return(e&Jt)!==je}function Nf(e){return(e&dm)!==je}function hs(e){return(e&Rf)===e}function vm(e){var n=Jt|$o|Kr;return(e&n)===je}function hm(e){return(e&gu)===e}function Bp(e,n){var s=mu|$o|Qi|Kr;return(n&s)!==je}function G0(e,n){return(n&e.expiredLanes)!==je}function mm(e){return(e&gu)!==je}function gm(){var e=vs;return vs<<=1,(vs&gu)===je&&(vs=cs),e}function X0(){var e=Ip;return Ip<<=1,(Ip&Rf)===je&&(Ip=ds),e}function yu(e){return e&-e}function Df(e){return yu(e)}function ri(e){return 31-ni(e)}function Ii(e){return ri(e)}function Da(e,n){return(e&n)!==je}function ms(e,n){return(e&n)===n}function fn(e,n){return e|n}function Mf(e,n){return e&~n}function ym(e,n){return e&n}function Q0(e){return e}function J0(e,n){return e!==Wn&&e<n?e:n}function Pf(e){for(var n=[],s=0;s<ss;s++)n.push(e);return n}function cc(e,n,s){e.pendingLanes|=n,n!==ps&&(e.suspendedLanes=je,e.pingedLanes=je);var c=e.eventTimes,v=Ii(n);c[v]=s}function Z0(e,n){e.suspendedLanes|=n,e.pingedLanes&=~n;for(var s=e.expirationTimes,c=n;c>0;){var v=ri(c),m=1<<v;s[v]=br,c&=~m}}function Vp(e,n,s){e.pingedLanes|=e.suspendedLanes&n}function bm(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=je,e.pingedLanes=je,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n;for(var c=e.entanglements,v=e.eventTimes,m=e.expirationTimes,C=s;C>0;){var k=ri(C),M=1<<k;c[k]=je,v[k]=br,m[k]=br,C&=~M}}function Hp(e,n){for(var s=e.entangledLanes|=n,c=e.entanglements,v=s;v;){var m=ri(v),C=1<<m;C&n|c[m]&n&&(c[m]|=n),v&=~C}}function Sm(e,n){var s=yu(n),c;switch(s){case $o:c=mu;break;case Kr:c=Qi;break;case cs:case xp:case Rp:case Tp:case Op:case _p:case kp:case Np:case Dp:case fs:case Mp:case uc:case sc:case Pp:case xf:case Ap:case ds:case $p:case Tf:case Lp:case Fp:c=$l;break;case ps:c=_f;break;default:c=Wn;break}return(c&(e.suspendedLanes|n))!==Wn?Wn:c}function Af(e,n,s){if(Na)for(var c=e.pendingUpdatersLaneMap;s>0;){var v=Ii(s),m=1<<v,C=c[v];C.add(n),s&=~m}}function eb(e,n){if(Na)for(var s=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;n>0;){var v=Ii(n),m=1<<v,C=s[v];C.size>0&&(C.forEach(function(k){var M=k.alternate;(M===null||!c.has(M))&&c.add(k)}),C.clear()),n&=~m}}function Em(e,n){return null}var sa=Jt,rl=$o,yo=Kr,bo=ps,$f=Wn;function So(){return $f}function ii(e){$f=e}function tb(e,n){var s=$f;try{return $f=e,n()}finally{$f=s}}function nb(e,n){return e!==0&&e<n?e:n}function Lf(e,n){return e>n?e:n}function Ti(e,n){return e!==0&&e<n}function rb(e){var n=yu(e);return Ti(sa,n)?Ti(rl,n)?Nf(n)?yo:bo:rl:sa}function Wp(e){var n=e.current.memoizedState;return n.isDehydrated}var Ff;function Ji(e){Ff=e}function o1(e){Ff(e)}var ht;function fc(e){ht=e}var qp;function ib(e){qp=e}var ab;function If(e){ab=e}var zf;function Cm(e){zf=e}var Kp=!1,jf=[],Ll=null,il=null,al=null,Yr=new Map,ca=new Map,fa=[],ob=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function lb(e){return ob.indexOf(e)>-1}function Fo(e,n,s,c,v){return{blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:v,targetContainers:[c]}}function wm(e,n){switch(e){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":il=null;break;case"mouseover":case"mouseout":al=null;break;case"pointerover":case"pointerout":{var s=n.pointerId;Yr.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var c=n.pointerId;ca.delete(c);break}}}function Ma(e,n,s,c,v,m){if(e===null||e.nativeEvent!==m){var C=Fo(n,s,c,v,m);if(n!==null){var k=Sc(n);k!==null&&ht(k)}return C}e.eventSystemFlags|=c;var M=e.targetContainers;return v!==null&&M.indexOf(v)===-1&&M.push(v),e}function l1(e,n,s,c,v){switch(n){case"focusin":{var m=v;return Ll=Ma(Ll,e,n,s,c,m),!0}case"dragenter":{var C=v;return il=Ma(il,e,n,s,c,C),!0}case"mouseover":{var k=v;return al=Ma(al,e,n,s,c,k),!0}case"pointerover":{var M=v,j=M.pointerId;return Yr.set(j,Ma(Yr.get(j)||null,e,n,s,c,M)),!0}case"gotpointercapture":{var q=v,fe=q.pointerId;return ca.set(fe,Ma(ca.get(fe)||null,e,n,s,c,q)),!0}}return!1}function xm(e){var n=Jf(e.target);if(n!==null){var s=Ha(n);if(s!==null){var c=s.tag;if(c===B){var v=el(s);if(v!==null){e.blockedOn=v,zf(e.priority,function(){qp(s)});return}}else if(c===R){var m=s.stateNode;if(Wp(m)){e.blockedOn=tl(s);return}}}}e.blockedOn=null}function ub(e){for(var n=ab(),s={blockedOn:null,target:e,priority:n},c=0;c<fa.length&&Ti(n,fa[c].priority);c++);fa.splice(c,0,s),c===0&&xm(s)}function Uf(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;n.length>0;){var s=n[0],c=pc(e.domEventName,e.eventSystemFlags,s,e.nativeEvent);if(c===null){var v=e.nativeEvent,m=new v.constructor(v.type,v);t1(m),v.target.dispatchEvent(m),n1()}else{var C=Sc(c);return C!==null&&ht(C),e.blockedOn=c,!1}n.shift()}return!0}function Rm(e,n,s){Uf(e)&&s.delete(n)}function u1(){Kp=!1,Ll!==null&&Uf(Ll)&&(Ll=null),il!==null&&Uf(il)&&(il=null),al!==null&&Uf(al)&&(al=null),Yr.forEach(Rm),ca.forEach(Rm)}function bu(e,n){e.blockedOn===n&&(e.blockedOn=null,Kp||(Kp=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,u1)))}function gs(e){if(jf.length>0){bu(jf[0],e);for(var n=1;n<jf.length;n++){var s=jf[n];s.blockedOn===e&&(s.blockedOn=null)}}Ll!==null&&bu(Ll,e),il!==null&&bu(il,e),al!==null&&bu(al,e);var c=function(k){return bu(k,e)};Yr.forEach(c),ca.forEach(c);for(var v=0;v<fa.length;v++){var m=fa[v];m.blockedOn===e&&(m.blockedOn=null)}for(;fa.length>0;){var C=fa[0];if(C.blockedOn!==null)break;xm(C),C.blockedOn===null&&fa.shift()}}var zi=i.ReactCurrentBatchConfig,Ln=!0;function mi(e){Ln=!!e}function ai(){return Ln}function ji(e,n,s){var c=Yp(n),v;switch(c){case sa:v=Ga;break;case rl:v=dc;break;case yo:default:v=Gr;break}return v.bind(null,n,s,e)}function Ga(e,n,s,c){var v=So(),m=zi.transition;zi.transition=null;try{ii(sa),Gr(e,n,s,c)}finally{ii(v),zi.transition=m}}function dc(e,n,s,c){var v=So(),m=zi.transition;zi.transition=null;try{ii(rl),Gr(e,n,s,c)}finally{ii(v),zi.transition=m}}function Gr(e,n,s,c){Ln&&Bf(e,n,s,c)}function Bf(e,n,s,c){var v=pc(e,n,s,c);if(v===null){R1(e,n,c,ol,s),wm(e,c);return}if(l1(v,e,n,s,c)){c.stopPropagation();return}if(wm(e,c),n&fo&&lb(e)){for(;v!==null;){var m=Sc(v);m!==null&&o1(m);var C=pc(e,n,s,c);if(C===null&&R1(e,n,c,ol,s),C===v)break;v=C}v!==null&&c.stopPropagation();return}R1(e,n,c,null,s)}var ol=null;function pc(e,n,s,c){ol=null;var v=Qh(c),m=Jf(v);if(m!==null){var C=Ha(m);if(C===null)m=null;else{var k=C.tag;if(k===B){var M=el(C);if(M!==null)return M;m=null}else if(k===R){var j=C.stateNode;if(Wp(j))return tl(C);m=null}else C!==m&&(m=null)}}return ol=m,null}function Yp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return sa;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return rl;case"message":{var n=yp();switch(n){case gf:return sa;case vu:return rl;case Pl:case a1:return yo;case is:return bo;default:return yo}}default:return yo}}function Vf(e,n,s){return e.addEventListener(n,s,!1),s}function Pa(e,n,s){return e.addEventListener(n,s,!0),s}function Tm(e,n,s,c){return e.addEventListener(n,s,{capture:!0,passive:c}),s}function vc(e,n,s,c){return e.addEventListener(n,s,{passive:c}),s}var Xa=null,hc=null,ys=null;function Su(e){return Xa=e,hc=Hf(),!0}function Gp(){Xa=null,hc=null,ys=null}function Fl(){if(ys)return ys;var e,n=hc,s=n.length,c,v=Hf(),m=v.length;for(e=0;e<s&&n[e]===v[e];e++);var C=s-e;for(c=1;c<=C&&n[s-c]===v[m-c];c++);var k=c>1?1-c:void 0;return ys=v.slice(e,k),ys}function Hf(){return"value"in Xa?Xa.value:Xa.textContent}function Eu(e){var n,s=e.keyCode;return"charCode"in e?(n=e.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),n>=32||n===13?n:0}function mc(){return!0}function Wf(){return!1}function Zi(e){function n(s,c,v,m,C){this._reactName=s,this._targetInst=v,this.type=c,this.nativeEvent=m,this.target=C,this.currentTarget=null;for(var k in e)if(e.hasOwnProperty(k)){var M=e[k];M?this[k]=M(m):this[k]=m[k]}var j=m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1;return j?this.isDefaultPrevented=mc:this.isDefaultPrevented=Wf,this.isPropagationStopped=Wf,this}return en(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=mc)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=mc)},persist:function(){},isPersistent:mc}),n}var oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ll=Zi(oi),da=en({},oi,{view:0,detail:0}),Aa=Zi(da),Xp,qf,bs;function s1(e){e!==bs&&(bs&&e.type==="mousemove"?(Xp=e.screenX-bs.screenX,qf=e.screenY-bs.screenY):(Xp=0,qf=0),bs=e)}var Io=en({},da,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(s1(e),Xp)},movementY:function(e){return"movementY"in e?e.movementY:qf}}),Om=Zi(Io),_m=en({},Io,{dataTransfer:0}),Ss=Zi(_m),km=en({},da,{relatedTarget:0}),Il=Zi(km),sb=en({},oi,{animationName:0,elapsedTime:0,pseudoElement:0}),cb=Zi(sb),Nm=en({},oi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qp=Zi(Nm),c1=en({},oi,{data:0}),fb=Zi(c1),db=fb,pb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Es={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function f1(e){if(e.key){var n=pb[e.key]||e.key;if(n!=="Unidentified")return n}if(e.type==="keypress"){var s=Eu(e);return s===13?"Enter":String.fromCharCode(s)}return e.type==="keydown"||e.type==="keyup"?Es[e.keyCode]||"Unidentified":""}var gc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vb(e){var n=this,s=n.nativeEvent;if(s.getModifierState)return s.getModifierState(e);var c=gc[e];return c?!!s[c]:!1}function Pr(e){return vb}var d1=en({},da,{key:f1,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pr,charCode:function(e){return e.type==="keypress"?Eu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hb=Zi(d1),p1=en({},Io,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mb=Zi(p1),gb=en({},da,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pr}),yb=Zi(gb),v1=en({},oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Eo=Zi(v1),Dm=en({},Io,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),h1=Zi(Dm),Cu=[9,13,27,32],Kf=229,zl=rt&&"CompositionEvent"in window,wu=null;rt&&"documentMode"in document&&(wu=document.documentMode);var Mm=rt&&"TextEvent"in window&&!wu,Jp=rt&&(!zl||wu&&wu>8&&wu<=11),bb=32,Zp=String.fromCharCode(bb);function m1(){Qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qe("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Qe("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Qe("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Pm=!1;function Sb(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function ev(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function tv(e,n){return e==="keydown"&&n.keyCode===Kf}function Am(e,n){switch(e){case"keyup":return Cu.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==Kf;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nv(e){var n=e.detail;return typeof n=="object"&&"data"in n?n.data:null}function Eb(e){return e.locale==="ko"}var Cs=!1;function $m(e,n,s,c,v){var m,C;if(zl?m=ev(n):Cs?Am(n,c)&&(m="onCompositionEnd"):tv(n,c)&&(m="onCompositionStart"),!m)return null;Jp&&!Eb(c)&&(!Cs&&m==="onCompositionStart"?Cs=Su(v):m==="onCompositionEnd"&&Cs&&(C=Fl()));var k=_b(s,m);if(k.length>0){var M=new fb(m,n,null,c,v);if(e.push({event:M,listeners:k}),C)M.data=C;else{var j=nv(c);j!==null&&(M.data=j)}}}function rv(e,n){switch(e){case"compositionend":return nv(n);case"keypress":var s=n.which;return s!==bb?null:(Pm=!0,Zp);case"textInput":var c=n.data;return c===Zp&&Pm?null:c;default:return null}}function Lm(e,n){if(Cs){if(e==="compositionend"||!zl&&Am(e,n)){var s=Fl();return Gp(),Cs=!1,s}return null}switch(e){case"paste":return null;case"keypress":if(!Sb(n)){if(n.char&&n.char.length>1)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Jp&&!Eb(n)?null:n.data;default:return null}}function iv(e,n,s,c,v){var m;if(Mm?m=rv(n,c):m=Lm(n,c),!m)return null;var C=_b(s,"onBeforeInput");if(C.length>0){var k=new db("onBeforeInput","beforeinput",null,c,v);e.push({event:k,listeners:C}),k.data=m}}function Cb(e,n,s,c,v,m,C){$m(e,n,s,c,v),iv(e,n,s,c,v)}var g1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yf(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!g1[e.type]:n==="textarea"}/**
|
|
88
|
-
* Checks if an event is supported in the current execution environment.
|
|
89
|
-
*
|
|
90
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
91
|
-
* `reset`, `load`, `error`, and `select`.
|
|
92
|
-
*
|
|
93
|
-
* Borrows from Modernizr.
|
|
94
|
-
*
|
|
95
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
96
|
-
* @return {boolean} True if the event is supported.
|
|
97
|
-
* @internal
|
|
98
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
99
|
-
*/function y1(e){if(!rt)return!1;var n="on"+e,s=n in document;if(!s){var c=document.createElement("div");c.setAttribute(n,"return;"),s=typeof c[n]=="function"}return s}function Gf(){Qe("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function wb(e,n,s,c){ec(c);var v=_b(n,"onChange");if(v.length>0){var m=new ll("onChange","change",null,s,c);e.push({event:m,listeners:v})}}var xu=null,a=null;function l(e){var n=e.nodeName&&e.nodeName.toLowerCase();return n==="select"||n==="input"&&e.type==="file"}function d(e){var n=[];wb(n,a,e,Qh(e)),$0(h,n)}function h(e){CM(e,0)}function E(e){var n=cv(e);if(Yo(n))return e}function T(e,n){if(e==="change")return n}var F=!1;rt&&(F=y1("input")&&(!document.documentMode||document.documentMode>9));function Q(e,n){xu=e,a=n,xu.attachEvent("onpropertychange",_e)}function ae(){xu&&(xu.detachEvent("onpropertychange",_e),xu=null,a=null)}function _e(e){e.propertyName==="value"&&E(a)&&d(e)}function Ve(e,n,s){e==="focusin"?(ae(),Q(n,s)):e==="focusout"&&ae()}function Ke(e,n){if(e==="selectionchange"||e==="keyup"||e==="keydown")return E(a)}function Be(e){var n=e.nodeName;return n&&n.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function dt(e,n){if(e==="click")return E(n)}function wt(e,n){if(e==="input"||e==="change")return E(n)}function kt(e){var n=e._wrapperState;!n||!n.controlled||e.type!=="number"||Ht(e,"number",e.value)}function Xr(e,n,s,c,v,m,C){var k=s?cv(s):window,M,j;if(l(k)?M=T:Yf(k)?F?M=wt:(M=Ke,j=Ve):Be(k)&&(M=dt),M){var q=M(n,s);if(q){wb(e,q,c,v);return}}j&&j(n,k,s),n==="focusout"&&kt(k)}function be(){ft("onMouseEnter",["mouseout","mouseover"]),ft("onMouseLeave",["mouseout","mouseover"]),ft("onPointerEnter",["pointerout","pointerover"]),ft("onPointerLeave",["pointerout","pointerover"])}function ce(e,n,s,c,v,m,C){var k=n==="mouseover"||n==="pointerover",M=n==="mouseout"||n==="pointerout";if(k&&!ff(c)){var j=c.relatedTarget||c.fromElement;if(j&&(Jf(j)||Xm(j)))return}if(!(!M&&!k)){var q;if(v.window===v)q=v;else{var fe=v.ownerDocument;fe?q=fe.defaultView||fe.parentWindow:q=window}var se,Te;if(M){var Ne=c.relatedTarget||c.toElement;if(se=s,Te=Ne?Jf(Ne):null,Te!==null){var Pe=Ha(Te);(Te!==Pe||Te.tag!==P&&Te.tag!==N)&&(Te=null)}}else se=null,Te=s;if(se!==Te){var ut=Om,Wt="onMouseLeave",Mt="onMouseEnter",In="mouse";(n==="pointerout"||n==="pointerover")&&(ut=mb,Wt="onPointerLeave",Mt="onPointerEnter",In="pointer");var Tn=se==null?q:cv(se),Ee=Te==null?q:cv(Te),Ae=new ut(Wt,In+"leave",se,c,v);Ae.target=Tn,Ae.relatedTarget=Ee;var Ce=null,Ye=Jf(v);if(Ye===s){var vt=new ut(Mt,In+"enter",Te,c,v);vt.target=Ee,vt.relatedTarget=Tn,Ce=vt}cH(e,Ae,Ce,se,Te)}}}function xe(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var He=typeof Object.is=="function"?Object.is:xe;function xt(e,n){if(He(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),c=Object.keys(n);if(s.length!==c.length)return!1;for(var v=0;v<s.length;v++){var m=s[v];if(!Tt.call(n,m)||!He(e[m],n[m]))return!1}return!0}function Yt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xt(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function nn(e,n){for(var s=Yt(e),c=0,v=0;s;){if(s.nodeType===_l){if(v=c+s.textContent.length,c<=n&&v>=n)return{node:s,offset:n-c};c=v}s=Yt(Xt(s))}}function Oi(e){var n=e.ownerDocument,s=n&&n.defaultView||window,c=s.getSelection&&s.getSelection();if(!c||c.rangeCount===0)return null;var v=c.anchorNode,m=c.anchorOffset,C=c.focusNode,k=c.focusOffset;try{v.nodeType,C.nodeType}catch{return null}return Yn(e,v,m,C,k)}function Yn(e,n,s,c,v){var m=0,C=-1,k=-1,M=0,j=0,q=e,fe=null;e:for(;;){for(var se=null;q===n&&(s===0||q.nodeType===_l)&&(C=m+s),q===c&&(v===0||q.nodeType===_l)&&(k=m+v),q.nodeType===_l&&(m+=q.nodeValue.length),(se=q.firstChild)!==null;)fe=q,q=se;for(;;){if(q===e)break e;if(fe===n&&++M===s&&(C=m),fe===c&&++j===v&&(k=m),(se=q.nextSibling)!==null)break;q=fe,fe=q.parentNode}q=se}return C===-1||k===-1?null:{start:C,end:k}}function Ru(e,n){var s=e.ownerDocument||document,c=s&&s.defaultView||window;if(c.getSelection){var v=c.getSelection(),m=e.textContent.length,C=Math.min(n.start,m),k=n.end===void 0?C:Math.min(n.end,m);if(!v.extend&&C>k){var M=k;k=C,C=M}var j=nn(e,C),q=nn(e,k);if(j&&q){if(v.rangeCount===1&&v.anchorNode===j.node&&v.anchorOffset===j.offset&&v.focusNode===q.node&&v.focusOffset===q.offset)return;var fe=s.createRange();fe.setStart(j.node,j.offset),v.removeAllRanges(),C>k?(v.addRange(fe),v.extend(q.node,q.offset)):(fe.setEnd(q.node,q.offset),v.addRange(fe))}}}function xb(e){return e&&e.nodeType===_l}function fM(e,n){return!e||!n?!1:e===n?!0:xb(e)?!1:xb(n)?fM(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1}function q5(e){return e&&e.ownerDocument&&fM(e.ownerDocument.documentElement,e)}function K5(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function dM(){for(var e=window,n=co();n instanceof e.HTMLIFrameElement;){if(K5(n))e=n.contentWindow;else return n;n=co(e.document)}return n}function b1(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Y5(){var e=dM();return{focusedElem:e,selectionRange:b1(e)?X5(e):null}}function G5(e){var n=dM(),s=e.focusedElem,c=e.selectionRange;if(n!==s&&q5(s)){c!==null&&b1(s)&&Q5(s,c);for(var v=[],m=s;m=m.parentNode;)m.nodeType===xa&&v.push({element:m,left:m.scrollLeft,top:m.scrollTop});typeof s.focus=="function"&&s.focus();for(var C=0;C<v.length;C++){var k=v[C];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}}function X5(e){var n;return"selectionStart"in e?n={start:e.selectionStart,end:e.selectionEnd}:n=Oi(e),n||{start:0,end:0}}function Q5(e,n){var s=n.start,c=n.end;c===void 0&&(c=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(c,e.value.length)):Ru(e,n)}var J5=rt&&"documentMode"in document&&document.documentMode<=11;function Z5(){Qe("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var av=null,S1=null,Fm=null,E1=!1;function eH(e){if("selectionStart"in e&&b1(e))return{start:e.selectionStart,end:e.selectionEnd};var n=e.ownerDocument&&e.ownerDocument.defaultView||window,s=n.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function tH(e){return e.window===e?e.document:e.nodeType===kl?e:e.ownerDocument}function pM(e,n,s){var c=tH(s);if(!(E1||av==null||av!==co(c))){var v=eH(av);if(!Fm||!xt(Fm,v)){Fm=v;var m=_b(S1,"onSelect");if(m.length>0){var C=new ll("onSelect","select",null,n,s);e.push({event:C,listeners:m}),C.target=av}}}}function nH(e,n,s,c,v,m,C){var k=s?cv(s):window;switch(n){case"focusin":(Yf(k)||k.contentEditable==="true")&&(av=k,S1=s,Fm=null);break;case"focusout":av=null,S1=null,Fm=null;break;case"mousedown":E1=!0;break;case"contextmenu":case"mouseup":case"dragend":E1=!1,pM(e,c,v);break;case"selectionchange":if(J5)break;case"keydown":case"keyup":pM(e,c,v)}}function Rb(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var ov={animationend:Rb("Animation","AnimationEnd"),animationiteration:Rb("Animation","AnimationIteration"),animationstart:Rb("Animation","AnimationStart"),transitionend:Rb("Transition","TransitionEnd")},C1={},vM={};rt&&(vM=document.createElement("div").style,"AnimationEvent"in window||(delete ov.animationend.animation,delete ov.animationiteration.animation,delete ov.animationstart.animation),"TransitionEvent"in window||delete ov.transitionend.transition);function Tb(e){if(C1[e])return C1[e];if(!ov[e])return e;var n=ov[e];for(var s in n)if(n.hasOwnProperty(s)&&s in vM)return C1[e]=n[s];return e}var hM=Tb("animationend"),mM=Tb("animationiteration"),gM=Tb("animationstart"),yM=Tb("transitionend"),bM=new Map,SM=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function yc(e,n){bM.set(e,n),Qe(n,[e])}function rH(){for(var e=0;e<SM.length;e++){var n=SM[e],s=n.toLowerCase(),c=n[0].toUpperCase()+n.slice(1);yc(s,"on"+c)}yc(hM,"onAnimationEnd"),yc(mM,"onAnimationIteration"),yc(gM,"onAnimationStart"),yc("dblclick","onDoubleClick"),yc("focusin","onFocus"),yc("focusout","onBlur"),yc(yM,"onTransitionEnd")}function iH(e,n,s,c,v,m,C){var k=bM.get(n);if(k!==void 0){var M=ll,j=n;switch(n){case"keypress":if(Eu(c)===0)return;case"keydown":case"keyup":M=hb;break;case"focusin":j="focus",M=Il;break;case"focusout":j="blur",M=Il;break;case"beforeblur":case"afterblur":M=Il;break;case"click":if(c.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Om;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Ss;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=yb;break;case hM:case mM:case gM:M=cb;break;case yM:M=Eo;break;case"scroll":M=Aa;break;case"wheel":M=h1;break;case"copy":case"cut":case"paste":M=Qp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=mb;break}var q=(m&fo)!==0;{var fe=!q&&n==="scroll",se=uH(s,k,c.type,q,fe);if(se.length>0){var Te=new M(k,j,null,c,v);e.push({event:Te,listeners:se})}}}}rH(),be(),Gf(),Z5(),m1();function aH(e,n,s,c,v,m,C){iH(e,n,s,c,v,m);var k=(m&Xh)===0;k&&(ce(e,n,s,c,v),Xr(e,n,s,c,v),nH(e,n,s,c,v),Cb(e,n,s,c,v))}var Im=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],w1=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Im));function EM(e,n,s){var c=e.type||"unknown-event";e.currentTarget=s,Qo(c,n,void 0,e),e.currentTarget=null}function oH(e,n,s){var c;if(s)for(var v=n.length-1;v>=0;v--){var m=n[v],C=m.instance,k=m.currentTarget,M=m.listener;if(C!==c&&e.isPropagationStopped())return;EM(e,M,k),c=C}else for(var j=0;j<n.length;j++){var q=n[j],fe=q.instance,se=q.currentTarget,Te=q.listener;if(fe!==c&&e.isPropagationStopped())return;EM(e,Te,se),c=fe}}function CM(e,n){for(var s=(n&fo)!==0,c=0;c<e.length;c++){var v=e[c],m=v.event,C=v.listeners;oH(m,C,s)}vf()}function lH(e,n,s,c,v){var m=Qh(s),C=[];aH(C,e,c,s,m,n),CM(C,n)}function jr(e,n){w1.has(e)||f('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,c=F6(n),v=fH(e);c.has(v)||(wM(n,e,ap,s),c.add(v))}function x1(e,n,s){w1.has(e)&&!n&&f('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var c=0;n&&(c|=fo),wM(s,e,c,n)}var Ob="_reactListening"+Math.random().toString(36).slice(2);function zm(e){if(!e[Ob]){e[Ob]=!0,We.forEach(function(s){s!=="selectionchange"&&(w1.has(s)||x1(s,!1,e),x1(s,!0,e))});var n=e.nodeType===kl?e:e.ownerDocument;n!==null&&(n[Ob]||(n[Ob]=!0,x1("selectionchange",!1,n)))}}function wM(e,n,s,c,v){var m=ji(e,n,s),C=void 0;pf&&(n==="touchstart"||n==="touchmove"||n==="wheel")&&(C=!0),e=e,c?C!==void 0?Tm(e,n,m,C):Pa(e,n,m):C!==void 0?vc(e,n,m,C):Vf(e,n,m)}function xM(e,n){return e===n||e.nodeType===Zr&&e.parentNode===n}function R1(e,n,s,c,v){var m=c;if(!(n&Gh)&&!(n&ap)){var C=v;if(c!==null){var k=c;e:for(;;){if(k===null)return;var M=k.tag;if(M===R||M===_){var j=k.stateNode.containerInfo;if(xM(j,C))break;if(M===_)for(var q=k.return;q!==null;){var fe=q.tag;if(fe===R||fe===_){var se=q.stateNode.containerInfo;if(xM(se,C))return}q=q.return}for(;j!==null;){var Te=Jf(j);if(Te===null)return;var Ne=Te.tag;if(Ne===P||Ne===N){k=m=Te;continue e}j=j.parentNode}}k=k.return}}}$0(function(){return lH(e,n,s,m)})}function jm(e,n,s){return{instance:e,listener:n,currentTarget:s}}function uH(e,n,s,c,v,m){for(var C=n!==null?n+"Capture":null,k=c?C:n,M=[],j=e,q=null;j!==null;){var fe=j,se=fe.stateNode,Te=fe.tag;if(Te===P&&se!==null&&(q=se,k!==null)){var Ne=uu(j,k);Ne!=null&&M.push(jm(j,Ne,q))}if(v)break;j=j.return}return M}function _b(e,n){for(var s=n+"Capture",c=[],v=e;v!==null;){var m=v,C=m.stateNode,k=m.tag;if(k===P&&C!==null){var M=C,j=uu(v,s);j!=null&&c.unshift(jm(v,j,M));var q=uu(v,n);q!=null&&c.push(jm(v,q,M))}v=v.return}return c}function lv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==P);return e||null}function sH(e,n){for(var s=e,c=n,v=0,m=s;m;m=lv(m))v++;for(var C=0,k=c;k;k=lv(k))C++;for(;v-C>0;)s=lv(s),v--;for(;C-v>0;)c=lv(c),C--;for(var M=v;M--;){if(s===c||c!==null&&s===c.alternate)return s;s=lv(s),c=lv(c)}return null}function RM(e,n,s,c,v){for(var m=n._reactName,C=[],k=s;k!==null&&k!==c;){var M=k,j=M.alternate,q=M.stateNode,fe=M.tag;if(j!==null&&j===c)break;if(fe===P&&q!==null){var se=q;if(v){var Te=uu(k,m);Te!=null&&C.unshift(jm(k,Te,se))}else if(!v){var Ne=uu(k,m);Ne!=null&&C.push(jm(k,Ne,se))}}k=k.return}C.length!==0&&e.push({event:n,listeners:C})}function cH(e,n,s,c,v){var m=c&&v?sH(c,v):null;c!==null&&RM(e,n,c,m,!1),v!==null&&s!==null&&RM(e,s,v,m,!0)}function fH(e,n){return e+"__bubble"}var Co=!1,Um="dangerouslySetInnerHTML",kb="suppressContentEditableWarning",bc="suppressHydrationWarning",TM="autoFocus",Xf="children",Qf="style",Nb="__html",T1,Db,Bm,OM,Mb,_M,kM;T1={dialog:!0,webview:!0},Db=function(e,n){qh(e,n),rp(e,n),M0(e,n,{registrationNameDependencies:Ue,possibleRegistrationNames:qe})},_M=rt&&!document.documentMode,Bm=function(e,n,s){if(!Co){var c=Pb(s),v=Pb(n);v!==c&&(Co=!0,f("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(v),JSON.stringify(c)))}},OM=function(e){if(!Co){Co=!0;var n=[];e.forEach(function(s){n.push(s)}),f("Extra attributes from the server: %s",n)}},Mb=function(e,n){n===!1?f("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):f("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof n)},kM=function(e,n){var s=e.namespaceURI===Ol?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=n,s.innerHTML};var dH=/\r\n?/g,pH=/\u0000|\uFFFD/g;function Pb(e){rn(e);var n=typeof e=="string"?e:""+e;return n.replace(dH,`
|
|
100
|
-
`).replace(pH,"")}function Ab(e,n,s,c){var v=Pb(n),m=Pb(e);if(m!==v&&(c&&(Co||(Co=!0,f('Text content did not match. Server: "%s" Client: "%s"',m,v))),s&&ge))throw new Error("Text content does not match server-rendered HTML.")}function NM(e){return e.nodeType===kl?e:e.ownerDocument}function vH(){}function $b(e){e.onclick=vH}function hH(e,n,s,c,v){for(var m in c)if(c.hasOwnProperty(m)){var C=c[m];if(m===Qf)C&&Object.freeze(C),T0(n,C);else if(m===Um){var k=C?C[Nb]:void 0;k!=null&&v0(n,k)}else if(m===Xf)if(typeof C=="string"){var M=e!=="textarea"||C!=="";M&&Xs(n,C)}else typeof C=="number"&&Xs(n,""+C);else m===kb||m===bc||m===TM||(Ue.hasOwnProperty(m)?C!=null&&(typeof C!="function"&&Mb(m,C),m==="onScroll"&&jr("scroll",n)):C!=null&&dn(n,m,C,v))}}function mH(e,n,s,c){for(var v=0;v<n.length;v+=2){var m=n[v],C=n[v+1];m===Qf?T0(e,C):m===Um?v0(e,C):m===Xf?Xs(e,C):dn(e,m,C,c)}}function gH(e,n,s,c){var v,m=NM(s),C,k=c;if(k===Ol&&(k=zh(e)),k===Ol){if(v=ou(e,n),!v&&e!==e.toLowerCase()&&f("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var M=m.createElement("div");M.innerHTML="<script><\/script>";var j=M.firstChild;C=M.removeChild(j)}else if(typeof n.is=="string")C=m.createElement(e,{is:n.is});else if(C=m.createElement(e),e==="select"){var q=C;n.multiple?q.multiple=!0:n.size&&(q.size=n.size)}}else C=m.createElementNS(k,e);return k===Ol&&!v&&Object.prototype.toString.call(C)==="[object HTMLUnknownElement]"&&!Tt.call(T1,e)&&(T1[e]=!0,f("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),C}function yH(e,n){return NM(n).createTextNode(e)}function bH(e,n,s,c){var v=ou(n,s);Db(n,s);var m;switch(n){case"dialog":jr("cancel",e),jr("close",e),m=s;break;case"iframe":case"object":case"embed":jr("load",e),m=s;break;case"video":case"audio":for(var C=0;C<Im.length;C++)jr(Im[C],e);m=s;break;case"source":jr("error",e),m=s;break;case"img":case"image":case"link":jr("error",e),jr("load",e),m=s;break;case"details":jr("toggle",e),m=s;break;case"input":Do(e,s),m=Gs(e,s),jr("invalid",e);break;case"option":jn(e,s),m=s;break;case"select":Xu(e,s),m=rf(e,s),jr("invalid",e);break;case"textarea":Lh(e,s),m=$h(e,s),jr("invalid",e);break;default:m=s}switch(tp(n,m),hH(n,e,c,m,v),n){case"input":Xi(e),Oe(e,s,!1);break;case"textarea":Xi(e),d0(e);break;case"option":wr(e,s);break;case"select":Ph(e,s);break;default:typeof m.onClick=="function"&&$b(e);break}}function SH(e,n,s,c,v){Db(n,c);var m=null,C,k;switch(n){case"input":C=Gs(e,s),k=Gs(e,c),m=[];break;case"select":C=rf(e,s),k=rf(e,c),m=[];break;case"textarea":C=$h(e,s),k=$h(e,c),m=[];break;default:C=s,k=c,typeof C.onClick!="function"&&typeof k.onClick=="function"&&$b(e);break}tp(n,k);var M,j,q=null;for(M in C)if(!(k.hasOwnProperty(M)||!C.hasOwnProperty(M)||C[M]==null))if(M===Qf){var fe=C[M];for(j in fe)fe.hasOwnProperty(j)&&(q||(q={}),q[j]="")}else M===Um||M===Xf||M===kb||M===bc||M===TM||(Ue.hasOwnProperty(M)?m||(m=[]):(m=m||[]).push(M,null));for(M in k){var se=k[M],Te=C?.[M];if(!(!k.hasOwnProperty(M)||se===Te||se==null&&Te==null))if(M===Qf)if(se&&Object.freeze(se),Te){for(j in Te)Te.hasOwnProperty(j)&&(!se||!se.hasOwnProperty(j))&&(q||(q={}),q[j]="");for(j in se)se.hasOwnProperty(j)&&Te[j]!==se[j]&&(q||(q={}),q[j]=se[j])}else q||(m||(m=[]),m.push(M,q)),q=se;else if(M===Um){var Ne=se?se[Nb]:void 0,Pe=Te?Te[Nb]:void 0;Ne!=null&&Pe!==Ne&&(m=m||[]).push(M,Ne)}else M===Xf?(typeof se=="string"||typeof se=="number")&&(m=m||[]).push(M,""+se):M===kb||M===bc||(Ue.hasOwnProperty(M)?(se!=null&&(typeof se!="function"&&Mb(M,se),M==="onScroll"&&jr("scroll",e)),!m&&Te!==se&&(m=[])):(m=m||[]).push(M,se))}return q&&(Zw(q,k[Qf]),(m=m||[]).push(Qf,q)),m}function EH(e,n,s,c,v){s==="input"&&v.type==="radio"&&v.name!=null&&$(e,v);var m=ou(s,c),C=ou(s,v);switch(mH(e,n,m,C),s){case"input":re(e,v);break;case"textarea":f0(e,v);break;case"select":Jd(e,v);break}}function CH(e){{var n=e.toLowerCase();return sf.hasOwnProperty(n)&&sf[n]||null}}function wH(e,n,s,c,v,m,C){var k,M;switch(k=ou(n,s),Db(n,s),n){case"dialog":jr("cancel",e),jr("close",e);break;case"iframe":case"object":case"embed":jr("load",e);break;case"video":case"audio":for(var j=0;j<Im.length;j++)jr(Im[j],e);break;case"source":jr("error",e);break;case"img":case"image":case"link":jr("error",e),jr("load",e);break;case"details":jr("toggle",e);break;case"input":Do(e,s),jr("invalid",e);break;case"option":jn(e,s);break;case"select":Xu(e,s),jr("invalid",e);break;case"textarea":Lh(e,s),jr("invalid",e);break}tp(n,s);{M=new Set;for(var q=e.attributes,fe=0;fe<q.length;fe++){var se=q[fe].name.toLowerCase();switch(se){case"value":break;case"checked":break;case"selected":break;default:M.add(q[fe].name)}}}var Te=null;for(var Ne in s)if(s.hasOwnProperty(Ne)){var Pe=s[Ne];if(Ne===Xf)typeof Pe=="string"?e.textContent!==Pe&&(s[bc]!==!0&&Ab(e.textContent,Pe,m,C),Te=[Xf,Pe]):typeof Pe=="number"&&e.textContent!==""+Pe&&(s[bc]!==!0&&Ab(e.textContent,Pe,m,C),Te=[Xf,""+Pe]);else if(Ue.hasOwnProperty(Ne))Pe!=null&&(typeof Pe!="function"&&Mb(Ne,Pe),Ne==="onScroll"&&jr("scroll",e));else if(C&&typeof k=="boolean"){var ut=void 0,Wt=mt(Ne);if(s[bc]!==!0){if(!(Ne===kb||Ne===bc||Ne==="value"||Ne==="checked"||Ne==="selected")){if(Ne===Um){var Mt=e.innerHTML,In=Pe?Pe[Nb]:void 0;if(In!=null){var Tn=kM(e,In);Tn!==Mt&&Bm(Ne,Mt,Tn)}}else if(Ne===Qf){if(M.delete(Ne),_M){var Ee=Qw(Pe);ut=e.getAttribute("style"),Ee!==ut&&Bm(Ne,ut,Ee)}}else if(k)M.delete(Ne.toLowerCase()),ut=At(e,Ne,Pe),Pe!==ut&&Bm(Ne,ut,Pe);else if(!ve(Ne,Wt,k)&&!Xe(Ne,Pe,Wt,k)){var Ae=!1;if(Wt!==null)M.delete(Wt.attributeName),ut=et(e,Ne,Pe,Wt);else{var Ce=c;if(Ce===Ol&&(Ce=zh(n)),Ce===Ol)M.delete(Ne.toLowerCase());else{var Ye=CH(Ne);Ye!==null&&Ye!==Ne&&(Ae=!0,M.delete(Ye)),M.delete(Ne)}ut=At(e,Ne,Pe)}var vt=G;!vt&&Pe!==ut&&!Ae&&Bm(Ne,ut,Pe)}}}}}switch(C&&M.size>0&&s[bc]!==!0&&OM(M),n){case"input":Xi(e),Oe(e,s,!0);break;case"textarea":Xi(e),d0(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&$b(e);break}return Te}function xH(e,n,s){var c=e.nodeValue!==n;return c}function O1(e,n){{if(Co)return;Co=!0,f("Did not expect server HTML to contain a <%s> in <%s>.",n.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function _1(e,n){{if(Co)return;Co=!0,f('Did not expect server HTML to contain the text node "%s" in <%s>.',n.nodeValue,e.nodeName.toLowerCase())}}function k1(e,n,s){{if(Co)return;Co=!0,f("Expected server HTML to contain a matching <%s> in <%s>.",n,e.nodeName.toLowerCase())}}function N1(e,n){{if(n===""||Co)return;Co=!0,f('Expected server HTML to contain a matching text node for "%s" in <%s>.',n,e.nodeName.toLowerCase())}}function RH(e,n,s){switch(n){case"input":Me(e,s);return;case"textarea":Kw(e,s);return;case"select":Ah(e,s);return}}var Vm=function(){},Hm=function(){};{var TH=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],DM=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],OH=DM.concat(["button"]),_H=["dd","dt","li","option","optgroup","p","rp","rt"],MM={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Hm=function(e,n){var s=en({},e||MM),c={tag:n};return DM.indexOf(n)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),OH.indexOf(n)!==-1&&(s.pTagInButtonScope=null),TH.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=c,n==="form"&&(s.formTag=c),n==="a"&&(s.aTagInScope=c),n==="button"&&(s.buttonTagInScope=c),n==="nobr"&&(s.nobrTagInScope=c),n==="p"&&(s.pTagInButtonScope=c),n==="li"&&(s.listItemTagAutoclosing=c),(n==="dd"||n==="dt")&&(s.dlItemTagAutoclosing=c),s};var kH=function(e,n){switch(n){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return _H.indexOf(n)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null}return!0},NH=function(e,n){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null},PM={};Vm=function(e,n,s){s=s||MM;var c=s.current,v=c&&c.tag;n!=null&&(e!=null&&f("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var m=kH(e,v)?null:c,C=m?null:NH(e,s),k=m||C;if(k){var M=k.tag,j=!!m+"|"+e+"|"+M;if(!PM[j]){PM[j]=!0;var q=e,fe="";if(e==="#text"?/\S/.test(n)?q="Text nodes":(q="Whitespace text nodes",fe=" Make sure you don't have any extra whitespace between tags on each line of your source code."):q="<"+e+">",m){var se="";M==="table"&&e==="tr"&&(se+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),f("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",q,M,fe,se)}else f("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",q,M)}}}}var Lb="suppressHydrationWarning",Fb="$",Ib="/$",Wm="$?",qm="$!",DH="style",D1=null,M1=null;function MH(e){var n,s,c=e.nodeType;switch(c){case kl:case Uh:{n=c===kl?"#document":"#fragment";var v=e.documentElement;s=v?v.namespaceURI:jh(null,"");break}default:{var m=c===Zr?e.parentNode:e,C=m.namespaceURI||null;n=m.tagName,s=jh(C,n);break}}{var k=n.toLowerCase(),M=Hm(null,k);return{namespace:s,ancestorInfo:M}}}function PH(e,n,s){{var c=e,v=jh(c.namespace,n),m=Hm(c.ancestorInfo,n);return{namespace:v,ancestorInfo:m}}}function iq(e){return e}function AH(e){D1=ai(),M1=Y5();var n=null;return mi(!1),n}function $H(e){G5(M1),mi(D1),D1=null,M1=null}function LH(e,n,s,c,v){var m;{var C=c;if(Vm(e,null,C.ancestorInfo),typeof n.children=="string"||typeof n.children=="number"){var k=""+n.children,M=Hm(C.ancestorInfo,e);Vm(null,k,M)}m=C.namespace}var j=gH(e,n,s,m);return Gm(v,j),j1(j,n),j}function FH(e,n){e.appendChild(n)}function IH(e,n,s,c,v){switch(bH(e,n,s,c),n){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function zH(e,n,s,c,v,m){{var C=m;if(typeof c.children!=typeof s.children&&(typeof c.children=="string"||typeof c.children=="number")){var k=""+c.children,M=Hm(C.ancestorInfo,n);Vm(null,k,M)}}return SH(e,n,s,c)}function P1(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function jH(e,n,s,c){{var v=s;Vm(null,e,v.ancestorInfo)}var m=yH(e,n);return Gm(c,m),m}function UH(){var e=window.event;return e===void 0?yo:Yp(e.type)}var A1=typeof setTimeout=="function"?setTimeout:void 0,BH=typeof clearTimeout=="function"?clearTimeout:void 0,$1=-1,AM=typeof Promise=="function"?Promise:void 0,VH=typeof queueMicrotask=="function"?queueMicrotask:typeof AM<"u"?function(e){return AM.resolve(null).then(e).catch(HH)}:A1;function HH(e){setTimeout(function(){throw e})}function WH(e,n,s,c){switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function qH(e,n,s,c,v,m){EH(e,n,s,c,v),j1(e,v)}function $M(e){Xs(e,"")}function KH(e,n,s){e.nodeValue=s}function YH(e,n){e.appendChild(n)}function GH(e,n){var s;e.nodeType===Zr?(s=e.parentNode,s.insertBefore(n,e)):(s=e,s.appendChild(n));var c=e._reactRootContainer;c==null&&s.onclick===null&&$b(s)}function XH(e,n,s){e.insertBefore(n,s)}function QH(e,n,s){e.nodeType===Zr?e.parentNode.insertBefore(n,s):e.insertBefore(n,s)}function JH(e,n){e.removeChild(n)}function ZH(e,n){e.nodeType===Zr?e.parentNode.removeChild(n):e.removeChild(n)}function L1(e,n){var s=n,c=0;do{var v=s.nextSibling;if(e.removeChild(s),v&&v.nodeType===Zr){var m=v.data;if(m===Ib)if(c===0){e.removeChild(v),gs(n);return}else c--;else(m===Fb||m===Wm||m===qm)&&c++}s=v}while(s);gs(n)}function e6(e,n){e.nodeType===Zr?L1(e.parentNode,n):e.nodeType===xa&&L1(e,n),gs(e)}function t6(e){e=e;var n=e.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}function n6(e){e.nodeValue=""}function r6(e,n){e=e;var s=n[DH],c=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=ep("display",c)}function i6(e,n){e.nodeValue=n}function a6(e){e.nodeType===xa?e.textContent="":e.nodeType===kl&&e.documentElement&&e.removeChild(e.documentElement)}function o6(e,n,s){return e.nodeType!==xa||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function l6(e,n){return n===""||e.nodeType!==_l?null:e}function u6(e){return e.nodeType!==Zr?null:e}function LM(e){return e.data===Wm}function F1(e){return e.data===qm}function s6(e){var n=e.nextSibling&&e.nextSibling.dataset,s,c,v;return n&&(s=n.dgst,c=n.msg,v=n.stck),{message:c,digest:s,stack:v}}function c6(e,n){e._reactRetry=n}function zb(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===xa||n===_l)break;if(n===Zr){var s=e.data;if(s===Fb||s===qm||s===Wm)break;if(s===Ib)return null}}return e}function Km(e){return zb(e.nextSibling)}function f6(e){return zb(e.firstChild)}function d6(e){return zb(e.firstChild)}function p6(e){return zb(e.nextSibling)}function v6(e,n,s,c,v,m,C){Gm(m,e),j1(e,s);var k;{var M=v;k=M.namespace}var j=(m.mode&yn)!==zt;return wH(e,n,s,k,c,j,C)}function h6(e,n,s,c){return Gm(s,e),s.mode&yn,xH(e,n)}function m6(e,n){Gm(n,e)}function g6(e){for(var n=e.nextSibling,s=0;n;){if(n.nodeType===Zr){var c=n.data;if(c===Ib){if(s===0)return Km(n);s--}else(c===Fb||c===qm||c===Wm)&&s++}n=n.nextSibling}return null}function FM(e){for(var n=e.previousSibling,s=0;n;){if(n.nodeType===Zr){var c=n.data;if(c===Fb||c===qm||c===Wm){if(s===0)return n;s--}else c===Ib&&s++}n=n.previousSibling}return null}function y6(e){gs(e)}function b6(e){gs(e)}function S6(e){return e!=="head"&&e!=="body"}function E6(e,n,s,c){var v=!0;Ab(n.nodeValue,s,c,v)}function C6(e,n,s,c,v,m){if(n[Lb]!==!0){var C=!0;Ab(c.nodeValue,v,m,C)}}function w6(e,n){n.nodeType===xa?O1(e,n):n.nodeType===Zr||_1(e,n)}function x6(e,n){{var s=e.parentNode;s!==null&&(n.nodeType===xa?O1(s,n):n.nodeType===Zr||_1(s,n))}}function R6(e,n,s,c,v){(v||n[Lb]!==!0)&&(c.nodeType===xa?O1(s,c):c.nodeType===Zr||_1(s,c))}function T6(e,n,s){k1(e,n)}function O6(e,n){N1(e,n)}function _6(e,n,s){{var c=e.parentNode;c!==null&&k1(c,n)}}function k6(e,n){{var s=e.parentNode;s!==null&&N1(s,n)}}function N6(e,n,s,c,v,m){(m||n[Lb]!==!0)&&k1(s,c)}function D6(e,n,s,c,v){(v||n[Lb]!==!0)&&N1(s,c)}function M6(e){f("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function P6(e){zm(e)}var uv=Math.random().toString(36).slice(2),sv="__reactFiber$"+uv,I1="__reactProps$"+uv,Ym="__reactContainer$"+uv,z1="__reactEvents$"+uv,A6="__reactListeners$"+uv,$6="__reactHandles$"+uv;function L6(e){delete e[sv],delete e[I1],delete e[z1],delete e[A6],delete e[$6]}function Gm(e,n){n[sv]=e}function jb(e,n){n[Ym]=e}function IM(e){e[Ym]=null}function Xm(e){return!!e[Ym]}function Jf(e){var n=e[sv];if(n)return n;for(var s=e.parentNode;s;){if(n=s[Ym]||s[sv],n){var c=n.alternate;if(n.child!==null||c!==null&&c.child!==null)for(var v=FM(e);v!==null;){var m=v[sv];if(m)return m;v=FM(v)}return n}e=s,s=e.parentNode}return null}function Sc(e){var n=e[sv]||e[Ym];return n&&(n.tag===P||n.tag===N||n.tag===B||n.tag===R)?n:null}function cv(e){if(e.tag===P||e.tag===N)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Ub(e){return e[I1]||null}function j1(e,n){e[I1]=n}function F6(e){var n=e[z1];return n===void 0&&(n=e[z1]=new Set),n}var zM={},jM=i.ReactDebugCurrentFrame;function Bb(e){if(e){var n=e._owner,s=dr(e.type,e._source,n?n.type:null);jM.setExtraStackFrame(s)}else jM.setExtraStackFrame(null)}function jl(e,n,s,c,v){{var m=Function.call.bind(Tt);for(var C in e)if(m(e,C)){var k=void 0;try{if(typeof e[C]!="function"){var M=Error((c||"React class")+": "+s+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}k=e[C](n,C,c,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){k=j}k&&!(k instanceof Error)&&(Bb(v),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,C,typeof k),Bb(null)),k instanceof Error&&!(k.message in zM)&&(zM[k.message]=!0,Bb(v),f("Failed %s type: %s",s,k.message),Bb(null))}}}var U1=[],Vb;Vb=[];var ws=-1;function Ec(e){return{current:e}}function $a(e,n){if(ws<0){f("Unexpected pop.");return}n!==Vb[ws]&&f("Unexpected Fiber popped."),e.current=U1[ws],U1[ws]=null,Vb[ws]=null,ws--}function La(e,n,s){ws++,U1[ws]=e.current,Vb[ws]=s,e.current=n}var B1;B1={};var zo={};Object.freeze(zo);var xs=Ec(zo),Tu=Ec(!1),V1=zo;function fv(e,n,s){return s&&Ou(n)?V1:xs.current}function UM(e,n,s){{var c=e.stateNode;c.__reactInternalMemoizedUnmaskedChildContext=n,c.__reactInternalMemoizedMaskedChildContext=s}}function dv(e,n){{var s=e.type,c=s.contextTypes;if(!c)return zo;var v=e.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===n)return v.__reactInternalMemoizedMaskedChildContext;var m={};for(var C in c)m[C]=n[C];{var k=jt(e)||"Unknown";jl(c,m,"context",k)}return v&&UM(e,n,m),m}}function Hb(){return Tu.current}function Ou(e){{var n=e.childContextTypes;return n!=null}}function Wb(e){$a(Tu,e),$a(xs,e)}function H1(e){$a(Tu,e),$a(xs,e)}function BM(e,n,s){{if(xs.current!==zo)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");La(xs,n,e),La(Tu,s,e)}}function VM(e,n,s){{var c=e.stateNode,v=n.childContextTypes;if(typeof c.getChildContext!="function"){{var m=jt(e)||"Unknown";B1[m]||(B1[m]=!0,f("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",m,m))}return s}var C=c.getChildContext();for(var k in C)if(!(k in v))throw new Error((jt(e)||"Unknown")+'.getChildContext(): key "'+k+'" is not defined in childContextTypes.');{var M=jt(e)||"Unknown";jl(v,C,"child context",M)}return en({},s,C)}}function qb(e){{var n=e.stateNode,s=n&&n.__reactInternalMemoizedMergedChildContext||zo;return V1=xs.current,La(xs,s,e),La(Tu,Tu.current,e),!0}}function HM(e,n,s){{var c=e.stateNode;if(!c)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var v=VM(e,n,V1);c.__reactInternalMemoizedMergedChildContext=v,$a(Tu,e),$a(xs,e),La(xs,v,e),La(Tu,s,e)}else $a(Tu,e),La(Tu,s,e)}}function I6(e){{if(!rs(e)||e.tag!==S)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var n=e;do{switch(n.tag){case R:return n.stateNode.context;case S:{var s=n.type;if(Ou(s))return n.stateNode.__reactInternalMemoizedMergedChildContext;break}}n=n.return}while(n!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Cc=0,Kb=1,Rs=null,W1=!1,q1=!1;function WM(e){Rs===null?Rs=[e]:Rs.push(e)}function z6(e){W1=!0,WM(e)}function qM(){W1&&wc()}function wc(){if(!q1&&Rs!==null){q1=!0;var e=0,n=So();try{var s=!0,c=Rs;for(ii(sa);e<c.length;e++){var v=c[e];do v=v(s);while(v!==null)}Rs=null,W1=!1}catch(m){throw Rs!==null&&(Rs=Rs.slice(e+1)),Zh(gf,wc),m}finally{ii(n),q1=!1}}return null}var pv=[],vv=0,Yb=null,Gb=0,ul=[],sl=0,Zf=null,Ts=1,Os="";function j6(e){return td(),(e.flags&Jo)!==It}function U6(e){return td(),Gb}function B6(){var e=Os,n=Ts,s=n&~V6(n);return s.toString(32)+e}function ed(e,n){td(),pv[vv++]=Gb,pv[vv++]=Yb,Yb=e,Gb=n}function KM(e,n,s){td(),ul[sl++]=Ts,ul[sl++]=Os,ul[sl++]=Zf,Zf=e;var c=Ts,v=Os,m=Xb(c)-1,C=c&~(1<<m),k=s+1,M=Xb(n)+m;if(M>30){var j=m-m%5,q=(1<<j)-1,fe=(C&q).toString(32),se=C>>j,Te=m-j,Ne=Xb(n)+Te,Pe=k<<Te,ut=Pe|se,Wt=fe+v;Ts=1<<Ne|ut,Os=Wt}else{var Mt=k<<m,In=Mt|C,Tn=v;Ts=1<<M|In,Os=Tn}}function K1(e){td();var n=e.return;if(n!==null){var s=1,c=0;ed(e,s),KM(e,s,c)}}function Xb(e){return 32-ni(e)}function V6(e){return 1<<Xb(e)-1}function Y1(e){for(;e===Yb;)Yb=pv[--vv],pv[vv]=null,Gb=pv[--vv],pv[vv]=null;for(;e===Zf;)Zf=ul[--sl],ul[sl]=null,Os=ul[--sl],ul[sl]=null,Ts=ul[--sl],ul[sl]=null}function H6(){return td(),Zf!==null?{id:Ts,overflow:Os}:null}function W6(e,n){td(),ul[sl++]=Ts,ul[sl++]=Os,ul[sl++]=Zf,Ts=n.id,Os=n.overflow,Zf=e}function td(){va()||f("Expected to be hydrating. This is a bug in React. Please file an issue.")}var pa=null,cl=null,Ul=!1,nd=!1,xc=null;function q6(){Ul&&f("We should not be hydrating here. This is a bug in React. Please file a bug.")}function YM(){nd=!0}function K6(){return nd}function Y6(e){var n=e.stateNode.containerInfo;return cl=d6(n),pa=e,Ul=!0,xc=null,nd=!1,!0}function G6(e,n,s){return cl=p6(n),pa=e,Ul=!0,xc=null,nd=!1,s!==null&&W6(e,s),!0}function GM(e,n){switch(e.tag){case R:{w6(e.stateNode.containerInfo,n);break}case P:{var s=(e.mode&yn)!==zt;R6(e.type,e.memoizedProps,e.stateNode,n,s);break}case B:{var c=e.memoizedState;c.dehydrated!==null&&x6(c.dehydrated,n);break}}}function XM(e,n){GM(e,n);var s=ZW();s.stateNode=n,s.return=e;var c=e.deletions;c===null?(e.deletions=[s],e.flags|=po):c.push(s)}function G1(e,n){{if(nd)return;switch(e.tag){case R:{var s=e.stateNode.containerInfo;switch(n.tag){case P:var c=n.type;n.pendingProps,T6(s,c);break;case N:var v=n.pendingProps;O6(s,v);break}break}case P:{var m=e.type,C=e.memoizedProps,k=e.stateNode;switch(n.tag){case P:{var M=n.type,j=n.pendingProps,q=(e.mode&yn)!==zt;N6(m,C,k,M,j,q);break}case N:{var fe=n.pendingProps,se=(e.mode&yn)!==zt;D6(m,C,k,fe,se);break}}break}case B:{var Te=e.memoizedState,Ne=Te.dehydrated;if(Ne!==null)switch(n.tag){case P:var Pe=n.type;n.pendingProps,_6(Ne,Pe);break;case N:var ut=n.pendingProps;k6(Ne,ut);break}break}default:return}}}function QM(e,n){n.flags=n.flags&-4097|Wr,G1(e,n)}function JM(e,n){switch(e.tag){case P:{var s=e.type;e.pendingProps;var c=o6(n,s);return c!==null?(e.stateNode=c,pa=e,cl=f6(c),!0):!1}case N:{var v=e.pendingProps,m=l6(n,v);return m!==null?(e.stateNode=m,pa=e,cl=null,!0):!1}case B:{var C=u6(n);if(C!==null){var k={dehydrated:C,treeContext:H6(),retryLane:Ya};e.memoizedState=k;var M=e7(C);return M.return=e,e.child=M,pa=e,cl=null,!0}return!1}default:return!1}}function X1(e){return(e.mode&yn)!==zt&&(e.flags&$t)===It}function Q1(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function J1(e){if(Ul){var n=cl;if(!n){X1(e)&&(G1(pa,e),Q1()),QM(pa,e),Ul=!1,pa=e;return}var s=n;if(!JM(e,n)){X1(e)&&(G1(pa,e),Q1()),n=Km(s);var c=pa;if(!n||!JM(e,n)){QM(pa,e),Ul=!1,pa=e;return}XM(c,s)}}}function X6(e,n,s){var c=e.stateNode,v=!nd,m=v6(c,e.type,e.memoizedProps,n,s,e,v);return e.updateQueue=m,m!==null}function Q6(e){var n=e.stateNode,s=e.memoizedProps,c=h6(n,s,e);if(c){var v=pa;if(v!==null)switch(v.tag){case R:{var m=v.stateNode.containerInfo,C=(v.mode&yn)!==zt;E6(m,n,s,C);break}case P:{var k=v.type,M=v.memoizedProps,j=v.stateNode,q=(v.mode&yn)!==zt;C6(k,M,j,n,s,q);break}}}return c}function J6(e){var n=e.memoizedState,s=n!==null?n.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");m6(s,e)}function Z6(e){var n=e.memoizedState,s=n!==null?n.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return g6(s)}function ZM(e){for(var n=e.return;n!==null&&n.tag!==P&&n.tag!==R&&n.tag!==B;)n=n.return;pa=n}function Qb(e){if(e!==pa)return!1;if(!Ul)return ZM(e),Ul=!0,!1;if(e.tag!==R&&(e.tag!==P||S6(e.type)&&!P1(e.type,e.memoizedProps))){var n=cl;if(n)if(X1(e))eP(e),Q1();else for(;n;)XM(e,n),n=Km(n)}return ZM(e),e.tag===B?cl=Z6(e):cl=pa?Km(e.stateNode):null,!0}function e8(){return Ul&&cl!==null}function eP(e){for(var n=cl;n;)GM(e,n),n=Km(n)}function hv(){pa=null,cl=null,Ul=!1,nd=!1}function tP(){xc!==null&&(Y2(xc),xc=null)}function va(){return Ul}function Z1(e){xc===null?xc=[e]:xc.push(e)}var t8=i.ReactCurrentBatchConfig,n8=null;function r8(){return t8.transition}var Bl={recordUnsafeLifecycleWarnings:function(e,n){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,n){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var i8=function(e){for(var n=null,s=e;s!==null;)s.mode&hr&&(n=s),s=s.return;return n},rd=function(e){var n=[];return e.forEach(function(s){n.push(s)}),n.sort().join(", ")},Qm=[],Jm=[],Zm=[],eg=[],tg=[],ng=[],id=new Set;Bl.recordUnsafeLifecycleWarnings=function(e,n){id.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&Qm.push(e),e.mode&hr&&typeof n.UNSAFE_componentWillMount=="function"&&Jm.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Zm.push(e),e.mode&hr&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&eg.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&tg.push(e),e.mode&hr&&typeof n.UNSAFE_componentWillUpdate=="function"&&ng.push(e))},Bl.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Qm.length>0&&(Qm.forEach(function(se){e.add(jt(se)||"Component"),id.add(se.type)}),Qm=[]);var n=new Set;Jm.length>0&&(Jm.forEach(function(se){n.add(jt(se)||"Component"),id.add(se.type)}),Jm=[]);var s=new Set;Zm.length>0&&(Zm.forEach(function(se){s.add(jt(se)||"Component"),id.add(se.type)}),Zm=[]);var c=new Set;eg.length>0&&(eg.forEach(function(se){c.add(jt(se)||"Component"),id.add(se.type)}),eg=[]);var v=new Set;tg.length>0&&(tg.forEach(function(se){v.add(jt(se)||"Component"),id.add(se.type)}),tg=[]);var m=new Set;if(ng.length>0&&(ng.forEach(function(se){m.add(jt(se)||"Component"),id.add(se.type)}),ng=[]),n.size>0){var C=rd(n);f(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
101
|
-
|
|
102
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
103
|
-
|
|
104
|
-
Please update the following components: %s`,C)}if(c.size>0){var k=rd(c);f(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
105
|
-
|
|
106
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
107
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
108
|
-
|
|
109
|
-
Please update the following components: %s`,k)}if(m.size>0){var M=rd(m);f(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
110
|
-
|
|
111
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
112
|
-
|
|
113
|
-
Please update the following components: %s`,M)}if(e.size>0){var j=rd(e);p(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
114
|
-
|
|
115
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
116
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
117
|
-
|
|
118
|
-
Please update the following components: %s`,j)}if(s.size>0){var q=rd(s);p(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
119
|
-
|
|
120
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
121
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
122
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
123
|
-
|
|
124
|
-
Please update the following components: %s`,q)}if(v.size>0){var fe=rd(v);p(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
125
|
-
|
|
126
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
127
|
-
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
128
|
-
|
|
129
|
-
Please update the following components: %s`,fe)}};var Jb=new Map,nP=new Set;Bl.recordLegacyContextWarning=function(e,n){var s=i8(e);if(s===null){f("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!nP.has(e.type)){var c=Jb.get(s);(e.type.contextTypes!=null||e.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(c===void 0&&(c=[],Jb.set(s,c)),c.push(e))}},Bl.flushLegacyContextWarning=function(){Jb.forEach(function(e,n){if(e.length!==0){var s=e[0],c=new Set;e.forEach(function(m){c.add(jt(m)||"Component"),nP.add(m.type)});var v=rd(c);try{Hn(s),f(`Legacy context API has been detected within a strict-mode tree.
|
|
130
|
-
|
|
131
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
132
|
-
|
|
133
|
-
Please update the following components: %s
|
|
134
|
-
|
|
135
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)}finally{er()}}})},Bl.discardPendingWarnings=function(){Qm=[],Jm=[],Zm=[],eg=[],tg=[],ng=[],Jb=new Map}}var ex,tx,nx,rx,ix,rP=function(e,n){};ex=!1,tx=!1,nx={},rx={},ix={},rP=function(e,n){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var s=jt(n)||"Component";rx[s]||(rx[s]=!0,f('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function a8(e){return e.prototype&&e.prototype.isReactComponent}function rg(e,n,s){var c=s.ref;if(c!==null&&typeof c!="function"&&typeof c!="object"){if((e.mode&hr||ue)&&!(s._owner&&s._self&&s._owner.stateNode!==s._self)&&!(s._owner&&s._owner.tag!==S)&&!(typeof s.type=="function"&&!a8(s.type))&&s._owner){var v=jt(e)||"Component";nx[v]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',v,c),nx[v]=!0)}if(s._owner){var m=s._owner,C;if(m){var k=m;if(k.tag!==S)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");C=k.stateNode}if(!C)throw new Error("Missing owner for string ref "+c+". This error is likely caused by a bug in React. Please file an issue.");var M=C;cn(c,"ref");var j=""+c;if(n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===j)return n.ref;var q=function(fe){var se=M.refs;fe===null?delete se[j]:se[j]=fe};return q._stringRef=j,q}else{if(typeof c!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!s._owner)throw new Error("Element ref was specified as a string ("+c+`) but no owner was set. This could happen for one of the following reasons:
|
|
136
|
-
1. You may be adding a ref to a function component
|
|
137
|
-
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
138
|
-
3. You have multiple copies of React loaded
|
|
139
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return c}function Zb(e,n){var s=Object.prototype.toString.call(n);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function eS(e){{var n=jt(e)||"Component";if(ix[n])return;ix[n]=!0,f("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function iP(e){var n=e._payload,s=e._init;return s(n)}function aP(e){function n(Ee,Ae){if(e){var Ce=Ee.deletions;Ce===null?(Ee.deletions=[Ae],Ee.flags|=po):Ce.push(Ae)}}function s(Ee,Ae){if(!e)return null;for(var Ce=Ae;Ce!==null;)n(Ee,Ce),Ce=Ce.sibling;return null}function c(Ee,Ae){for(var Ce=new Map,Ye=Ae;Ye!==null;)Ye.key!==null?Ce.set(Ye.key,Ye):Ce.set(Ye.index,Ye),Ye=Ye.sibling;return Ce}function v(Ee,Ae){var Ce=pd(Ee,Ae);return Ce.index=0,Ce.sibling=null,Ce}function m(Ee,Ae,Ce){if(Ee.index=Ce,!e)return Ee.flags|=Jo,Ae;var Ye=Ee.alternate;if(Ye!==null){var vt=Ye.index;return vt<Ae?(Ee.flags|=Wr,Ae):vt}else return Ee.flags|=Wr,Ae}function C(Ee){return e&&Ee.alternate===null&&(Ee.flags|=Wr),Ee}function k(Ee,Ae,Ce,Ye){if(Ae===null||Ae.tag!==N){var vt=ZR(Ce,Ee.mode,Ye);return vt.return=Ee,vt}else{var ct=v(Ae,Ce);return ct.return=Ee,ct}}function M(Ee,Ae,Ce,Ye){var vt=Ce.type;if(vt===Nn)return q(Ee,Ae,Ce.props.children,Ye,Ce.key);if(Ae!==null&&(Ae.elementType===vt||cA(Ae,Ce)||typeof vt=="object"&&vt!==null&&vt.$$typeof===Nt&&iP(vt)===Ae.type)){var ct=v(Ae,Ce.props);return ct.ref=rg(Ee,Ae,Ce),ct.return=Ee,ct._debugSource=Ce._source,ct._debugOwner=Ce._owner,ct}var tn=JR(Ce,Ee.mode,Ye);return tn.ref=rg(Ee,Ae,Ce),tn.return=Ee,tn}function j(Ee,Ae,Ce,Ye){if(Ae===null||Ae.tag!==_||Ae.stateNode.containerInfo!==Ce.containerInfo||Ae.stateNode.implementation!==Ce.implementation){var vt=eT(Ce,Ee.mode,Ye);return vt.return=Ee,vt}else{var ct=v(Ae,Ce.children||[]);return ct.return=Ee,ct}}function q(Ee,Ae,Ce,Ye,vt){if(Ae===null||Ae.tag!==L){var ct=$c(Ce,Ee.mode,Ye,vt);return ct.return=Ee,ct}else{var tn=v(Ae,Ce);return tn.return=Ee,tn}}function fe(Ee,Ae,Ce){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"){var Ye=ZR(""+Ae,Ee.mode,Ce);return Ye.return=Ee,Ye}if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case qt:{var vt=JR(Ae,Ee.mode,Ce);return vt.ref=rg(Ee,null,Ae),vt.return=Ee,vt}case Qt:{var ct=eT(Ae,Ee.mode,Ce);return ct.return=Ee,ct}case Nt:{var tn=Ae._payload,ln=Ae._init;return fe(Ee,ln(tn),Ce)}}if(mn(Ae)||Vt(Ae)){var gr=$c(Ae,Ee.mode,Ce,null);return gr.return=Ee,gr}Zb(Ee,Ae)}return typeof Ae=="function"&&eS(Ee),null}function se(Ee,Ae,Ce,Ye){var vt=Ae!==null?Ae.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number")return vt!==null?null:k(Ee,Ae,""+Ce,Ye);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case qt:return Ce.key===vt?M(Ee,Ae,Ce,Ye):null;case Qt:return Ce.key===vt?j(Ee,Ae,Ce,Ye):null;case Nt:{var ct=Ce._payload,tn=Ce._init;return se(Ee,Ae,tn(ct),Ye)}}if(mn(Ce)||Vt(Ce))return vt!==null?null:q(Ee,Ae,Ce,Ye,null);Zb(Ee,Ce)}return typeof Ce=="function"&&eS(Ee),null}function Te(Ee,Ae,Ce,Ye,vt){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number"){var ct=Ee.get(Ce)||null;return k(Ae,ct,""+Ye,vt)}if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case qt:{var tn=Ee.get(Ye.key===null?Ce:Ye.key)||null;return M(Ae,tn,Ye,vt)}case Qt:{var ln=Ee.get(Ye.key===null?Ce:Ye.key)||null;return j(Ae,ln,Ye,vt)}case Nt:var gr=Ye._payload,Gn=Ye._init;return Te(Ee,Ae,Ce,Gn(gr),vt)}if(mn(Ye)||Vt(Ye)){var gi=Ee.get(Ce)||null;return q(Ae,gi,Ye,vt,null)}Zb(Ae,Ye)}return typeof Ye=="function"&&eS(Ae),null}function Ne(Ee,Ae,Ce){{if(typeof Ee!="object"||Ee===null)return Ae;switch(Ee.$$typeof){case qt:case Qt:rP(Ee,Ce);var Ye=Ee.key;if(typeof Ye!="string")break;if(Ae===null){Ae=new Set,Ae.add(Ye);break}if(!Ae.has(Ye)){Ae.add(Ye);break}f("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Ye);break;case Nt:var vt=Ee._payload,ct=Ee._init;Ne(ct(vt),Ae,Ce);break}}return Ae}function Pe(Ee,Ae,Ce,Ye){for(var vt=null,ct=0;ct<Ce.length;ct++){var tn=Ce[ct];vt=Ne(tn,vt,Ee)}for(var ln=null,gr=null,Gn=Ae,gi=0,Xn=0,li=null;Gn!==null&&Xn<Ce.length;Xn++){Gn.index>Xn?(li=Gn,Gn=null):li=Gn.sibling;var Ia=se(Ee,Gn,Ce[Xn],Ye);if(Ia===null){Gn===null&&(Gn=li);break}e&&Gn&&Ia.alternate===null&&n(Ee,Gn),gi=m(Ia,gi,Xn),gr===null?ln=Ia:gr.sibling=Ia,gr=Ia,Gn=li}if(Xn===Ce.length){if(s(Ee,Gn),va()){var Ea=Xn;ed(Ee,Ea)}return ln}if(Gn===null){for(;Xn<Ce.length;Xn++){var Uo=fe(Ee,Ce[Xn],Ye);Uo!==null&&(gi=m(Uo,gi,Xn),gr===null?ln=Uo:gr.sibling=Uo,gr=Uo)}if(va()){var eo=Xn;ed(Ee,eo)}return ln}for(var to=c(Ee,Gn);Xn<Ce.length;Xn++){var za=Te(to,Ee,Xn,Ce[Xn],Ye);za!==null&&(e&&za.alternate!==null&&to.delete(za.key===null?Xn:za.key),gi=m(za,gi,Xn),gr===null?ln=za:gr.sibling=za,gr=za)}if(e&&to.forEach(function(Av){return n(Ee,Av)}),va()){var As=Xn;ed(Ee,As)}return ln}function ut(Ee,Ae,Ce,Ye){var vt=Vt(Ce);if(typeof vt!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&Ce[Symbol.toStringTag]==="Generator"&&(tx||f("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),tx=!0),Ce.entries===vt&&(ex||f("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ex=!0);var ct=vt.call(Ce);if(ct)for(var tn=null,ln=ct.next();!ln.done;ln=ct.next()){var gr=ln.value;tn=Ne(gr,tn,Ee)}}var Gn=vt.call(Ce);if(Gn==null)throw new Error("An iterable object provided no iterator.");for(var gi=null,Xn=null,li=Ae,Ia=0,Ea=0,Uo=null,eo=Gn.next();li!==null&&!eo.done;Ea++,eo=Gn.next()){li.index>Ea?(Uo=li,li=null):Uo=li.sibling;var to=se(Ee,li,eo.value,Ye);if(to===null){li===null&&(li=Uo);break}e&&li&&to.alternate===null&&n(Ee,li),Ia=m(to,Ia,Ea),Xn===null?gi=to:Xn.sibling=to,Xn=to,li=Uo}if(eo.done){if(s(Ee,li),va()){var za=Ea;ed(Ee,za)}return gi}if(li===null){for(;!eo.done;Ea++,eo=Gn.next()){var As=fe(Ee,eo.value,Ye);As!==null&&(Ia=m(As,Ia,Ea),Xn===null?gi=As:Xn.sibling=As,Xn=As)}if(va()){var Av=Ea;ed(Ee,Av)}return gi}for(var $g=c(Ee,li);!eo.done;Ea++,eo=Gn.next()){var $u=Te($g,Ee,Ea,eo.value,Ye);$u!==null&&(e&&$u.alternate!==null&&$g.delete($u.key===null?Ea:$u.key),Ia=m($u,Ia,Ea),Xn===null?gi=$u:Xn.sibling=$u,Xn=$u)}if(e&&$g.forEach(function(D7){return n(Ee,D7)}),va()){var N7=Ea;ed(Ee,N7)}return gi}function Wt(Ee,Ae,Ce,Ye){if(Ae!==null&&Ae.tag===N){s(Ee,Ae.sibling);var vt=v(Ae,Ce);return vt.return=Ee,vt}s(Ee,Ae);var ct=ZR(Ce,Ee.mode,Ye);return ct.return=Ee,ct}function Mt(Ee,Ae,Ce,Ye){for(var vt=Ce.key,ct=Ae;ct!==null;){if(ct.key===vt){var tn=Ce.type;if(tn===Nn){if(ct.tag===L){s(Ee,ct.sibling);var ln=v(ct,Ce.props.children);return ln.return=Ee,ln._debugSource=Ce._source,ln._debugOwner=Ce._owner,ln}}else if(ct.elementType===tn||cA(ct,Ce)||typeof tn=="object"&&tn!==null&&tn.$$typeof===Nt&&iP(tn)===ct.type){s(Ee,ct.sibling);var gr=v(ct,Ce.props);return gr.ref=rg(Ee,ct,Ce),gr.return=Ee,gr._debugSource=Ce._source,gr._debugOwner=Ce._owner,gr}s(Ee,ct);break}else n(Ee,ct);ct=ct.sibling}if(Ce.type===Nn){var Gn=$c(Ce.props.children,Ee.mode,Ye,Ce.key);return Gn.return=Ee,Gn}else{var gi=JR(Ce,Ee.mode,Ye);return gi.ref=rg(Ee,Ae,Ce),gi.return=Ee,gi}}function In(Ee,Ae,Ce,Ye){for(var vt=Ce.key,ct=Ae;ct!==null;){if(ct.key===vt)if(ct.tag===_&&ct.stateNode.containerInfo===Ce.containerInfo&&ct.stateNode.implementation===Ce.implementation){s(Ee,ct.sibling);var tn=v(ct,Ce.children||[]);return tn.return=Ee,tn}else{s(Ee,ct);break}else n(Ee,ct);ct=ct.sibling}var ln=eT(Ce,Ee.mode,Ye);return ln.return=Ee,ln}function Tn(Ee,Ae,Ce,Ye){var vt=typeof Ce=="object"&&Ce!==null&&Ce.type===Nn&&Ce.key===null;if(vt&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case qt:return C(Mt(Ee,Ae,Ce,Ye));case Qt:return C(In(Ee,Ae,Ce,Ye));case Nt:var ct=Ce._payload,tn=Ce._init;return Tn(Ee,Ae,tn(ct),Ye)}if(mn(Ce))return Pe(Ee,Ae,Ce,Ye);if(Vt(Ce))return ut(Ee,Ae,Ce,Ye);Zb(Ee,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"?C(Wt(Ee,Ae,""+Ce,Ye)):(typeof Ce=="function"&&eS(Ee),s(Ee,Ae))}return Tn}var mv=aP(!0),oP=aP(!1);function o8(e,n){if(e!==null&&n.child!==e.child)throw new Error("Resuming work not yet implemented.");if(n.child!==null){var s=n.child,c=pd(s,s.pendingProps);for(n.child=c,c.return=n;s.sibling!==null;)s=s.sibling,c=c.sibling=pd(s,s.pendingProps),c.return=n;c.sibling=null}}function l8(e,n){for(var s=e.child;s!==null;)YW(s,n),s=s.sibling}var ax=Ec(null),ox;ox={};var tS=null,gv=null,lx=null,nS=!1;function rS(){tS=null,gv=null,lx=null,nS=!1}function lP(){nS=!0}function uP(){nS=!1}function sP(e,n,s){La(ax,n._currentValue,e),n._currentValue=s,n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==ox&&f("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=ox}function ux(e,n){var s=ax.current;$a(ax,n),e._currentValue=s}function sx(e,n,s){for(var c=e;c!==null;){var v=c.alternate;if(ms(c.childLanes,n)?v!==null&&!ms(v.childLanes,n)&&(v.childLanes=fn(v.childLanes,n)):(c.childLanes=fn(c.childLanes,n),v!==null&&(v.childLanes=fn(v.childLanes,n))),c===s)break;c=c.return}c!==s&&f("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function u8(e,n,s){s8(e,n,s)}function s8(e,n,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var v=void 0,m=c.dependencies;if(m!==null){v=c.child;for(var C=m.firstContext;C!==null;){if(C.context===n){if(c.tag===S){var k=Df(s),M=_s(br,k);M.tag=aS;var j=c.updateQueue;if(j!==null){var q=j.shared,fe=q.pending;fe===null?M.next=M:(M.next=fe.next,fe.next=M),q.pending=M}}c.lanes=fn(c.lanes,s);var se=c.alternate;se!==null&&(se.lanes=fn(se.lanes,s)),sx(c.return,s,e),m.lanes=fn(m.lanes,s);break}C=C.next}}else if(c.tag===I)v=c.type===e.type?null:c.child;else if(c.tag===Y){var Te=c.return;if(Te===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");Te.lanes=fn(Te.lanes,s);var Ne=Te.alternate;Ne!==null&&(Ne.lanes=fn(Ne.lanes,s)),sx(Te,s,e),v=c.sibling}else v=c.child;if(v!==null)v.return=c;else for(v=c;v!==null;){if(v===e){v=null;break}var Pe=v.sibling;if(Pe!==null){Pe.return=v.return,v=Pe;break}v=v.return}c=v}}function yv(e,n){tS=e,gv=null,lx=null;var s=e.dependencies;if(s!==null){var c=s.firstContext;c!==null&&(Da(s.lanes,n)&&yg(),s.firstContext=null)}}function _i(e){nS&&f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var n=e._currentValue;if(lx!==e){var s={context:e,memoizedValue:n,next:null};if(gv===null){if(tS===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");gv=s,tS.dependencies={lanes:je,firstContext:s}}else gv=gv.next=s}return n}var ad=null;function cx(e){ad===null?ad=[e]:ad.push(e)}function c8(){if(ad!==null){for(var e=0;e<ad.length;e++){var n=ad[e],s=n.interleaved;if(s!==null){n.interleaved=null;var c=s.next,v=n.pending;if(v!==null){var m=v.next;v.next=c,s.next=m}n.pending=s}}ad=null}}function cP(e,n,s,c){var v=n.interleaved;return v===null?(s.next=s,cx(n)):(s.next=v.next,v.next=s),n.interleaved=s,iS(e,c)}function f8(e,n,s,c){var v=n.interleaved;v===null?(s.next=s,cx(n)):(s.next=v.next,v.next=s),n.interleaved=s}function d8(e,n,s,c){var v=n.interleaved;return v===null?(s.next=s,cx(n)):(s.next=v.next,v.next=s),n.interleaved=s,iS(e,c)}function wo(e,n){return iS(e,n)}var p8=iS;function iS(e,n){e.lanes=fn(e.lanes,n);var s=e.alternate;s!==null&&(s.lanes=fn(s.lanes,n)),s===null&&(e.flags&(Wr|vo))!==It&&oA(e);for(var c=e,v=e.return;v!==null;)v.childLanes=fn(v.childLanes,n),s=v.alternate,s!==null?s.childLanes=fn(s.childLanes,n):(v.flags&(Wr|vo))!==It&&oA(e),c=v,v=v.return;if(c.tag===R){var m=c.stateNode;return m}else return null}var fP=0,dP=1,aS=2,fx=3,oS=!1,dx,lS;dx=!1,lS=null;function px(e){var n={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:je},effects:null};e.updateQueue=n}function pP(e,n){var s=n.updateQueue,c=e.updateQueue;if(s===c){var v={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects};n.updateQueue=v}}function _s(e,n){var s={eventTime:e,lane:n,tag:fP,payload:null,callback:null,next:null};return s}function Rc(e,n,s){var c=e.updateQueue;if(c===null)return null;var v=c.shared;if(lS===v&&!dx&&(f("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),dx=!0),fW()){var m=v.pending;return m===null?n.next=n:(n.next=m.next,m.next=n),v.pending=n,p8(e,s)}else return d8(e,v,n,s)}function uS(e,n,s){var c=n.updateQueue;if(c!==null){var v=c.shared;if(mm(s)){var m=v.lanes;m=ym(m,e.pendingLanes);var C=fn(m,s);v.lanes=C,Hp(e,C)}}}function vx(e,n){var s=e.updateQueue,c=e.alternate;if(c!==null){var v=c.updateQueue;if(s===v){var m=null,C=null,k=s.firstBaseUpdate;if(k!==null){var M=k;do{var j={eventTime:M.eventTime,lane:M.lane,tag:M.tag,payload:M.payload,callback:M.callback,next:null};C===null?m=C=j:(C.next=j,C=j),M=M.next}while(M!==null);C===null?m=C=n:(C.next=n,C=n)}else m=C=n;s={baseState:v.baseState,firstBaseUpdate:m,lastBaseUpdate:C,shared:v.shared,effects:v.effects},e.updateQueue=s;return}}var q=s.lastBaseUpdate;q===null?s.firstBaseUpdate=n:q.next=n,s.lastBaseUpdate=n}function v8(e,n,s,c,v,m){switch(s.tag){case dP:{var C=s.payload;if(typeof C=="function"){lP();var k=C.call(m,c,v);{if(e.mode&hr){Ir(!0);try{C.call(m,c,v)}finally{Ir(!1)}}uP()}return k}return C}case fx:e.flags=e.flags&-65537|$t;case fP:{var M=s.payload,j;if(typeof M=="function"){lP(),j=M.call(m,c,v);{if(e.mode&hr){Ir(!0);try{M.call(m,c,v)}finally{Ir(!1)}}uP()}}else j=M;return j==null?c:en({},c,j)}case aS:return oS=!0,c}return c}function sS(e,n,s,c){var v=e.updateQueue;oS=!1,lS=v.shared;var m=v.firstBaseUpdate,C=v.lastBaseUpdate,k=v.shared.pending;if(k!==null){v.shared.pending=null;var M=k,j=M.next;M.next=null,C===null?m=j:C.next=j,C=M;var q=e.alternate;if(q!==null){var fe=q.updateQueue,se=fe.lastBaseUpdate;se!==C&&(se===null?fe.firstBaseUpdate=j:se.next=j,fe.lastBaseUpdate=M)}}if(m!==null){var Te=v.baseState,Ne=je,Pe=null,ut=null,Wt=null,Mt=m;do{var In=Mt.lane,Tn=Mt.eventTime;if(ms(c,In)){if(Wt!==null){var Ae={eventTime:Tn,lane:Wn,tag:Mt.tag,payload:Mt.payload,callback:Mt.callback,next:null};Wt=Wt.next=Ae}Te=v8(e,v,Mt,Te,n,s);var Ce=Mt.callback;if(Ce!==null&&Mt.lane!==Wn){e.flags|=xr;var Ye=v.effects;Ye===null?v.effects=[Mt]:Ye.push(Mt)}}else{var Ee={eventTime:Tn,lane:In,tag:Mt.tag,payload:Mt.payload,callback:Mt.callback,next:null};Wt===null?(ut=Wt=Ee,Pe=Te):Wt=Wt.next=Ee,Ne=fn(Ne,In)}if(Mt=Mt.next,Mt===null){if(k=v.shared.pending,k===null)break;var vt=k,ct=vt.next;vt.next=null,Mt=ct,v.lastBaseUpdate=vt,v.shared.pending=null}}while(!0);Wt===null&&(Pe=Te),v.baseState=Pe,v.firstBaseUpdate=ut,v.lastBaseUpdate=Wt;var tn=v.shared.interleaved;if(tn!==null){var ln=tn;do Ne=fn(Ne,ln.lane),ln=ln.next;while(ln!==tn)}else m===null&&(v.shared.lanes=je);Ng(Ne),e.lanes=Ne,e.memoizedState=Te}lS=null}function h8(e,n){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(n)}function vP(){oS=!1}function cS(){return oS}function hP(e,n,s){var c=n.effects;if(n.effects=null,c!==null)for(var v=0;v<c.length;v++){var m=c[v],C=m.callback;C!==null&&(m.callback=null,h8(C,s))}}var ig={},Tc=Ec(ig),ag=Ec(ig),fS=Ec(ig);function dS(e){if(e===ig)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function mP(){var e=dS(fS.current);return e}function hx(e,n){La(fS,n,e),La(ag,e,e),La(Tc,ig,e);var s=MH(n);$a(Tc,e),La(Tc,s,e)}function bv(e){$a(Tc,e),$a(ag,e),$a(fS,e)}function mx(){var e=dS(Tc.current);return e}function gP(e){dS(fS.current);var n=dS(Tc.current),s=PH(n,e.type);n!==s&&(La(ag,e,e),La(Tc,s,e))}function gx(e){ag.current===e&&($a(Tc,e),$a(ag,e))}var m8=0,yP=1,bP=1,og=2,Vl=Ec(m8);function yx(e,n){return(e&n)!==0}function Sv(e){return e&yP}function bx(e,n){return e&yP|n}function g8(e,n){return e|n}function Oc(e,n){La(Vl,n,e)}function Ev(e){$a(Vl,e)}function y8(e,n){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function pS(e){for(var n=e;n!==null;){if(n.tag===B){var s=n.memoizedState;if(s!==null){var c=s.dehydrated;if(c===null||LM(c)||F1(c))return n}}else if(n.tag===J&&n.memoizedProps.revealOrder!==void 0){var v=(n.flags&$t)!==It;if(v)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return null;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var xo=0,Ui=1,_u=2,Bi=4,ha=8,Sx=[];function Ex(){for(var e=0;e<Sx.length;e++){var n=Sx[e];n._workInProgressVersionPrimary=null}Sx.length=0}function b8(e,n){var s=n._getVersion,c=s(n._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,c]:e.mutableSourceEagerHydrationData.push(n,c)}var pt=i.ReactCurrentDispatcher,lg=i.ReactCurrentBatchConfig,Cx,Cv;Cx=new Set;var od=je,mr=null,Vi=null,Hi=null,vS=!1,ug=!1,sg=0,S8=0,E8=25,Fe=null,fl=null,_c=-1,wx=!1;function ir(){{var e=Fe;fl===null?fl=[e]:fl.push(e)}}function it(){{var e=Fe;fl!==null&&(_c++,fl[_c]!==e&&C8(e))}}function wv(e){e!=null&&!mn(e)&&f("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Fe,typeof e)}function C8(e){{var n=jt(mr);if(!Cx.has(n)&&(Cx.add(n),fl!==null)){for(var s="",c=30,v=0;v<=_c;v++){for(var m=fl[v],C=v===_c?e:m,k=v+1+". "+m;k.length<c;)k+=" ";k+=C+`
|
|
140
|
-
`,s+=k}f(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
141
|
-
|
|
142
|
-
Previous render Next render
|
|
143
|
-
------------------------------------------------------
|
|
144
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
145
|
-
`,n,s)}}}function Fa(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
146
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
147
|
-
2. You might be breaking the Rules of Hooks
|
|
148
|
-
3. You might have more than one copy of React in the same app
|
|
149
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function xx(e,n){if(wx)return!1;if(n===null)return f("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Fe),!1;e.length!==n.length&&f(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
150
|
-
|
|
151
|
-
Previous: %s
|
|
152
|
-
Incoming: %s`,Fe,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<n.length&&s<e.length;s++)if(!He(e[s],n[s]))return!1;return!0}function xv(e,n,s,c,v,m){od=m,mr=n,fl=e!==null?e._debugHookTypes:null,_c=-1,wx=e!==null&&e.type!==n.type,n.memoizedState=null,n.updateQueue=null,n.lanes=je,e!==null&&e.memoizedState!==null?pt.current=UP:fl!==null?pt.current=jP:pt.current=zP;var C=s(c,v);if(ug){var k=0;do{if(ug=!1,sg=0,k>=E8)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");k+=1,wx=!1,Vi=null,Hi=null,n.updateQueue=null,_c=-1,pt.current=BP,C=s(c,v)}while(ug)}pt.current=OS,n._debugHookTypes=fl;var M=Vi!==null&&Vi.next!==null;if(od=je,mr=null,Vi=null,Hi=null,Fe=null,fl=null,_c=-1,e!==null&&(e.flags&ti)!==(n.flags&ti)&&(e.mode&yn)!==zt&&f("Internal React error: Expected static flag was missing. Please notify the React team."),vS=!1,M)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return C}function Rv(){var e=sg!==0;return sg=0,e}function SP(e,n,s){n.updateQueue=e.updateQueue,(n.mode&Kn)!==zt?n.flags&=-50333701:n.flags&=-2053,e.lanes=Mf(e.lanes,s)}function EP(){if(pt.current=OS,vS){for(var e=mr.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}vS=!1}od=je,mr=null,Vi=null,Hi=null,fl=null,_c=-1,Fe=null,AP=!1,ug=!1,sg=0}function ku(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hi===null?mr.memoizedState=Hi=e:Hi=Hi.next=e,Hi}function dl(){var e;if(Vi===null){var n=mr.alternate;n!==null?e=n.memoizedState:e=null}else e=Vi.next;var s;if(Hi===null?s=mr.memoizedState:s=Hi.next,s!==null)Hi=s,s=Hi.next,Vi=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");Vi=e;var c={memoizedState:Vi.memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null};Hi===null?mr.memoizedState=Hi=c:Hi=Hi.next=c}return Hi}function CP(){return{lastEffect:null,stores:null}}function Rx(e,n){return typeof n=="function"?n(e):n}function Tx(e,n,s){var c=ku(),v;s!==void 0?v=s(n):v=n,c.memoizedState=c.baseState=v;var m={pending:null,interleaved:null,lanes:je,dispatch:null,lastRenderedReducer:e,lastRenderedState:v};c.queue=m;var C=m.dispatch=T8.bind(null,mr,m);return[c.memoizedState,C]}function Ox(e,n,s){var c=dl(),v=c.queue;if(v===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");v.lastRenderedReducer=e;var m=Vi,C=m.baseQueue,k=v.pending;if(k!==null){if(C!==null){var M=C.next,j=k.next;C.next=j,k.next=M}m.baseQueue!==C&&f("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),m.baseQueue=C=k,v.pending=null}if(C!==null){var q=C.next,fe=m.baseState,se=null,Te=null,Ne=null,Pe=q;do{var ut=Pe.lane;if(ms(od,ut)){if(Ne!==null){var Mt={lane:Wn,action:Pe.action,hasEagerState:Pe.hasEagerState,eagerState:Pe.eagerState,next:null};Ne=Ne.next=Mt}if(Pe.hasEagerState)fe=Pe.eagerState;else{var In=Pe.action;fe=e(fe,In)}}else{var Wt={lane:ut,action:Pe.action,hasEagerState:Pe.hasEagerState,eagerState:Pe.eagerState,next:null};Ne===null?(Te=Ne=Wt,se=fe):Ne=Ne.next=Wt,mr.lanes=fn(mr.lanes,ut),Ng(ut)}Pe=Pe.next}while(Pe!==null&&Pe!==q);Ne===null?se=fe:Ne.next=Te,He(fe,c.memoizedState)||yg(),c.memoizedState=fe,c.baseState=se,c.baseQueue=Ne,v.lastRenderedState=fe}var Tn=v.interleaved;if(Tn!==null){var Ee=Tn;do{var Ae=Ee.lane;mr.lanes=fn(mr.lanes,Ae),Ng(Ae),Ee=Ee.next}while(Ee!==Tn)}else C===null&&(v.lanes=je);var Ce=v.dispatch;return[c.memoizedState,Ce]}function _x(e,n,s){var c=dl(),v=c.queue;if(v===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");v.lastRenderedReducer=e;var m=v.dispatch,C=v.pending,k=c.memoizedState;if(C!==null){v.pending=null;var M=C.next,j=M;do{var q=j.action;k=e(k,q),j=j.next}while(j!==M);He(k,c.memoizedState)||yg(),c.memoizedState=k,c.baseQueue===null&&(c.baseState=k),v.lastRenderedState=k}return[k,m]}function aq(e,n,s){}function oq(e,n,s){}function kx(e,n,s){var c=mr,v=ku(),m,C=va();if(C){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");m=s(),Cv||m!==s()&&(f("The result of getServerSnapshot should be cached to avoid an infinite loop"),Cv=!0)}else{if(m=n(),!Cv){var k=n();He(m,k)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),Cv=!0)}var M=qS();if(M===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Bp(M,od)||wP(c,n,m)}v.memoizedState=m;var j={value:m,getSnapshot:n};return v.queue=j,bS(RP.bind(null,c,j,e),[e]),c.flags|=Ta,cg(Ui|ha,xP.bind(null,c,j,m,n),void 0,null),m}function hS(e,n,s){var c=mr,v=dl(),m=n();if(!Cv){var C=n();He(m,C)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),Cv=!0)}var k=v.memoizedState,M=!He(k,m);M&&(v.memoizedState=m,yg());var j=v.queue;if(dg(RP.bind(null,c,j,e),[e]),j.getSnapshot!==n||M||Hi!==null&&Hi.memoizedState.tag&Ui){c.flags|=Ta,cg(Ui|ha,xP.bind(null,c,j,m,n),void 0,null);var q=qS();if(q===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Bp(q,od)||wP(c,n,m)}return m}function wP(e,n,s){e.flags|=ac;var c={getSnapshot:n,value:s},v=mr.updateQueue;if(v===null)v=CP(),mr.updateQueue=v,v.stores=[c];else{var m=v.stores;m===null?v.stores=[c]:m.push(c)}}function xP(e,n,s,c){n.value=s,n.getSnapshot=c,TP(n)&&OP(e)}function RP(e,n,s){var c=function(){TP(n)&&OP(e)};return s(c)}function TP(e){var n=e.getSnapshot,s=e.value;try{var c=n();return!He(s,c)}catch{return!0}}function OP(e){var n=wo(e,Jt);n!==null&&Yi(n,e,Jt,br)}function mS(e){var n=ku();typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e;var s={pending:null,interleaved:null,lanes:je,dispatch:null,lastRenderedReducer:Rx,lastRenderedState:e};n.queue=s;var c=s.dispatch=O8.bind(null,mr,s);return[n.memoizedState,c]}function Nx(e){return Ox(Rx)}function Dx(e){return _x(Rx)}function cg(e,n,s,c){var v={tag:e,create:n,destroy:s,deps:c,next:null},m=mr.updateQueue;if(m===null)m=CP(),mr.updateQueue=m,m.lastEffect=v.next=v;else{var C=m.lastEffect;if(C===null)m.lastEffect=v.next=v;else{var k=C.next;C.next=v,v.next=k,m.lastEffect=v}}return v}function Mx(e){var n=ku();{var s={current:e};return n.memoizedState=s,s}}function gS(e){var n=dl();return n.memoizedState}function fg(e,n,s,c){var v=ku(),m=c===void 0?null:c;mr.flags|=e,v.memoizedState=cg(Ui|n,s,void 0,m)}function yS(e,n,s,c){var v=dl(),m=c===void 0?null:c,C=void 0;if(Vi!==null){var k=Vi.memoizedState;if(C=k.destroy,m!==null){var M=k.deps;if(xx(m,M)){v.memoizedState=cg(n,s,C,m);return}}}mr.flags|=e,v.memoizedState=cg(Ui|n,s,C,m)}function bS(e,n){return(mr.mode&Kn)!==zt?fg(Zo|Ta|hp,ha,e,n):fg(Ta|hp,ha,e,n)}function dg(e,n){return yS(Ta,ha,e,n)}function Px(e,n){return fg($n,_u,e,n)}function SS(e,n){return yS($n,_u,e,n)}function Ax(e,n){var s=$n;return s|=Dl,(mr.mode&Kn)!==zt&&(s|=cu),fg(s,Bi,e,n)}function ES(e,n){return yS($n,Bi,e,n)}function _P(e,n){if(typeof n=="function"){var s=n,c=e();return s(c),function(){s(null)}}else if(n!=null){var v=n;v.hasOwnProperty("current")||f("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(v).join(", ")+"}");var m=e();return v.current=m,function(){v.current=null}}}function $x(e,n,s){typeof n!="function"&&f("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null");var c=s!=null?s.concat([e]):null,v=$n;return v|=Dl,(mr.mode&Kn)!==zt&&(v|=cu),fg(v,Bi,_P.bind(null,n,e),c)}function CS(e,n,s){typeof n!="function"&&f("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null");var c=s!=null?s.concat([e]):null;return yS($n,Bi,_P.bind(null,n,e),c)}function w8(e,n){}var wS=w8;function Lx(e,n){var s=ku(),c=n===void 0?null:n;return s.memoizedState=[e,c],e}function xS(e,n){var s=dl(),c=n===void 0?null:n,v=s.memoizedState;if(v!==null&&c!==null){var m=v[1];if(xx(c,m))return v[0]}return s.memoizedState=[e,c],e}function Fx(e,n){var s=ku(),c=n===void 0?null:n,v=e();return s.memoizedState=[v,c],v}function RS(e,n){var s=dl(),c=n===void 0?null:n,v=s.memoizedState;if(v!==null&&c!==null){var m=v[1];if(xx(c,m))return v[0]}var C=e();return s.memoizedState=[C,c],C}function Ix(e){var n=ku();return n.memoizedState=e,e}function kP(e){var n=dl(),s=Vi,c=s.memoizedState;return DP(n,c,e)}function NP(e){var n=dl();if(Vi===null)return n.memoizedState=e,e;var s=Vi.memoizedState;return DP(n,s,e)}function DP(e,n,s){var c=!vm(od);if(c){if(!He(s,n)){var v=gm();mr.lanes=fn(mr.lanes,v),Ng(v),e.baseState=!0}return n}else return e.baseState&&(e.baseState=!1,yg()),e.memoizedState=s,s}function x8(e,n,s){var c=So();ii(nb(c,rl)),e(!0);var v=lg.transition;lg.transition={};var m=lg.transition;lg.transition._updatedFibers=new Set;try{e(!1),n()}finally{if(ii(c),lg.transition=v,v===null&&m._updatedFibers){var C=m._updatedFibers.size;C>10&&p("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),m._updatedFibers.clear()}}}function zx(){var e=mS(!1),n=e[0],s=e[1],c=x8.bind(null,s),v=ku();return v.memoizedState=c,[n,c]}function MP(){var e=Nx(),n=e[0],s=dl(),c=s.memoizedState;return[n,c]}function PP(){var e=Dx(),n=e[0],s=dl(),c=s.memoizedState;return[n,c]}var AP=!1;function R8(){return AP}function jx(){var e=ku(),n=qS(),s=n.identifierPrefix,c;if(va()){var v=B6();c=":"+s+"R"+v;var m=sg++;m>0&&(c+="H"+m.toString(32)),c+=":"}else{var C=S8++;c=":"+s+"r"+C.toString(32)+":"}return e.memoizedState=c,c}function TS(){var e=dl(),n=e.memoizedState;return n}function T8(e,n,s){typeof arguments[3]=="function"&&f("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var c=Pc(e),v={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if($P(e))LP(n,v);else{var m=cP(e,n,v,c);if(m!==null){var C=Za();Yi(m,e,c,C),FP(m,n,c)}}IP(e,c)}function O8(e,n,s){typeof arguments[3]=="function"&&f("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var c=Pc(e),v={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if($P(e))LP(n,v);else{var m=e.alternate;if(e.lanes===je&&(m===null||m.lanes===je)){var C=n.lastRenderedReducer;if(C!==null){var k;k=pt.current,pt.current=Hl;try{var M=n.lastRenderedState,j=C(M,s);if(v.hasEagerState=!0,v.eagerState=j,He(j,M)){f8(e,n,v,c);return}}catch{}finally{pt.current=k}}}var q=cP(e,n,v,c);if(q!==null){var fe=Za();Yi(q,e,c,fe),FP(q,n,c)}}IP(e,c)}function $P(e){var n=e.alternate;return e===mr||n!==null&&n===mr}function LP(e,n){ug=vS=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function FP(e,n,s){if(mm(s)){var c=n.lanes;c=ym(c,e.pendingLanes);var v=fn(c,s);n.lanes=v,Hp(e,v)}}function IP(e,n,s){Cf(e,n)}var OS={readContext:_i,useCallback:Fa,useContext:Fa,useEffect:Fa,useImperativeHandle:Fa,useInsertionEffect:Fa,useLayoutEffect:Fa,useMemo:Fa,useReducer:Fa,useRef:Fa,useState:Fa,useDebugValue:Fa,useDeferredValue:Fa,useTransition:Fa,useMutableSource:Fa,useSyncExternalStore:Fa,useId:Fa,unstable_isNewReconciler:le},zP=null,jP=null,UP=null,BP=null,Nu=null,Hl=null,_S=null;{var Ux=function(){f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},on=function(){f("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};zP={readContext:function(e){return _i(e)},useCallback:function(e,n){return Fe="useCallback",ir(),wv(n),Lx(e,n)},useContext:function(e){return Fe="useContext",ir(),_i(e)},useEffect:function(e,n){return Fe="useEffect",ir(),wv(n),bS(e,n)},useImperativeHandle:function(e,n,s){return Fe="useImperativeHandle",ir(),wv(s),$x(e,n,s)},useInsertionEffect:function(e,n){return Fe="useInsertionEffect",ir(),wv(n),Px(e,n)},useLayoutEffect:function(e,n){return Fe="useLayoutEffect",ir(),wv(n),Ax(e,n)},useMemo:function(e,n){Fe="useMemo",ir(),wv(n);var s=pt.current;pt.current=Nu;try{return Fx(e,n)}finally{pt.current=s}},useReducer:function(e,n,s){Fe="useReducer",ir();var c=pt.current;pt.current=Nu;try{return Tx(e,n,s)}finally{pt.current=c}},useRef:function(e){return Fe="useRef",ir(),Mx(e)},useState:function(e){Fe="useState",ir();var n=pt.current;pt.current=Nu;try{return mS(e)}finally{pt.current=n}},useDebugValue:function(e,n){return Fe="useDebugValue",ir(),void 0},useDeferredValue:function(e){return Fe="useDeferredValue",ir(),Ix(e)},useTransition:function(){return Fe="useTransition",ir(),zx()},useMutableSource:function(e,n,s){return Fe="useMutableSource",ir(),void 0},useSyncExternalStore:function(e,n,s){return Fe="useSyncExternalStore",ir(),kx(e,n,s)},useId:function(){return Fe="useId",ir(),jx()},unstable_isNewReconciler:le},jP={readContext:function(e){return _i(e)},useCallback:function(e,n){return Fe="useCallback",it(),Lx(e,n)},useContext:function(e){return Fe="useContext",it(),_i(e)},useEffect:function(e,n){return Fe="useEffect",it(),bS(e,n)},useImperativeHandle:function(e,n,s){return Fe="useImperativeHandle",it(),$x(e,n,s)},useInsertionEffect:function(e,n){return Fe="useInsertionEffect",it(),Px(e,n)},useLayoutEffect:function(e,n){return Fe="useLayoutEffect",it(),Ax(e,n)},useMemo:function(e,n){Fe="useMemo",it();var s=pt.current;pt.current=Nu;try{return Fx(e,n)}finally{pt.current=s}},useReducer:function(e,n,s){Fe="useReducer",it();var c=pt.current;pt.current=Nu;try{return Tx(e,n,s)}finally{pt.current=c}},useRef:function(e){return Fe="useRef",it(),Mx(e)},useState:function(e){Fe="useState",it();var n=pt.current;pt.current=Nu;try{return mS(e)}finally{pt.current=n}},useDebugValue:function(e,n){return Fe="useDebugValue",it(),void 0},useDeferredValue:function(e){return Fe="useDeferredValue",it(),Ix(e)},useTransition:function(){return Fe="useTransition",it(),zx()},useMutableSource:function(e,n,s){return Fe="useMutableSource",it(),void 0},useSyncExternalStore:function(e,n,s){return Fe="useSyncExternalStore",it(),kx(e,n,s)},useId:function(){return Fe="useId",it(),jx()},unstable_isNewReconciler:le},UP={readContext:function(e){return _i(e)},useCallback:function(e,n){return Fe="useCallback",it(),xS(e,n)},useContext:function(e){return Fe="useContext",it(),_i(e)},useEffect:function(e,n){return Fe="useEffect",it(),dg(e,n)},useImperativeHandle:function(e,n,s){return Fe="useImperativeHandle",it(),CS(e,n,s)},useInsertionEffect:function(e,n){return Fe="useInsertionEffect",it(),SS(e,n)},useLayoutEffect:function(e,n){return Fe="useLayoutEffect",it(),ES(e,n)},useMemo:function(e,n){Fe="useMemo",it();var s=pt.current;pt.current=Hl;try{return RS(e,n)}finally{pt.current=s}},useReducer:function(e,n,s){Fe="useReducer",it();var c=pt.current;pt.current=Hl;try{return Ox(e,n,s)}finally{pt.current=c}},useRef:function(e){return Fe="useRef",it(),gS()},useState:function(e){Fe="useState",it();var n=pt.current;pt.current=Hl;try{return Nx(e)}finally{pt.current=n}},useDebugValue:function(e,n){return Fe="useDebugValue",it(),wS()},useDeferredValue:function(e){return Fe="useDeferredValue",it(),kP(e)},useTransition:function(){return Fe="useTransition",it(),MP()},useMutableSource:function(e,n,s){return Fe="useMutableSource",it(),void 0},useSyncExternalStore:function(e,n,s){return Fe="useSyncExternalStore",it(),hS(e,n)},useId:function(){return Fe="useId",it(),TS()},unstable_isNewReconciler:le},BP={readContext:function(e){return _i(e)},useCallback:function(e,n){return Fe="useCallback",it(),xS(e,n)},useContext:function(e){return Fe="useContext",it(),_i(e)},useEffect:function(e,n){return Fe="useEffect",it(),dg(e,n)},useImperativeHandle:function(e,n,s){return Fe="useImperativeHandle",it(),CS(e,n,s)},useInsertionEffect:function(e,n){return Fe="useInsertionEffect",it(),SS(e,n)},useLayoutEffect:function(e,n){return Fe="useLayoutEffect",it(),ES(e,n)},useMemo:function(e,n){Fe="useMemo",it();var s=pt.current;pt.current=_S;try{return RS(e,n)}finally{pt.current=s}},useReducer:function(e,n,s){Fe="useReducer",it();var c=pt.current;pt.current=_S;try{return _x(e,n,s)}finally{pt.current=c}},useRef:function(e){return Fe="useRef",it(),gS()},useState:function(e){Fe="useState",it();var n=pt.current;pt.current=_S;try{return Dx(e)}finally{pt.current=n}},useDebugValue:function(e,n){return Fe="useDebugValue",it(),wS()},useDeferredValue:function(e){return Fe="useDeferredValue",it(),NP(e)},useTransition:function(){return Fe="useTransition",it(),PP()},useMutableSource:function(e,n,s){return Fe="useMutableSource",it(),void 0},useSyncExternalStore:function(e,n,s){return Fe="useSyncExternalStore",it(),hS(e,n)},useId:function(){return Fe="useId",it(),TS()},unstable_isNewReconciler:le},Nu={readContext:function(e){return Ux(),_i(e)},useCallback:function(e,n){return Fe="useCallback",on(),ir(),Lx(e,n)},useContext:function(e){return Fe="useContext",on(),ir(),_i(e)},useEffect:function(e,n){return Fe="useEffect",on(),ir(),bS(e,n)},useImperativeHandle:function(e,n,s){return Fe="useImperativeHandle",on(),ir(),$x(e,n,s)},useInsertionEffect:function(e,n){return Fe="useInsertionEffect",on(),ir(),Px(e,n)},useLayoutEffect:function(e,n){return Fe="useLayoutEffect",on(),ir(),Ax(e,n)},useMemo:function(e,n){Fe="useMemo",on(),ir();var s=pt.current;pt.current=Nu;try{return Fx(e,n)}finally{pt.current=s}},useReducer:function(e,n,s){Fe="useReducer",on(),ir();var c=pt.current;pt.current=Nu;try{return Tx(e,n,s)}finally{pt.current=c}},useRef:function(e){return Fe="useRef",on(),ir(),Mx(e)},useState:function(e){Fe="useState",on(),ir();var n=pt.current;pt.current=Nu;try{return mS(e)}finally{pt.current=n}},useDebugValue:function(e,n){return Fe="useDebugValue",on(),ir(),void 0},useDeferredValue:function(e){return Fe="useDeferredValue",on(),ir(),Ix(e)},useTransition:function(){return Fe="useTransition",on(),ir(),zx()},useMutableSource:function(e,n,s){return Fe="useMutableSource",on(),ir(),void 0},useSyncExternalStore:function(e,n,s){return Fe="useSyncExternalStore",on(),ir(),kx(e,n,s)},useId:function(){return Fe="useId",on(),ir(),jx()},unstable_isNewReconciler:le},Hl={readContext:function(e){return Ux(),_i(e)},useCallback:function(e,n){return Fe="useCallback",on(),it(),xS(e,n)},useContext:function(e){return Fe="useContext",on(),it(),_i(e)},useEffect:function(e,n){return Fe="useEffect",on(),it(),dg(e,n)},useImperativeHandle:function(e,n,s){return Fe="useImperativeHandle",on(),it(),CS(e,n,s)},useInsertionEffect:function(e,n){return Fe="useInsertionEffect",on(),it(),SS(e,n)},useLayoutEffect:function(e,n){return Fe="useLayoutEffect",on(),it(),ES(e,n)},useMemo:function(e,n){Fe="useMemo",on(),it();var s=pt.current;pt.current=Hl;try{return RS(e,n)}finally{pt.current=s}},useReducer:function(e,n,s){Fe="useReducer",on(),it();var c=pt.current;pt.current=Hl;try{return Ox(e,n,s)}finally{pt.current=c}},useRef:function(e){return Fe="useRef",on(),it(),gS()},useState:function(e){Fe="useState",on(),it();var n=pt.current;pt.current=Hl;try{return Nx(e)}finally{pt.current=n}},useDebugValue:function(e,n){return Fe="useDebugValue",on(),it(),wS()},useDeferredValue:function(e){return Fe="useDeferredValue",on(),it(),kP(e)},useTransition:function(){return Fe="useTransition",on(),it(),MP()},useMutableSource:function(e,n,s){return Fe="useMutableSource",on(),it(),void 0},useSyncExternalStore:function(e,n,s){return Fe="useSyncExternalStore",on(),it(),hS(e,n)},useId:function(){return Fe="useId",on(),it(),TS()},unstable_isNewReconciler:le},_S={readContext:function(e){return Ux(),_i(e)},useCallback:function(e,n){return Fe="useCallback",on(),it(),xS(e,n)},useContext:function(e){return Fe="useContext",on(),it(),_i(e)},useEffect:function(e,n){return Fe="useEffect",on(),it(),dg(e,n)},useImperativeHandle:function(e,n,s){return Fe="useImperativeHandle",on(),it(),CS(e,n,s)},useInsertionEffect:function(e,n){return Fe="useInsertionEffect",on(),it(),SS(e,n)},useLayoutEffect:function(e,n){return Fe="useLayoutEffect",on(),it(),ES(e,n)},useMemo:function(e,n){Fe="useMemo",on(),it();var s=pt.current;pt.current=Hl;try{return RS(e,n)}finally{pt.current=s}},useReducer:function(e,n,s){Fe="useReducer",on(),it();var c=pt.current;pt.current=Hl;try{return _x(e,n,s)}finally{pt.current=c}},useRef:function(e){return Fe="useRef",on(),it(),gS()},useState:function(e){Fe="useState",on(),it();var n=pt.current;pt.current=Hl;try{return Dx(e)}finally{pt.current=n}},useDebugValue:function(e,n){return Fe="useDebugValue",on(),it(),wS()},useDeferredValue:function(e){return Fe="useDeferredValue",on(),it(),NP(e)},useTransition:function(){return Fe="useTransition",on(),it(),PP()},useMutableSource:function(e,n,s){return Fe="useMutableSource",on(),it(),void 0},useSyncExternalStore:function(e,n,s){return Fe="useSyncExternalStore",on(),it(),hS(e,n)},useId:function(){return Fe="useId",on(),it(),TS()},unstable_isNewReconciler:le}}var kc=r.unstable_now,VP=0,kS=-1,pg=-1,NS=-1,Bx=!1,DS=!1;function HP(){return Bx}function _8(){DS=!0}function k8(){Bx=!1,DS=!1}function N8(){Bx=DS,DS=!1}function WP(){return VP}function qP(){VP=kc()}function Vx(e){pg=kc(),e.actualStartTime<0&&(e.actualStartTime=kc())}function KP(e){pg=-1}function MS(e,n){if(pg>=0){var s=kc()-pg;e.actualDuration+=s,n&&(e.selfBaseDuration=s),pg=-1}}function Du(e){if(kS>=0){var n=kc()-kS;kS=-1;for(var s=e.return;s!==null;){switch(s.tag){case R:var c=s.stateNode;c.effectDuration+=n;return;case V:var v=s.stateNode;v.effectDuration+=n;return}s=s.return}}}function Hx(e){if(NS>=0){var n=kc()-NS;NS=-1;for(var s=e.return;s!==null;){switch(s.tag){case R:var c=s.stateNode;c!==null&&(c.passiveEffectDuration+=n);return;case V:var v=s.stateNode;v!==null&&(v.passiveEffectDuration+=n);return}s=s.return}}}function Mu(){kS=kc()}function Wx(){NS=kc()}function qx(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function Wl(e,n){if(e&&e.defaultProps){var s=en({},n),c=e.defaultProps;for(var v in c)s[v]===void 0&&(s[v]=c[v]);return s}return n}var Kx={},Yx,Gx,Xx,Qx,Jx,YP,PS,Zx,eR,tR,vg;{Yx=new Set,Gx=new Set,Xx=new Set,Qx=new Set,Zx=new Set,Jx=new Set,eR=new Set,tR=new Set,vg=new Set;var GP=new Set;PS=function(e,n){if(!(e===null||typeof e=="function")){var s=n+"_"+e;GP.has(s)||(GP.add(s),f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,e))}},YP=function(e,n){if(n===void 0){var s=hn(e)||"Component";Jx.has(s)||(Jx.add(s),f("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(Kx,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Kx)}function nR(e,n,s,c){var v=e.memoizedState,m=s(c,v);{if(e.mode&hr){Ir(!0);try{m=s(c,v)}finally{Ir(!1)}}YP(n,m)}var C=m==null?v:en({},v,m);if(e.memoizedState=C,e.lanes===je){var k=e.updateQueue;k.baseState=C}}var rR={isMounted:j0,enqueueSetState:function(e,n,s){var c=ic(e),v=Za(),m=Pc(c),C=_s(v,m);C.payload=n,s!=null&&(PS(s,"setState"),C.callback=s);var k=Rc(c,C,m);k!==null&&(Yi(k,c,m,v),uS(k,c,m)),Cf(c,m)},enqueueReplaceState:function(e,n,s){var c=ic(e),v=Za(),m=Pc(c),C=_s(v,m);C.tag=dP,C.payload=n,s!=null&&(PS(s,"replaceState"),C.callback=s);var k=Rc(c,C,m);k!==null&&(Yi(k,c,m,v),uS(k,c,m)),Cf(c,m)},enqueueForceUpdate:function(e,n){var s=ic(e),c=Za(),v=Pc(s),m=_s(c,v);m.tag=aS,n!=null&&(PS(n,"forceUpdate"),m.callback=n);var C=Rc(s,m,v);C!==null&&(Yi(C,s,v,c),uS(C,s,v)),Cp(s,v)}};function XP(e,n,s,c,v,m,C){var k=e.stateNode;if(typeof k.shouldComponentUpdate=="function"){var M=k.shouldComponentUpdate(c,m,C);{if(e.mode&hr){Ir(!0);try{M=k.shouldComponentUpdate(c,m,C)}finally{Ir(!1)}}M===void 0&&f("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",hn(n)||"Component")}return M}return n.prototype&&n.prototype.isPureReactComponent?!xt(s,c)||!xt(v,m):!0}function D8(e,n,s){var c=e.stateNode;{var v=hn(n)||"Component",m=c.render;m||(n.prototype&&typeof n.prototype.render=="function"?f("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",v):f("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",v)),c.getInitialState&&!c.getInitialState.isReactClassApproved&&!c.state&&f("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",v),c.getDefaultProps&&!c.getDefaultProps.isReactClassApproved&&f("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",v),c.propTypes&&f("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",v),c.contextType&&f("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),n.childContextTypes&&!vg.has(n)&&(e.mode&hr)===zt&&(vg.add(n),f(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
153
|
-
|
|
154
|
-
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)),n.contextTypes&&!vg.has(n)&&(e.mode&hr)===zt&&(vg.add(n),f(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
|
|
155
|
-
|
|
156
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)),c.contextTypes&&f("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",v),n.contextType&&n.contextTypes&&!eR.has(n)&&(eR.add(n),f("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",v)),typeof c.componentShouldUpdate=="function"&&f("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",v),n.prototype&&n.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&f("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",hn(n)||"A pure component"),typeof c.componentDidUnmount=="function"&&f("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof c.componentDidReceiveProps=="function"&&f("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",v),typeof c.componentWillRecieveProps=="function"&&f("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof c.UNSAFE_componentWillRecieveProps=="function"&&f("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v);var C=c.props!==s;c.props!==void 0&&C&&f("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v,v),c.defaultProps&&f("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",v,v),typeof c.getSnapshotBeforeUpdate=="function"&&typeof c.componentDidUpdate!="function"&&!Xx.has(n)&&(Xx.add(n),f("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",hn(n))),typeof c.getDerivedStateFromProps=="function"&&f("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof c.getDerivedStateFromError=="function"&&f("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof n.getSnapshotBeforeUpdate=="function"&&f("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v);var k=c.state;k&&(typeof k!="object"||mn(k))&&f("%s.state: must be set to an object or null",v),typeof c.getChildContext=="function"&&typeof n.childContextTypes!="object"&&f("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v)}}function QP(e,n){n.updater=rR,e.stateNode=n,ns(n,e),n._reactInternalInstance=Kx}function JP(e,n,s){var c=!1,v=zo,m=zo,C=n.contextType;if("contextType"in n){var k=C===null||C!==void 0&&C.$$typeof===te&&C._context===void 0;if(!k&&!tR.has(n)){tR.add(n);var M="";C===void 0?M=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof C!="object"?M=" However, it is set to a "+typeof C+".":C.$$typeof===$r?M=" Did you accidentally pass the Context.Provider instead?":C._context!==void 0?M=" Did you accidentally pass the Context.Consumer instead?":M=" However, it is set to an object with keys {"+Object.keys(C).join(", ")+"}.",f("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",hn(n)||"Component",M)}}if(typeof C=="object"&&C!==null)m=_i(C);else{v=fv(e,n,!0);var j=n.contextTypes;c=j!=null,m=c?dv(e,v):zo}var q=new n(s,m);if(e.mode&hr){Ir(!0);try{q=new n(s,m)}finally{Ir(!1)}}var fe=e.memoizedState=q.state!==null&&q.state!==void 0?q.state:null;QP(e,q);{if(typeof n.getDerivedStateFromProps=="function"&&fe===null){var se=hn(n)||"Component";Gx.has(se)||(Gx.add(se),f("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",se,q.state===null?"null":"undefined",se))}if(typeof n.getDerivedStateFromProps=="function"||typeof q.getSnapshotBeforeUpdate=="function"){var Te=null,Ne=null,Pe=null;if(typeof q.componentWillMount=="function"&&q.componentWillMount.__suppressDeprecationWarning!==!0?Te="componentWillMount":typeof q.UNSAFE_componentWillMount=="function"&&(Te="UNSAFE_componentWillMount"),typeof q.componentWillReceiveProps=="function"&&q.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Ne="componentWillReceiveProps":typeof q.UNSAFE_componentWillReceiveProps=="function"&&(Ne="UNSAFE_componentWillReceiveProps"),typeof q.componentWillUpdate=="function"&&q.componentWillUpdate.__suppressDeprecationWarning!==!0?Pe="componentWillUpdate":typeof q.UNSAFE_componentWillUpdate=="function"&&(Pe="UNSAFE_componentWillUpdate"),Te!==null||Ne!==null||Pe!==null){var ut=hn(n)||"Component",Wt=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Qx.has(ut)||(Qx.add(ut),f(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
157
|
-
|
|
158
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
159
|
-
|
|
160
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
161
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,ut,Wt,Te!==null?`
|
|
162
|
-
`+Te:"",Ne!==null?`
|
|
163
|
-
`+Ne:"",Pe!==null?`
|
|
164
|
-
`+Pe:""))}}}return c&&UM(e,v,m),q}function M8(e,n){var s=n.state;typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&(f("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",jt(e)||"Component"),rR.enqueueReplaceState(n,n.state,null))}function ZP(e,n,s,c){var v=n.state;if(typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,c),n.state!==v){{var m=jt(e)||"Component";Yx.has(m)||(Yx.add(m),f("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",m))}rR.enqueueReplaceState(n,n.state,null)}}function iR(e,n,s,c){D8(e,n,s);var v=e.stateNode;v.props=s,v.state=e.memoizedState,v.refs={},px(e);var m=n.contextType;if(typeof m=="object"&&m!==null)v.context=_i(m);else{var C=fv(e,n,!0);v.context=dv(e,C)}{if(v.state===s){var k=hn(n)||"Component";Zx.has(k)||(Zx.add(k),f("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",k))}e.mode&hr&&Bl.recordLegacyContextWarning(e,v),Bl.recordUnsafeLifecycleWarnings(e,v)}v.state=e.memoizedState;var M=n.getDerivedStateFromProps;if(typeof M=="function"&&(nR(e,n,M,s),v.state=e.memoizedState),typeof n.getDerivedStateFromProps!="function"&&typeof v.getSnapshotBeforeUpdate!="function"&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&(M8(e,v),sS(e,s,v,c),v.state=e.memoizedState),typeof v.componentDidMount=="function"){var j=$n;j|=Dl,(e.mode&Kn)!==zt&&(j|=cu),e.flags|=j}}function P8(e,n,s,c){var v=e.stateNode,m=e.memoizedProps;v.props=m;var C=v.context,k=n.contextType,M=zo;if(typeof k=="object"&&k!==null)M=_i(k);else{var j=fv(e,n,!0);M=dv(e,j)}var q=n.getDerivedStateFromProps,fe=typeof q=="function"||typeof v.getSnapshotBeforeUpdate=="function";!fe&&(typeof v.UNSAFE_componentWillReceiveProps=="function"||typeof v.componentWillReceiveProps=="function")&&(m!==s||C!==M)&&ZP(e,v,s,M),vP();var se=e.memoizedState,Te=v.state=se;if(sS(e,s,v,c),Te=e.memoizedState,m===s&&se===Te&&!Hb()&&!cS()){if(typeof v.componentDidMount=="function"){var Ne=$n;Ne|=Dl,(e.mode&Kn)!==zt&&(Ne|=cu),e.flags|=Ne}return!1}typeof q=="function"&&(nR(e,n,q,s),Te=e.memoizedState);var Pe=cS()||XP(e,n,m,s,se,Te,M);if(Pe){if(!fe&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"){var ut=$n;ut|=Dl,(e.mode&Kn)!==zt&&(ut|=cu),e.flags|=ut}}else{if(typeof v.componentDidMount=="function"){var Wt=$n;Wt|=Dl,(e.mode&Kn)!==zt&&(Wt|=cu),e.flags|=Wt}e.memoizedProps=s,e.memoizedState=Te}return v.props=s,v.state=Te,v.context=M,Pe}function A8(e,n,s,c,v){var m=n.stateNode;pP(e,n);var C=n.memoizedProps,k=n.type===n.elementType?C:Wl(n.type,C);m.props=k;var M=n.pendingProps,j=m.context,q=s.contextType,fe=zo;if(typeof q=="object"&&q!==null)fe=_i(q);else{var se=fv(n,s,!0);fe=dv(n,se)}var Te=s.getDerivedStateFromProps,Ne=typeof Te=="function"||typeof m.getSnapshotBeforeUpdate=="function";!Ne&&(typeof m.UNSAFE_componentWillReceiveProps=="function"||typeof m.componentWillReceiveProps=="function")&&(C!==M||j!==fe)&&ZP(n,m,c,fe),vP();var Pe=n.memoizedState,ut=m.state=Pe;if(sS(n,c,m,v),ut=n.memoizedState,C===M&&Pe===ut&&!Hb()&&!cS())return typeof m.componentDidUpdate=="function"&&(C!==e.memoizedProps||Pe!==e.memoizedState)&&(n.flags|=$n),typeof m.getSnapshotBeforeUpdate=="function"&&(C!==e.memoizedProps||Pe!==e.memoizedState)&&(n.flags|=vi),!1;typeof Te=="function"&&(nR(n,s,Te,c),ut=n.memoizedState);var Wt=cS()||XP(n,s,k,c,Pe,ut,fe)||Re;return Wt?(!Ne&&(typeof m.UNSAFE_componentWillUpdate=="function"||typeof m.componentWillUpdate=="function")&&(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(c,ut,fe),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(c,ut,fe)),typeof m.componentDidUpdate=="function"&&(n.flags|=$n),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=vi)):(typeof m.componentDidUpdate=="function"&&(C!==e.memoizedProps||Pe!==e.memoizedState)&&(n.flags|=$n),typeof m.getSnapshotBeforeUpdate=="function"&&(C!==e.memoizedProps||Pe!==e.memoizedState)&&(n.flags|=vi),n.memoizedProps=c,n.memoizedState=ut),m.props=c,m.state=ut,m.context=fe,Wt}function ld(e,n){return{value:e,source:n,stack:xi(n),digest:null}}function aR(e,n,s){return{value:e,source:null,stack:s??null,digest:n??null}}function $8(e,n){return!0}function oR(e,n){try{var s=$8(e,n);if(s===!1)return;var c=n.value,v=n.source,m=n.stack,C=m!==null?m:"";if(c!=null&&c._suppressLogging){if(e.tag===S)return;console.error(c)}var k=v?jt(v):null,M=k?"The above error occurred in the <"+k+"> component:":"The above error occurred in one of your React components:",j;if(e.tag===R)j=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
165
|
-
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var q=jt(e)||"Anonymous";j="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+q+".")}var fe=M+`
|
|
166
|
-
`+C+`
|
|
167
|
-
|
|
168
|
-
`+(""+j);console.error(fe)}catch(se){setTimeout(function(){throw se})}}var L8=typeof WeakMap=="function"?WeakMap:Map;function e2(e,n,s){var c=_s(br,s);c.tag=fx,c.payload={element:null};var v=n.value;return c.callback=function(){_W(v),oR(e,n)},c}function lR(e,n,s){var c=_s(br,s);c.tag=fx;var v=e.type.getDerivedStateFromError;if(typeof v=="function"){var m=n.value;c.payload=function(){return v(m)},c.callback=function(){fA(e),oR(e,n)}}var C=e.stateNode;return C!==null&&typeof C.componentDidCatch=="function"&&(c.callback=function(){fA(e),oR(e,n),typeof v!="function"&&TW(this);var M=n.value,j=n.stack;this.componentDidCatch(M,{componentStack:j!==null?j:""}),typeof v!="function"&&(Da(e.lanes,Jt)||f("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",jt(e)||"Unknown"))}),c}function t2(e,n,s){var c=e.pingCache,v;if(c===null?(c=e.pingCache=new L8,v=new Set,c.set(n,v)):(v=c.get(n),v===void 0&&(v=new Set,c.set(n,v))),!v.has(s)){v.add(s);var m=kW.bind(null,e,n,s);Na&&Dg(e,s),n.then(m,m)}}function F8(e,n,s,c){var v=e.updateQueue;if(v===null){var m=new Set;m.add(s),e.updateQueue=m}else v.add(s)}function I8(e,n){var s=e.tag;if((e.mode&yn)===zt&&(s===y||s===z||s===K)){var c=e.alternate;c?(e.updateQueue=c.updateQueue,e.memoizedState=c.memoizedState,e.lanes=c.lanes):(e.updateQueue=null,e.memoizedState=null)}}function n2(e){var n=e;do{if(n.tag===B&&y8(n))return n;n=n.return}while(n!==null);return null}function r2(e,n,s,c,v){if((e.mode&yn)===zt){if(e===n)e.flags|=Oa;else{if(e.flags|=$t,s.flags|=vp,s.flags&=-52805,s.tag===S){var m=s.alternate;if(m===null)s.tag=ie;else{var C=_s(br,Jt);C.tag=aS,Rc(s,C,Jt)}}s.lanes=fn(s.lanes,Jt)}return e}return e.flags|=Oa,e.lanes=v,e}function z8(e,n,s,c,v){if(s.flags|=mf,Na&&Dg(e,v),c!==null&&typeof c=="object"&&typeof c.then=="function"){var m=c;I8(s),va()&&s.mode&yn&&YM();var C=n2(n);if(C!==null){C.flags&=-257,r2(C,n,s,e,v),C.mode&yn&&t2(e,m,v),F8(C,e,m);return}else{if(!Y0(v)){t2(e,m,v),jR();return}var k=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");c=k}}else if(va()&&s.mode&yn){YM();var M=n2(n);if(M!==null){(M.flags&Oa)===It&&(M.flags|=Ra),r2(M,n,s,e,v),Z1(ld(c,s));return}}c=ld(c,s),yW(c);var j=n;do{switch(j.tag){case R:{var q=c;j.flags|=Oa;var fe=Df(v);j.lanes=fn(j.lanes,fe);var se=e2(j,q,fe);vx(j,se);return}case S:var Te=c,Ne=j.type,Pe=j.stateNode;if((j.flags&$t)===It&&(typeof Ne.getDerivedStateFromError=="function"||Pe!==null&&typeof Pe.componentDidCatch=="function"&&!nA(Pe))){j.flags|=Oa;var ut=Df(v);j.lanes=fn(j.lanes,ut);var Wt=lR(j,Te,ut);vx(j,Wt);return}break}j=j.return}while(j!==null)}function j8(){return null}var hg=i.ReactCurrentOwner,ql=!1,uR,mg,sR,cR,fR,ud,dR,AS,gg;uR={},mg={},sR={},cR={},fR={},ud=!1,dR={},AS={},gg={};function Qa(e,n,s,c){e===null?n.child=oP(n,null,s,c):n.child=mv(n,e.child,s,c)}function U8(e,n,s,c){n.child=mv(n,e.child,null,c),n.child=mv(n,null,s,c)}function i2(e,n,s,c,v){if(n.type!==n.elementType){var m=s.propTypes;m&&jl(m,c,"prop",hn(s))}var C=s.render,k=n.ref,M,j;yv(n,v),qa(n);{if(hg.current=n,Lr(!0),M=xv(e,n,C,c,k,v),j=Rv(),n.mode&hr){Ir(!0);try{M=xv(e,n,C,c,k,v),j=Rv()}finally{Ir(!1)}}Lr(!1)}return Ka(),e!==null&&!ql?(SP(e,n,v),ks(e,n,v)):(va()&&j&&K1(n),n.flags|=Po,Qa(e,n,M,v),n.child)}function a2(e,n,s,c,v){if(e===null){var m=s.type;if(qW(m)&&s.compare===null&&s.defaultProps===void 0){var C=m;return C=Pv(m),n.tag=K,n.type=C,hR(n,m),o2(e,n,C,c,v)}{var k=m.propTypes;if(k&&jl(k,c,"prop",hn(m)),s.defaultProps!==void 0){var M=hn(m)||"Unknown";gg[M]||(f("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",M),gg[M]=!0)}}var j=QR(s.type,null,c,n,n.mode,v);return j.ref=n.ref,j.return=n,n.child=j,j}{var q=s.type,fe=q.propTypes;fe&&jl(fe,c,"prop",hn(q))}var se=e.child,Te=ER(e,v);if(!Te){var Ne=se.memoizedProps,Pe=s.compare;if(Pe=Pe!==null?Pe:xt,Pe(Ne,c)&&e.ref===n.ref)return ks(e,n,v)}n.flags|=Po;var ut=pd(se,c);return ut.ref=n.ref,ut.return=n,n.child=ut,ut}function o2(e,n,s,c,v){if(n.type!==n.elementType){var m=n.elementType;if(m.$$typeof===Nt){var C=m,k=C._payload,M=C._init;try{m=M(k)}catch{m=null}var j=m&&m.propTypes;j&&jl(j,c,"prop",hn(m))}}if(e!==null){var q=e.memoizedProps;if(xt(q,c)&&e.ref===n.ref&&n.type===e.type)if(ql=!1,n.pendingProps=c=q,ER(e,v))(e.flags&vp)!==It&&(ql=!0);else return n.lanes=e.lanes,ks(e,n,v)}return pR(e,n,s,c,v)}function l2(e,n,s){var c=n.pendingProps,v=c.children,m=e!==null?e.memoizedState:null;if(c.mode==="hidden"||pe)if((n.mode&yn)===zt){var C={baseLanes:je,cachePool:null,transitions:null};n.memoizedState=C,KS(n,s)}else if(Da(s,Ya)){var fe={baseLanes:je,cachePool:null,transitions:null};n.memoizedState=fe;var se=m!==null?m.baseLanes:s;KS(n,se)}else{var k=null,M;if(m!==null){var j=m.baseLanes;M=fn(j,s)}else M=s;n.lanes=n.childLanes=Ya;var q={baseLanes:M,cachePool:k,transitions:null};return n.memoizedState=q,n.updateQueue=null,KS(n,M),null}else{var Te;m!==null?(Te=fn(m.baseLanes,s),n.memoizedState=null):Te=s,KS(n,Te)}return Qa(e,n,v,s),n.child}function B8(e,n,s){var c=n.pendingProps;return Qa(e,n,c,s),n.child}function V8(e,n,s){var c=n.pendingProps.children;return Qa(e,n,c,s),n.child}function H8(e,n,s){{n.flags|=$n;{var c=n.stateNode;c.effectDuration=0,c.passiveEffectDuration=0}}var v=n.pendingProps,m=v.children;return Qa(e,n,m,s),n.child}function u2(e,n){var s=n.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(n.flags|=Br,n.flags|=oc)}function pR(e,n,s,c,v){if(n.type!==n.elementType){var m=s.propTypes;m&&jl(m,c,"prop",hn(s))}var C;{var k=fv(n,s,!0);C=dv(n,k)}var M,j;yv(n,v),qa(n);{if(hg.current=n,Lr(!0),M=xv(e,n,s,c,C,v),j=Rv(),n.mode&hr){Ir(!0);try{M=xv(e,n,s,c,C,v),j=Rv()}finally{Ir(!1)}}Lr(!1)}return Ka(),e!==null&&!ql?(SP(e,n,v),ks(e,n,v)):(va()&&j&&K1(n),n.flags|=Po,Qa(e,n,M,v),n.child)}function s2(e,n,s,c,v){{switch(l7(n)){case!1:{var m=n.stateNode,C=n.type,k=new C(n.memoizedProps,m.context),M=k.state;m.updater.enqueueSetState(m,M,null);break}case!0:{n.flags|=$t,n.flags|=Oa;var j=new Error("Simulated error coming from DevTools"),q=Df(v);n.lanes=fn(n.lanes,q);var fe=lR(n,ld(j,n),q);vx(n,fe);break}}if(n.type!==n.elementType){var se=s.propTypes;se&&jl(se,c,"prop",hn(s))}}var Te;Ou(s)?(Te=!0,qb(n)):Te=!1,yv(n,v);var Ne=n.stateNode,Pe;Ne===null?(LS(e,n),JP(n,s,c),iR(n,s,c,v),Pe=!0):e===null?Pe=P8(n,s,c,v):Pe=A8(e,n,s,c,v);var ut=vR(e,n,s,Pe,Te,v);{var Wt=n.stateNode;Pe&&Wt.props!==c&&(ud||f("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",jt(n)||"a component"),ud=!0)}return ut}function vR(e,n,s,c,v,m){u2(e,n);var C=(n.flags&$t)!==It;if(!c&&!C)return v&&HM(n,s,!1),ks(e,n,m);var k=n.stateNode;hg.current=n;var M;if(C&&typeof s.getDerivedStateFromError!="function")M=null,KP();else{qa(n);{if(Lr(!0),M=k.render(),n.mode&hr){Ir(!0);try{k.render()}finally{Ir(!1)}}Lr(!1)}Ka()}return n.flags|=Po,e!==null&&C?U8(e,n,M,m):Qa(e,n,M,m),n.memoizedState=k.state,v&&HM(n,s,!0),n.child}function c2(e){var n=e.stateNode;n.pendingContext?BM(e,n.pendingContext,n.pendingContext!==n.context):n.context&&BM(e,n.context,!1),hx(e,n.containerInfo)}function W8(e,n,s){if(c2(n),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var c=n.pendingProps,v=n.memoizedState,m=v.element;pP(e,n),sS(n,c,null,s);var C=n.memoizedState;n.stateNode;var k=C.element;if(v.isDehydrated){var M={element:k,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},j=n.updateQueue;if(j.baseState=M,n.memoizedState=M,n.flags&Ra){var q=ld(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),n);return f2(e,n,k,s,q)}else if(k!==m){var fe=ld(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n);return f2(e,n,k,s,fe)}else{Y6(n);var se=oP(n,null,k,s);n.child=se;for(var Te=se;Te;)Te.flags=Te.flags&-3|vo,Te=Te.sibling}}else{if(hv(),k===m)return ks(e,n,s);Qa(e,n,k,s)}return n.child}function f2(e,n,s,c,v){return hv(),Z1(v),n.flags|=Ra,Qa(e,n,s,c),n.child}function q8(e,n,s){gP(n),e===null&&J1(n);var c=n.type,v=n.pendingProps,m=e!==null?e.memoizedProps:null,C=v.children,k=P1(c,v);return k?C=null:m!==null&&P1(c,m)&&(n.flags|=Ao),u2(e,n),Qa(e,n,C,s),n.child}function K8(e,n){return e===null&&J1(n),null}function Y8(e,n,s,c){LS(e,n);var v=n.pendingProps,m=s,C=m._payload,k=m._init,M=k(C);n.type=M;var j=n.tag=KW(M),q=Wl(M,v),fe;switch(j){case y:return hR(n,M),n.type=M=Pv(M),fe=pR(null,n,M,q,c),fe;case S:return n.type=M=WR(M),fe=s2(null,n,M,q,c),fe;case z:return n.type=M=qR(M),fe=i2(null,n,M,q,c),fe;case W:{if(n.type!==n.elementType){var se=M.propTypes;se&&jl(se,q,"prop",hn(M))}return fe=a2(null,n,M,Wl(M.type,q),c),fe}}var Te="";throw M!==null&&typeof M=="object"&&M.$$typeof===Nt&&(Te=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+M+". "+("Lazy element type must resolve to a class or function."+Te))}function G8(e,n,s,c,v){LS(e,n),n.tag=S;var m;return Ou(s)?(m=!0,qb(n)):m=!1,yv(n,v),JP(n,s,c),iR(n,s,c,v),vR(null,n,s,!0,m,v)}function X8(e,n,s,c){LS(e,n);var v=n.pendingProps,m;{var C=fv(n,s,!1);m=dv(n,C)}yv(n,c);var k,M;qa(n);{if(s.prototype&&typeof s.prototype.render=="function"){var j=hn(s)||"Unknown";uR[j]||(f("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",j,j),uR[j]=!0)}n.mode&hr&&Bl.recordLegacyContextWarning(n,null),Lr(!0),hg.current=n,k=xv(null,n,s,v,m,c),M=Rv(),Lr(!1)}if(Ka(),n.flags|=Po,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0){var q=hn(s)||"Unknown";mg[q]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",q,q,q),mg[q]=!0)}if(typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0){{var fe=hn(s)||"Unknown";mg[fe]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",fe,fe,fe),mg[fe]=!0)}n.tag=S,n.memoizedState=null,n.updateQueue=null;var se=!1;return Ou(s)?(se=!0,qb(n)):se=!1,n.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,px(n),QP(n,k),iR(n,s,v,c),vR(null,n,s,!0,se,c)}else{if(n.tag=y,n.mode&hr){Ir(!0);try{k=xv(null,n,s,v,m,c),M=Rv()}finally{Ir(!1)}}return va()&&M&&K1(n),Qa(null,n,k,c),hR(n,s),n.child}}function hR(e,n){{if(n&&n.childContextTypes&&f("%s(...): childContextTypes cannot be defined on a function component.",n.displayName||n.name||"Component"),e.ref!==null){var s="",c=Dr();c&&(s+=`
|
|
169
|
-
|
|
170
|
-
Check the render method of \``+c+"`.");var v=c||"",m=e._debugSource;m&&(v=m.fileName+":"+m.lineNumber),fR[v]||(fR[v]=!0,f("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(n.defaultProps!==void 0){var C=hn(n)||"Unknown";gg[C]||(f("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",C),gg[C]=!0)}if(typeof n.getDerivedStateFromProps=="function"){var k=hn(n)||"Unknown";cR[k]||(f("%s: Function components do not support getDerivedStateFromProps.",k),cR[k]=!0)}if(typeof n.contextType=="object"&&n.contextType!==null){var M=hn(n)||"Unknown";sR[M]||(f("%s: Function components do not support contextType.",M),sR[M]=!0)}}}var mR={dehydrated:null,treeContext:null,retryLane:Wn};function gR(e){return{baseLanes:e,cachePool:j8(),transitions:null}}function Q8(e,n){var s=null;return{baseLanes:fn(e.baseLanes,n),cachePool:s,transitions:e.transitions}}function J8(e,n,s,c){if(n!==null){var v=n.memoizedState;if(v===null)return!1}return yx(e,og)}function Z8(e,n){return Mf(e.childLanes,n)}function d2(e,n,s){var c=n.pendingProps;u7(n)&&(n.flags|=$t);var v=Vl.current,m=!1,C=(n.flags&$t)!==It;if(C||J8(v,e)?(m=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(v=g8(v,bP)),v=Sv(v),Oc(n,v),e===null){J1(n);var k=n.memoizedState;if(k!==null){var M=k.dehydrated;if(M!==null)return i9(n,M)}var j=c.children,q=c.fallback;if(m){var fe=e9(n,j,q,s),se=n.child;return se.memoizedState=gR(s),n.memoizedState=mR,fe}else return yR(n,j)}else{var Te=e.memoizedState;if(Te!==null){var Ne=Te.dehydrated;if(Ne!==null)return a9(e,n,C,c,Ne,Te,s)}if(m){var Pe=c.fallback,ut=c.children,Wt=n9(e,n,ut,Pe,s),Mt=n.child,In=e.child.memoizedState;return Mt.memoizedState=In===null?gR(s):Q8(In,s),Mt.childLanes=Z8(e,s),n.memoizedState=mR,Wt}else{var Tn=c.children,Ee=t9(e,n,Tn,s);return n.memoizedState=null,Ee}}}function yR(e,n,s){var c=e.mode,v={mode:"visible",children:n},m=bR(v,c);return m.return=e,e.child=m,m}function e9(e,n,s,c){var v=e.mode,m=e.child,C={mode:"hidden",children:n},k,M;return(v&yn)===zt&&m!==null?(k=m,k.childLanes=je,k.pendingProps=C,e.mode&qn&&(k.actualDuration=0,k.actualStartTime=-1,k.selfBaseDuration=0,k.treeBaseDuration=0),M=$c(s,v,c,null)):(k=bR(C,v),M=$c(s,v,c,null)),k.return=e,M.return=e,k.sibling=M,e.child=k,M}function bR(e,n,s){return pA(e,n,je,null)}function p2(e,n){return pd(e,n)}function t9(e,n,s,c){var v=e.child,m=v.sibling,C=p2(v,{mode:"visible",children:s});if((n.mode&yn)===zt&&(C.lanes=c),C.return=n,C.sibling=null,m!==null){var k=n.deletions;k===null?(n.deletions=[m],n.flags|=po):k.push(m)}return n.child=C,C}function n9(e,n,s,c,v){var m=n.mode,C=e.child,k=C.sibling,M={mode:"hidden",children:s},j;if((m&yn)===zt&&n.child!==C){var q=n.child;j=q,j.childLanes=je,j.pendingProps=M,n.mode&qn&&(j.actualDuration=0,j.actualStartTime=-1,j.selfBaseDuration=C.selfBaseDuration,j.treeBaseDuration=C.treeBaseDuration),n.deletions=null}else j=p2(C,M),j.subtreeFlags=C.subtreeFlags&ti;var fe;return k!==null?fe=pd(k,c):(fe=$c(c,m,v,null),fe.flags|=Wr),fe.return=n,j.return=n,j.sibling=fe,n.child=j,fe}function $S(e,n,s,c){c!==null&&Z1(c),mv(n,e.child,null,s);var v=n.pendingProps,m=v.children,C=yR(n,m);return C.flags|=Wr,n.memoizedState=null,C}function r9(e,n,s,c,v){var m=n.mode,C={mode:"visible",children:s},k=bR(C,m),M=$c(c,m,v,null);return M.flags|=Wr,k.return=n,M.return=n,k.sibling=M,n.child=k,(n.mode&yn)!==zt&&mv(n,e.child,null,v),M}function i9(e,n,s){return(e.mode&yn)===zt?(f("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Jt):F1(n)?e.lanes=Qi:e.lanes=Ya,null}function a9(e,n,s,c,v,m,C){if(s)if(n.flags&Ra){n.flags&=-257;var Ee=aR(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return $S(e,n,C,Ee)}else{if(n.memoizedState!==null)return n.child=e.child,n.flags|=$t,null;var Ae=c.children,Ce=c.fallback,Ye=r9(e,n,Ae,Ce,C),vt=n.child;return vt.memoizedState=gR(C),n.memoizedState=mR,Ye}else{if(q6(),(n.mode&yn)===zt)return $S(e,n,C,null);if(F1(v)){var k,M,j;{var q=s6(v);k=q.digest,M=q.message,j=q.stack}var fe;M?fe=new Error(M):fe=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var se=aR(fe,k,j);return $S(e,n,C,se)}var Te=Da(C,e.childLanes);if(ql||Te){var Ne=qS();if(Ne!==null){var Pe=Sm(Ne,C);if(Pe!==Wn&&Pe!==m.retryLane){m.retryLane=Pe;var ut=br;wo(e,Pe),Yi(Ne,e,Pe,ut)}}jR();var Wt=aR(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return $S(e,n,C,Wt)}else if(LM(v)){n.flags|=$t,n.child=e.child;var Mt=NW.bind(null,e);return c6(v,Mt),null}else{G6(n,v,m.treeContext);var In=c.children,Tn=yR(n,In);return Tn.flags|=vo,Tn}}}function v2(e,n,s){e.lanes=fn(e.lanes,n);var c=e.alternate;c!==null&&(c.lanes=fn(c.lanes,n)),sx(e.return,n,s)}function o9(e,n,s){for(var c=n;c!==null;){if(c.tag===B){var v=c.memoizedState;v!==null&&v2(c,s,e)}else if(c.tag===J)v2(c,s,e);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)return;for(;c.sibling===null;){if(c.return===null||c.return===e)return;c=c.return}c.sibling.return=c.return,c=c.sibling}}function l9(e){for(var n=e,s=null;n!==null;){var c=n.alternate;c!==null&&pS(c)===null&&(s=n),n=n.sibling}return s}function u9(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!dR[e])if(dR[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:f('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else f('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function s9(e,n){e!==void 0&&!AS[e]&&(e!=="collapsed"&&e!=="hidden"?(AS[e]=!0,f('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):n!=="forwards"&&n!=="backwards"&&(AS[e]=!0,f('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function h2(e,n){{var s=mn(e),c=!s&&typeof Vt(e)=="function";if(s||c){var v=s?"array":"iterable";return f("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",v,n,v),!1}}return!0}function c9(e,n){if((n==="forwards"||n==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(mn(e)){for(var s=0;s<e.length;s++)if(!h2(e[s],s))return}else{var c=Vt(e);if(typeof c=="function"){var v=c.call(e);if(v)for(var m=v.next(),C=0;!m.done;m=v.next()){if(!h2(m.value,C))return;C++}}else f('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',n)}}function SR(e,n,s,c,v){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:v}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=s,m.tailMode=v)}function m2(e,n,s){var c=n.pendingProps,v=c.revealOrder,m=c.tail,C=c.children;u9(v),s9(m,v),c9(C,v),Qa(e,n,C,s);var k=Vl.current,M=yx(k,og);if(M)k=bx(k,og),n.flags|=$t;else{var j=e!==null&&(e.flags&$t)!==It;j&&o9(n,n.child,s),k=Sv(k)}if(Oc(n,k),(n.mode&yn)===zt)n.memoizedState=null;else switch(v){case"forwards":{var q=l9(n.child),fe;q===null?(fe=n.child,n.child=null):(fe=q.sibling,q.sibling=null),SR(n,!1,fe,q,m);break}case"backwards":{var se=null,Te=n.child;for(n.child=null;Te!==null;){var Ne=Te.alternate;if(Ne!==null&&pS(Ne)===null){n.child=Te;break}var Pe=Te.sibling;Te.sibling=se,se=Te,Te=Pe}SR(n,!0,se,null,m);break}case"together":{SR(n,!1,null,null,void 0);break}default:n.memoizedState=null}return n.child}function f9(e,n,s){hx(n,n.stateNode.containerInfo);var c=n.pendingProps;return e===null?n.child=mv(n,null,c,s):Qa(e,n,c,s),n.child}var g2=!1;function d9(e,n,s){var c=n.type,v=c._context,m=n.pendingProps,C=n.memoizedProps,k=m.value;{"value"in m||g2||(g2=!0,f("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var M=n.type.propTypes;M&&jl(M,m,"prop","Context.Provider")}if(sP(n,v,k),C!==null){var j=C.value;if(He(j,k)){if(C.children===m.children&&!Hb())return ks(e,n,s)}else u8(n,v,s)}var q=m.children;return Qa(e,n,q,s),n.child}var y2=!1;function p9(e,n,s){var c=n.type;c._context===void 0?c!==c.Consumer&&(y2||(y2=!0,f("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var v=n.pendingProps,m=v.children;typeof m!="function"&&f("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),yv(n,s);var C=_i(c);qa(n);var k;return hg.current=n,Lr(!0),k=m(C),Lr(!1),Ka(),n.flags|=Po,Qa(e,n,k,s),n.child}function yg(){ql=!0}function LS(e,n){(n.mode&yn)===zt&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=Wr)}function ks(e,n,s){return e!==null&&(n.dependencies=e.dependencies),KP(),Ng(n.lanes),Da(s,n.childLanes)?(o8(e,n),n.child):null}function v9(e,n,s){{var c=n.return;if(c===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,s.index=n.index,s.sibling=n.sibling,s.return=n.return,s.ref=n.ref,n===c.child)c.child=s;else{var v=c.child;if(v===null)throw new Error("Expected parent to have a child.");for(;v.sibling!==n;)if(v=v.sibling,v===null)throw new Error("Expected to find the previous sibling.");v.sibling=s}var m=c.deletions;return m===null?(c.deletions=[e],c.flags|=po):m.push(e),s.flags|=Wr,s}}function ER(e,n){var s=e.lanes;return!!Da(s,n)}function h9(e,n,s){switch(n.tag){case R:c2(n),n.stateNode,hv();break;case P:gP(n);break;case S:{var c=n.type;Ou(c)&&qb(n);break}case _:hx(n,n.stateNode.containerInfo);break;case I:{var v=n.memoizedProps.value,m=n.type._context;sP(n,m,v);break}case V:{var C=Da(s,n.childLanes);C&&(n.flags|=$n);{var k=n.stateNode;k.effectDuration=0,k.passiveEffectDuration=0}}break;case B:{var M=n.memoizedState;if(M!==null){if(M.dehydrated!==null)return Oc(n,Sv(Vl.current)),n.flags|=$t,null;var j=n.child,q=j.childLanes;if(Da(s,q))return d2(e,n,s);Oc(n,Sv(Vl.current));var fe=ks(e,n,s);return fe!==null?fe.sibling:null}else Oc(n,Sv(Vl.current));break}case J:{var se=(e.flags&$t)!==It,Te=Da(s,n.childLanes);if(se){if(Te)return m2(e,n,s);n.flags|=$t}var Ne=n.memoizedState;if(Ne!==null&&(Ne.rendering=null,Ne.tail=null,Ne.lastEffect=null),Oc(n,Vl.current),Te)break;return null}case X:case ne:return n.lanes=je,l2(e,n,s)}return ks(e,n,s)}function b2(e,n,s){if(n._debugNeedsRemount&&e!==null)return v9(e,n,QR(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes));if(e!==null){var c=e.memoizedProps,v=n.pendingProps;if(c!==v||Hb()||n.type!==e.type)ql=!0;else{var m=ER(e,s);if(!m&&(n.flags&$t)===It)return ql=!1,h9(e,n,s);(e.flags&vp)!==It?ql=!0:ql=!1}}else if(ql=!1,va()&&j6(n)){var C=n.index,k=U6();KM(n,k,C)}switch(n.lanes=je,n.tag){case b:return X8(e,n,n.type,s);case Z:{var M=n.elementType;return Y8(e,n,M,s)}case y:{var j=n.type,q=n.pendingProps,fe=n.elementType===j?q:Wl(j,q);return pR(e,n,j,fe,s)}case S:{var se=n.type,Te=n.pendingProps,Ne=n.elementType===se?Te:Wl(se,Te);return s2(e,n,se,Ne,s)}case R:return W8(e,n,s);case P:return q8(e,n,s);case N:return K8(e,n);case B:return d2(e,n,s);case _:return f9(e,n,s);case z:{var Pe=n.type,ut=n.pendingProps,Wt=n.elementType===Pe?ut:Wl(Pe,ut);return i2(e,n,Pe,Wt,s)}case L:return B8(e,n,s);case D:return V8(e,n,s);case V:return H8(e,n,s);case I:return d9(e,n,s);case H:return p9(e,n,s);case W:{var Mt=n.type,In=n.pendingProps,Tn=Wl(Mt,In);if(n.type!==n.elementType){var Ee=Mt.propTypes;Ee&&jl(Ee,Tn,"prop",hn(Mt))}return Tn=Wl(Mt.type,Tn),a2(e,n,Mt,Tn,s)}case K:return o2(e,n,n.type,n.pendingProps,s);case ie:{var Ae=n.type,Ce=n.pendingProps,Ye=n.elementType===Ae?Ce:Wl(Ae,Ce);return G8(e,n,Ae,Ye,s)}case J:return m2(e,n,s);case oe:break;case X:return l2(e,n,s)}throw new Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Tv(e){e.flags|=$n}function S2(e){e.flags|=Br,e.flags|=oc}var E2,CR,C2,w2;E2=function(e,n,s,c){for(var v=n.child;v!==null;){if(v.tag===P||v.tag===N)FH(e,v.stateNode);else if(v.tag!==_){if(v.child!==null){v.child.return=v,v=v.child;continue}}if(v===n)return;for(;v.sibling===null;){if(v.return===null||v.return===n)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},CR=function(e,n){},C2=function(e,n,s,c,v){var m=e.memoizedProps;if(m!==c){var C=n.stateNode,k=mx(),M=zH(C,s,m,c,v,k);n.updateQueue=M,M&&Tv(n)}},w2=function(e,n,s,c){s!==c&&Tv(n)};function bg(e,n){if(!va())switch(e.tailMode){case"hidden":{for(var s=e.tail,c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?e.tail=null:c.sibling=null;break}case"collapsed":{for(var v=e.tail,m=null;v!==null;)v.alternate!==null&&(m=v),v=v.sibling;m===null?!n&&e.tail!==null?e.tail.sibling=null:e.tail=null:m.sibling=null;break}}}function ma(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=je,c=It;if(n){if((e.mode&qn)!==zt){for(var M=e.selfBaseDuration,j=e.child;j!==null;)s=fn(s,fn(j.lanes,j.childLanes)),c|=j.subtreeFlags&ti,c|=j.flags&ti,M+=j.treeBaseDuration,j=j.sibling;e.treeBaseDuration=M}else for(var q=e.child;q!==null;)s=fn(s,fn(q.lanes,q.childLanes)),c|=q.subtreeFlags&ti,c|=q.flags&ti,q.return=e,q=q.sibling;e.subtreeFlags|=c}else{if((e.mode&qn)!==zt){for(var v=e.actualDuration,m=e.selfBaseDuration,C=e.child;C!==null;)s=fn(s,fn(C.lanes,C.childLanes)),c|=C.subtreeFlags,c|=C.flags,v+=C.actualDuration,m+=C.treeBaseDuration,C=C.sibling;e.actualDuration=v,e.treeBaseDuration=m}else for(var k=e.child;k!==null;)s=fn(s,fn(k.lanes,k.childLanes)),c|=k.subtreeFlags,c|=k.flags,k.return=e,k=k.sibling;e.subtreeFlags|=c}return e.childLanes=s,n}function m9(e,n,s){if(e8()&&(n.mode&yn)!==zt&&(n.flags&$t)===It)return eP(n),hv(),n.flags|=Ra|mf|Oa,!1;var c=Qb(n);if(s!==null&&s.dehydrated!==null)if(e===null){if(!c)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(J6(n),ma(n),(n.mode&qn)!==zt){var v=s!==null;if(v){var m=n.child;m!==null&&(n.treeBaseDuration-=m.treeBaseDuration)}}return!1}else{if(hv(),(n.flags&$t)===It&&(n.memoizedState=null),n.flags|=$n,ma(n),(n.mode&qn)!==zt){var C=s!==null;if(C){var k=n.child;k!==null&&(n.treeBaseDuration-=k.treeBaseDuration)}}return!1}else return tP(),!0}function x2(e,n,s){var c=n.pendingProps;switch(Y1(n),n.tag){case b:case Z:case K:case y:case z:case L:case D:case V:case H:case W:return ma(n),null;case S:{var v=n.type;return Ou(v)&&Wb(n),ma(n),null}case R:{var m=n.stateNode;if(bv(n),H1(n),Ex(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),e===null||e.child===null){var C=Qb(n);if(C)Tv(n);else if(e!==null){var k=e.memoizedState;(!k.isDehydrated||(n.flags&Ra)!==It)&&(n.flags|=vi,tP())}}return CR(e,n),ma(n),null}case P:{gx(n);var M=mP(),j=n.type;if(e!==null&&n.stateNode!=null)C2(e,n,j,c,M),e.ref!==n.ref&&S2(n);else{if(!c){if(n.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ma(n),null}var q=mx(),fe=Qb(n);if(fe)X6(n,M,q)&&Tv(n);else{var se=LH(j,c,M,q,n);E2(se,n,!1,!1),n.stateNode=se,IH(se,j,c,M)&&Tv(n)}n.ref!==null&&S2(n)}return ma(n),null}case N:{var Te=c;if(e&&n.stateNode!=null){var Ne=e.memoizedProps;w2(e,n,Ne,Te)}else{if(typeof Te!="string"&&n.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Pe=mP(),ut=mx(),Wt=Qb(n);Wt?Q6(n)&&Tv(n):n.stateNode=jH(Te,Pe,ut,n)}return ma(n),null}case B:{Ev(n);var Mt=n.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var In=m9(e,n,Mt);if(!In)return n.flags&Oa?n:null}if((n.flags&$t)!==It)return n.lanes=s,(n.mode&qn)!==zt&&qx(n),n;var Tn=Mt!==null,Ee=e!==null&&e.memoizedState!==null;if(Tn!==Ee&&Tn){var Ae=n.child;if(Ae.flags|=ei,(n.mode&yn)!==zt){var Ce=e===null&&(n.memoizedProps.unstable_avoidThisFallback!==!0||!0);Ce||yx(Vl.current,bP)?gW():jR()}}var Ye=n.updateQueue;if(Ye!==null&&(n.flags|=$n),ma(n),(n.mode&qn)!==zt&&Tn){var vt=n.child;vt!==null&&(n.treeBaseDuration-=vt.treeBaseDuration)}return null}case _:return bv(n),CR(e,n),e===null&&P6(n.stateNode.containerInfo),ma(n),null;case I:var ct=n.type._context;return ux(ct,n),ma(n),null;case ie:{var tn=n.type;return Ou(tn)&&Wb(n),ma(n),null}case J:{Ev(n);var ln=n.memoizedState;if(ln===null)return ma(n),null;var gr=(n.flags&$t)!==It,Gn=ln.rendering;if(Gn===null)if(gr)bg(ln,!1);else{var gi=bW()&&(e===null||(e.flags&$t)===It);if(!gi)for(var Xn=n.child;Xn!==null;){var li=pS(Xn);if(li!==null){gr=!0,n.flags|=$t,bg(ln,!1);var Ia=li.updateQueue;return Ia!==null&&(n.updateQueue=Ia,n.flags|=$n),n.subtreeFlags=It,l8(n,s),Oc(n,bx(Vl.current,og)),n.child}Xn=Xn.sibling}ln.tail!==null&&hi()>W2()&&(n.flags|=$t,gr=!0,bg(ln,!1),n.lanes=fm)}else{if(!gr){var Ea=pS(Gn);if(Ea!==null){n.flags|=$t,gr=!0;var Uo=Ea.updateQueue;if(Uo!==null&&(n.updateQueue=Uo,n.flags|=$n),bg(ln,!0),ln.tail===null&&ln.tailMode==="hidden"&&!Gn.alternate&&!va())return ma(n),null}else hi()*2-ln.renderingStartTime>W2()&&s!==Ya&&(n.flags|=$t,gr=!0,bg(ln,!1),n.lanes=fm)}if(ln.isBackwards)Gn.sibling=n.child,n.child=Gn;else{var eo=ln.last;eo!==null?eo.sibling=Gn:n.child=Gn,ln.last=Gn}}if(ln.tail!==null){var to=ln.tail;ln.rendering=to,ln.tail=to.sibling,ln.renderingStartTime=hi(),to.sibling=null;var za=Vl.current;return gr?za=bx(za,og):za=Sv(za),Oc(n,za),to}return ma(n),null}case oe:break;case X:case ne:{zR(n);var As=n.memoizedState,Av=As!==null;if(e!==null){var $g=e.memoizedState,$u=$g!==null;$u!==Av&&(n.flags|=ei)}return!Av||(n.mode&yn)===zt?ma(n):Da(Au,Ya)&&(ma(n),n.subtreeFlags&(Wr|$n)&&(n.flags|=ei)),null}case de:return null;case we:return null}throw new Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function g9(e,n,s){switch(Y1(n),n.tag){case S:{var c=n.type;Ou(c)&&Wb(n);var v=n.flags;return v&Oa?(n.flags=v&-65537|$t,(n.mode&qn)!==zt&&qx(n),n):null}case R:{n.stateNode,bv(n),H1(n),Ex();var m=n.flags;return(m&Oa)!==It&&(m&$t)===It?(n.flags=m&-65537|$t,n):null}case P:return gx(n),null;case B:{Ev(n);var C=n.memoizedState;if(C!==null&&C.dehydrated!==null){if(n.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");hv()}var k=n.flags;return k&Oa?(n.flags=k&-65537|$t,(n.mode&qn)!==zt&&qx(n),n):null}case J:return Ev(n),null;case _:return bv(n),null;case I:var M=n.type._context;return ux(M,n),null;case X:case ne:return zR(n),null;case de:return null;default:return null}}function R2(e,n,s){switch(Y1(n),n.tag){case S:{var c=n.type.childContextTypes;c!=null&&Wb(n);break}case R:{n.stateNode,bv(n),H1(n),Ex();break}case P:{gx(n);break}case _:bv(n);break;case B:Ev(n);break;case J:Ev(n);break;case I:var v=n.type._context;ux(v,n);break;case X:case ne:zR(n);break}}var T2=null;T2=new Set;var FS=!1,ga=!1,y9=typeof WeakSet=="function"?WeakSet:Set,Rt=null,Ov=null,_v=null;function b9(e){su(null,function(){throw e}),hf()}var S9=function(e,n){if(n.props=e.memoizedProps,n.state=e.memoizedState,e.mode&qn)try{Mu(),n.componentWillUnmount()}finally{Du(e)}else n.componentWillUnmount()};function O2(e,n){try{Nc(Bi,e)}catch(s){_r(e,n,s)}}function wR(e,n,s){try{S9(e,s)}catch(c){_r(e,n,c)}}function E9(e,n,s){try{s.componentDidMount()}catch(c){_r(e,n,c)}}function _2(e,n){try{N2(e)}catch(s){_r(e,n,s)}}function kv(e,n){var s=e.ref;if(s!==null)if(typeof s=="function"){var c;try{if(ye&&Le&&e.mode&qn)try{Mu(),c=s(null)}finally{Du(e)}else c=s(null)}catch(v){_r(e,n,v)}typeof c=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",jt(e))}else s.current=null}function IS(e,n,s){try{s()}catch(c){_r(e,n,c)}}var k2=!1;function C9(e,n){AH(e.containerInfo),Rt=n,w9();var s=k2;return k2=!1,s}function w9(){for(;Rt!==null;){var e=Rt,n=e.child;(e.subtreeFlags&fu)!==It&&n!==null?(n.return=e,Rt=n):x9()}}function x9(){for(;Rt!==null;){var e=Rt;Hn(e);try{R9(e)}catch(s){_r(e,e.return,s)}er();var n=e.sibling;if(n!==null){n.return=e.return,Rt=n;return}Rt=e.return}}function R9(e){var n=e.alternate,s=e.flags;if((s&vi)!==It){switch(Hn(e),e.tag){case y:case z:case K:break;case S:{if(n!==null){var c=n.memoizedProps,v=n.memoizedState,m=e.stateNode;e.type===e.elementType&&!ud&&(m.props!==e.memoizedProps&&f("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",jt(e)||"instance"),m.state!==e.memoizedState&&f("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",jt(e)||"instance"));var C=m.getSnapshotBeforeUpdate(e.elementType===e.type?c:Wl(e.type,c),v);{var k=T2;C===void 0&&!k.has(e.type)&&(k.add(e.type),f("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",jt(e)))}m.__reactInternalSnapshotBeforeUpdate=C}break}case R:{{var M=e.stateNode;a6(M.containerInfo)}break}case P:case N:case _:case ie:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}er()}}function Kl(e,n,s){var c=n.updateQueue,v=c!==null?c.lastEffect:null;if(v!==null){var m=v.next,C=m;do{if((C.tag&e)===e){var k=C.destroy;C.destroy=void 0,k!==void 0&&((e&ha)!==xo?Al(n):(e&Bi)!==xo&&yf(n),(e&_u)!==xo&&Mg(!0),IS(n,s,k),(e&_u)!==xo&&Mg(!1),(e&ha)!==xo?hu():(e&Bi)!==xo&&sm())}C=C.next}while(C!==m)}}function Nc(e,n){var s=n.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var v=c.next,m=v;do{if((m.tag&e)===e){(e&ha)!==xo?um(n):(e&Bi)!==xo&&Sp(n);var C=m.create;(e&_u)!==xo&&Mg(!0),m.destroy=C(),(e&_u)!==xo&&Mg(!1),(e&ha)!==xo?V0():(e&Bi)!==xo&&H0();{var k=m.destroy;if(k!==void 0&&typeof k!="function"){var M=void 0;(m.tag&Bi)!==It?M="useLayoutEffect":(m.tag&_u)!==It?M="useInsertionEffect":M="useEffect";var j=void 0;k===null?j=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof k.then=="function"?j=`
|
|
171
|
-
|
|
172
|
-
It looks like you wrote `+M+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
173
|
-
|
|
174
|
-
`+M+`(() => {
|
|
175
|
-
async function fetchData() {
|
|
176
|
-
// You can await here
|
|
177
|
-
const response = await MyAPI.getData(someId);
|
|
178
|
-
// ...
|
|
179
|
-
}
|
|
180
|
-
fetchData();
|
|
181
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
182
|
-
|
|
183
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:j=" You returned: "+k,f("%s must not return anything besides a function, which is used for clean-up.%s",M,j)}}}m=m.next}while(m!==v)}}function T9(e,n){if((n.flags&$n)!==It)switch(n.tag){case V:{var s=n.stateNode.passiveEffectDuration,c=n.memoizedProps,v=c.id,m=c.onPostCommit,C=WP(),k=n.alternate===null?"mount":"update";HP()&&(k="nested-update"),typeof m=="function"&&m(v,k,s,C);var M=n.return;e:for(;M!==null;){switch(M.tag){case R:var j=M.stateNode;j.passiveEffectDuration+=s;break e;case V:var q=M.stateNode;q.passiveEffectDuration+=s;break e}M=M.return}break}}}function O9(e,n,s,c){if((s.flags&pu)!==It)switch(s.tag){case y:case z:case K:{if(!ga)if(s.mode&qn)try{Mu(),Nc(Bi|Ui,s)}finally{Du(s)}else Nc(Bi|Ui,s);break}case S:{var v=s.stateNode;if(s.flags&$n&&!ga)if(n===null)if(s.type===s.elementType&&!ud&&(v.props!==s.memoizedProps&&f("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",jt(s)||"instance"),v.state!==s.memoizedState&&f("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",jt(s)||"instance")),s.mode&qn)try{Mu(),v.componentDidMount()}finally{Du(s)}else v.componentDidMount();else{var m=s.elementType===s.type?n.memoizedProps:Wl(s.type,n.memoizedProps),C=n.memoizedState;if(s.type===s.elementType&&!ud&&(v.props!==s.memoizedProps&&f("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",jt(s)||"instance"),v.state!==s.memoizedState&&f("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",jt(s)||"instance")),s.mode&qn)try{Mu(),v.componentDidUpdate(m,C,v.__reactInternalSnapshotBeforeUpdate)}finally{Du(s)}else v.componentDidUpdate(m,C,v.__reactInternalSnapshotBeforeUpdate)}var k=s.updateQueue;k!==null&&(s.type===s.elementType&&!ud&&(v.props!==s.memoizedProps&&f("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",jt(s)||"instance"),v.state!==s.memoizedState&&f("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",jt(s)||"instance")),hP(s,k,v));break}case R:{var M=s.updateQueue;if(M!==null){var j=null;if(s.child!==null)switch(s.child.tag){case P:j=s.child.stateNode;break;case S:j=s.child.stateNode;break}hP(s,M,j)}break}case P:{var q=s.stateNode;if(n===null&&s.flags&$n){var fe=s.type,se=s.memoizedProps;WH(q,fe,se)}break}case N:break;case _:break;case V:{{var Te=s.memoizedProps,Ne=Te.onCommit,Pe=Te.onRender,ut=s.stateNode.effectDuration,Wt=WP(),Mt=n===null?"mount":"update";HP()&&(Mt="nested-update"),typeof Pe=="function"&&Pe(s.memoizedProps.id,Mt,s.actualDuration,s.treeBaseDuration,s.actualStartTime,Wt);{typeof Ne=="function"&&Ne(s.memoizedProps.id,Mt,ut,Wt),xW(s);var In=s.return;e:for(;In!==null;){switch(In.tag){case R:var Tn=In.stateNode;Tn.effectDuration+=ut;break e;case V:var Ee=In.stateNode;Ee.effectDuration+=ut;break e}In=In.return}}}break}case B:{$9(e,s);break}case J:case ie:case oe:case X:case ne:case we:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}ga||s.flags&Br&&N2(s)}function _9(e){switch(e.tag){case y:case z:case K:{if(e.mode&qn)try{Mu(),O2(e,e.return)}finally{Du(e)}else O2(e,e.return);break}case S:{var n=e.stateNode;typeof n.componentDidMount=="function"&&E9(e,e.return,n),_2(e,e.return);break}case P:{_2(e,e.return);break}}}function k9(e,n){for(var s=null,c=e;;){if(c.tag===P){if(s===null){s=c;try{var v=c.stateNode;n?t6(v):r6(c.stateNode,c.memoizedProps)}catch(C){_r(e,e.return,C)}}}else if(c.tag===N){if(s===null)try{var m=c.stateNode;n?n6(m):i6(m,c.memoizedProps)}catch(C){_r(e,e.return,C)}}else if(!((c.tag===X||c.tag===ne)&&c.memoizedState!==null&&c!==e)){if(c.child!==null){c.child.return=c,c=c.child;continue}}if(c===e)return;for(;c.sibling===null;){if(c.return===null||c.return===e)return;s===c&&(s=null),c=c.return}s===c&&(s=null),c.sibling.return=c.return,c=c.sibling}}function N2(e){var n=e.ref;if(n!==null){var s=e.stateNode,c;switch(e.tag){case P:c=s;break;default:c=s}if(typeof n=="function"){var v;if(e.mode&qn)try{Mu(),v=n(c)}finally{Du(e)}else v=n(c);typeof v=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",jt(e))}else n.hasOwnProperty("current")||f("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",jt(e)),n.current=c}}function N9(e){var n=e.alternate;n!==null&&(n.return=null),e.return=null}function D2(e){var n=e.alternate;n!==null&&(e.alternate=null,D2(n));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===P){var s=e.stateNode;s!==null&&L6(s)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function D9(e){for(var n=e.return;n!==null;){if(M2(n))return n;n=n.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function M2(e){return e.tag===P||e.tag===R||e.tag===_}function P2(e){var n=e;e:for(;;){for(;n.sibling===null;){if(n.return===null||M2(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==P&&n.tag!==N&&n.tag!==Y;){if(n.flags&Wr||n.child===null||n.tag===_)continue e;n.child.return=n,n=n.child}if(!(n.flags&Wr))return n.stateNode}}function M9(e){var n=D9(e);switch(n.tag){case P:{var s=n.stateNode;n.flags&Ao&&($M(s),n.flags&=-33);var c=P2(e);RR(e,c,s);break}case R:case _:{var v=n.stateNode.containerInfo,m=P2(e);xR(e,m,v);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function xR(e,n,s){var c=e.tag,v=c===P||c===N;if(v){var m=e.stateNode;n?QH(s,m,n):GH(s,m)}else if(c!==_){var C=e.child;if(C!==null){xR(C,n,s);for(var k=C.sibling;k!==null;)xR(k,n,s),k=k.sibling}}}function RR(e,n,s){var c=e.tag,v=c===P||c===N;if(v){var m=e.stateNode;n?XH(s,m,n):YH(s,m)}else if(c!==_){var C=e.child;if(C!==null){RR(C,n,s);for(var k=C.sibling;k!==null;)RR(k,n,s),k=k.sibling}}}var ya=null,Yl=!1;function P9(e,n,s){{var c=n;e:for(;c!==null;){switch(c.tag){case P:{ya=c.stateNode,Yl=!1;break e}case R:{ya=c.stateNode.containerInfo,Yl=!0;break e}case _:{ya=c.stateNode.containerInfo,Yl=!0;break e}}c=c.return}if(ya===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");A2(e,n,s),ya=null,Yl=!1}N9(s)}function Dc(e,n,s){for(var c=s.child;c!==null;)A2(e,n,c),c=c.sibling}function A2(e,n,s){switch(am(s),s.tag){case P:ga||kv(s,n);case N:{{var c=ya,v=Yl;ya=null,Dc(e,n,s),ya=c,Yl=v,ya!==null&&(Yl?ZH(ya,s.stateNode):JH(ya,s.stateNode))}return}case Y:{ya!==null&&(Yl?e6(ya,s.stateNode):L1(ya,s.stateNode));return}case _:{{var m=ya,C=Yl;ya=s.stateNode.containerInfo,Yl=!0,Dc(e,n,s),ya=m,Yl=C}return}case y:case z:case W:case K:{if(!ga){var k=s.updateQueue;if(k!==null){var M=k.lastEffect;if(M!==null){var j=M.next,q=j;do{var fe=q,se=fe.destroy,Te=fe.tag;se!==void 0&&((Te&_u)!==xo?IS(s,n,se):(Te&Bi)!==xo&&(yf(s),s.mode&qn?(Mu(),IS(s,n,se),Du(s)):IS(s,n,se),sm())),q=q.next}while(q!==j)}}}Dc(e,n,s);return}case S:{if(!ga){kv(s,n);var Ne=s.stateNode;typeof Ne.componentWillUnmount=="function"&&wR(s,n,Ne)}Dc(e,n,s);return}case oe:{Dc(e,n,s);return}case X:{if(s.mode&yn){var Pe=ga;ga=Pe||s.memoizedState!==null,Dc(e,n,s),ga=Pe}else Dc(e,n,s);break}default:{Dc(e,n,s);return}}}function A9(e){e.memoizedState}function $9(e,n){var s=n.memoizedState;if(s===null){var c=n.alternate;if(c!==null){var v=c.memoizedState;if(v!==null){var m=v.dehydrated;m!==null&&b6(m)}}}}function $2(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new y9),n.forEach(function(c){var v=DW.bind(null,e,c);if(!s.has(c)){if(s.add(c),Na)if(Ov!==null&&_v!==null)Dg(_v,Ov);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");c.then(v,v)}})}}function L9(e,n,s){Ov=s,_v=e,Hn(n),L2(n,e),Hn(n),Ov=null,_v=null}function Gl(e,n,s){var c=n.deletions;if(c!==null)for(var v=0;v<c.length;v++){var m=c[v];try{P9(e,n,m)}catch(M){_r(m,n,M)}}var C=uo();if(n.subtreeFlags&du)for(var k=n.child;k!==null;)Hn(k),L2(k,e),k=k.sibling;Hn(C)}function L2(e,n,s){var c=e.alternate,v=e.flags;switch(e.tag){case y:case z:case W:case K:{if(Gl(n,e),Pu(e),v&$n){try{Kl(_u|Ui,e,e.return),Nc(_u|Ui,e)}catch(tn){_r(e,e.return,tn)}if(e.mode&qn){try{Mu(),Kl(Bi|Ui,e,e.return)}catch(tn){_r(e,e.return,tn)}Du(e)}else try{Kl(Bi|Ui,e,e.return)}catch(tn){_r(e,e.return,tn)}}return}case S:{Gl(n,e),Pu(e),v&Br&&c!==null&&kv(c,c.return);return}case P:{Gl(n,e),Pu(e),v&Br&&c!==null&&kv(c,c.return);{if(e.flags&Ao){var m=e.stateNode;try{$M(m)}catch(tn){_r(e,e.return,tn)}}if(v&$n){var C=e.stateNode;if(C!=null){var k=e.memoizedProps,M=c!==null?c.memoizedProps:k,j=e.type,q=e.updateQueue;if(e.updateQueue=null,q!==null)try{qH(C,q,j,M,k,e)}catch(tn){_r(e,e.return,tn)}}}}return}case N:{if(Gl(n,e),Pu(e),v&$n){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var fe=e.stateNode,se=e.memoizedProps,Te=c!==null?c.memoizedProps:se;try{KH(fe,Te,se)}catch(tn){_r(e,e.return,tn)}}return}case R:{if(Gl(n,e),Pu(e),v&$n&&c!==null){var Ne=c.memoizedState;if(Ne.isDehydrated)try{y6(n.containerInfo)}catch(tn){_r(e,e.return,tn)}}return}case _:{Gl(n,e),Pu(e);return}case B:{Gl(n,e),Pu(e);var Pe=e.child;if(Pe.flags&ei){var ut=Pe.stateNode,Wt=Pe.memoizedState,Mt=Wt!==null;if(ut.isHidden=Mt,Mt){var In=Pe.alternate!==null&&Pe.alternate.memoizedState!==null;In||mW()}}if(v&$n){try{A9(e)}catch(tn){_r(e,e.return,tn)}$2(e)}return}case X:{var Tn=c!==null&&c.memoizedState!==null;if(e.mode&yn){var Ee=ga;ga=Ee||Tn,Gl(n,e),ga=Ee}else Gl(n,e);if(Pu(e),v&ei){var Ae=e.stateNode,Ce=e.memoizedState,Ye=Ce!==null,vt=e;if(Ae.isHidden=Ye,Ye&&!Tn&&(vt.mode&yn)!==zt){Rt=vt;for(var ct=vt.child;ct!==null;)Rt=ct,I9(ct),ct=ct.sibling}k9(vt,Ye)}return}case J:{Gl(n,e),Pu(e),v&$n&&$2(e);return}case oe:return;default:{Gl(n,e),Pu(e);return}}}function Pu(e){var n=e.flags;if(n&Wr){try{M9(e)}catch(s){_r(e,e.return,s)}e.flags&=-3}n&vo&&(e.flags&=-4097)}function F9(e,n,s){Ov=s,_v=n,Rt=e,F2(e,n,s),Ov=null,_v=null}function F2(e,n,s){for(var c=(e.mode&yn)!==zt;Rt!==null;){var v=Rt,m=v.child;if(v.tag===X&&c){var C=v.memoizedState!==null,k=C||FS;if(k){TR(e,n,s);continue}else{var M=v.alternate,j=M!==null&&M.memoizedState!==null,q=j||ga,fe=FS,se=ga;FS=k,ga=q,ga&&!se&&(Rt=v,z9(v));for(var Te=m;Te!==null;)Rt=Te,F2(Te,n,s),Te=Te.sibling;Rt=v,FS=fe,ga=se,TR(e,n,s);continue}}(v.subtreeFlags&pu)!==It&&m!==null?(m.return=v,Rt=m):TR(e,n,s)}}function TR(e,n,s){for(;Rt!==null;){var c=Rt;if((c.flags&pu)!==It){var v=c.alternate;Hn(c);try{O9(n,v,c,s)}catch(C){_r(c,c.return,C)}er()}if(c===e){Rt=null;return}var m=c.sibling;if(m!==null){m.return=c.return,Rt=m;return}Rt=c.return}}function I9(e){for(;Rt!==null;){var n=Rt,s=n.child;switch(n.tag){case y:case z:case W:case K:{if(n.mode&qn)try{Mu(),Kl(Bi,n,n.return)}finally{Du(n)}else Kl(Bi,n,n.return);break}case S:{kv(n,n.return);var c=n.stateNode;typeof c.componentWillUnmount=="function"&&wR(n,n.return,c);break}case P:{kv(n,n.return);break}case X:{var v=n.memoizedState!==null;if(v){I2(e);continue}break}}s!==null?(s.return=n,Rt=s):I2(e)}}function I2(e){for(;Rt!==null;){var n=Rt;if(n===e){Rt=null;return}var s=n.sibling;if(s!==null){s.return=n.return,Rt=s;return}Rt=n.return}}function z9(e){for(;Rt!==null;){var n=Rt,s=n.child;if(n.tag===X){var c=n.memoizedState!==null;if(c){z2(e);continue}}s!==null?(s.return=n,Rt=s):z2(e)}}function z2(e){for(;Rt!==null;){var n=Rt;Hn(n);try{_9(n)}catch(c){_r(n,n.return,c)}if(er(),n===e){Rt=null;return}var s=n.sibling;if(s!==null){s.return=n.return,Rt=s;return}Rt=n.return}}function j9(e,n,s,c){Rt=n,U9(n,e,s,c)}function U9(e,n,s,c){for(;Rt!==null;){var v=Rt,m=v.child;(v.subtreeFlags&Ml)!==It&&m!==null?(m.return=v,Rt=m):B9(e,n,s,c)}}function B9(e,n,s,c){for(;Rt!==null;){var v=Rt;if((v.flags&Ta)!==It){Hn(v);try{V9(n,v,s,c)}catch(C){_r(v,v.return,C)}er()}if(v===e){Rt=null;return}var m=v.sibling;if(m!==null){m.return=v.return,Rt=m;return}Rt=v.return}}function V9(e,n,s,c){switch(n.tag){case y:case z:case K:{if(n.mode&qn){Wx();try{Nc(ha|Ui,n)}finally{Hx(n)}}else Nc(ha|Ui,n);break}}}function H9(e){Rt=e,W9()}function W9(){for(;Rt!==null;){var e=Rt,n=e.child;if((Rt.flags&po)!==It){var s=e.deletions;if(s!==null){for(var c=0;c<s.length;c++){var v=s[c];Rt=v,Y9(v,e)}{var m=e.alternate;if(m!==null){var C=m.child;if(C!==null){m.child=null;do{var k=C.sibling;C.sibling=null,C=k}while(C!==null)}}}Rt=e}}(e.subtreeFlags&Ml)!==It&&n!==null?(n.return=e,Rt=n):q9()}}function q9(){for(;Rt!==null;){var e=Rt;(e.flags&Ta)!==It&&(Hn(e),K9(e),er());var n=e.sibling;if(n!==null){n.return=e.return,Rt=n;return}Rt=e.return}}function K9(e){switch(e.tag){case y:case z:case K:{e.mode&qn?(Wx(),Kl(ha|Ui,e,e.return),Hx(e)):Kl(ha|Ui,e,e.return);break}}}function Y9(e,n){for(;Rt!==null;){var s=Rt;Hn(s),X9(s,n),er();var c=s.child;c!==null?(c.return=s,Rt=c):G9(e)}}function G9(e){for(;Rt!==null;){var n=Rt,s=n.sibling,c=n.return;if(D2(n),n===e){Rt=null;return}if(s!==null){s.return=c,Rt=s;return}Rt=c}}function X9(e,n){switch(e.tag){case y:case z:case K:{e.mode&qn?(Wx(),Kl(ha,e,n),Hx(e)):Kl(ha,e,n);break}}}function Q9(e){switch(e.tag){case y:case z:case K:{try{Nc(Bi|Ui,e)}catch(s){_r(e,e.return,s)}break}case S:{var n=e.stateNode;try{n.componentDidMount()}catch(s){_r(e,e.return,s)}break}}}function J9(e){switch(e.tag){case y:case z:case K:{try{Nc(ha|Ui,e)}catch(n){_r(e,e.return,n)}break}}}function Z9(e){switch(e.tag){case y:case z:case K:{try{Kl(Bi|Ui,e,e.return)}catch(s){_r(e,e.return,s)}break}case S:{var n=e.stateNode;typeof n.componentWillUnmount=="function"&&wR(e,e.return,n);break}}}function eW(e){switch(e.tag){case y:case z:case K:try{Kl(ha|Ui,e,e.return)}catch(n){_r(e,e.return,n)}}}if(typeof Symbol=="function"&&Symbol.for){var Sg=Symbol.for;Sg("selector.component"),Sg("selector.has_pseudo_class"),Sg("selector.role"),Sg("selector.test_id"),Sg("selector.text")}var tW=[];function nW(){tW.forEach(function(e){return e()})}var rW=i.ReactCurrentActQueue;function iW(e){{var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&n!==!1}}function j2(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&rW.current!==null&&f("The current testing environment is not configured to support act(...)"),e}}var aW=Math.ceil,OR=i.ReactCurrentDispatcher,_R=i.ReactCurrentOwner,ba=i.ReactCurrentBatchConfig,Xl=i.ReactCurrentActQueue,Wi=0,U2=1,Sa=2,pl=4,Ns=0,Eg=1,sd=2,zS=3,Cg=4,B2=5,kR=6,Fn=Wi,Ja=null,Qr=null,qi=je,Au=je,NR=Ec(je),Ki=Ns,wg=null,jS=je,xg=je,US=je,Rg=null,Ro=null,DR=0,V2=500,H2=1/0,oW=500,Ds=null;function Tg(){H2=hi()+oW}function W2(){return H2}var BS=!1,MR=null,Nv=null,cd=!1,Mc=null,Og=je,PR=[],AR=null,lW=50,_g=0,$R=null,LR=!1,VS=!1,uW=50,Dv=0,HS=null,kg=br,WS=je,q2=!1;function qS(){return Ja}function Za(){return(Fn&(Sa|pl))!==Wi?hi():(kg!==br||(kg=hi()),kg)}function Pc(e){var n=e.mode;if((n&yn)===zt)return Jt;if((Fn&Sa)!==Wi&&qi!==je)return Df(qi);var s=r8()!==n8;if(s){if(ba.transition!==null){var c=ba.transition;c._updatedFibers||(c._updatedFibers=new Set),c._updatedFibers.add(e)}return WS===Wn&&(WS=gm()),WS}var v=So();if(v!==Wn)return v;var m=UH();return m}function sW(e){var n=e.mode;return(n&yn)===zt?Jt:X0()}function Yi(e,n,s,c){PW(),q2&&f("useInsertionEffect must not schedule updates."),LR&&(VS=!0),cc(e,s,c),(Fn&Sa)!==je&&e===Ja?LW(n):(Na&&Af(e,n,s),FW(n),e===Ja&&((Fn&Sa)===Wi&&(xg=fn(xg,s)),Ki===Cg&&Ac(e,qi)),To(e,c),s===Jt&&Fn===Wi&&(n.mode&yn)===zt&&!Xl.isBatchingLegacy&&(Tg(),qM()))}function cW(e,n,s){var c=e.current;c.lanes=n,cc(e,n,s),To(e,s)}function fW(e){return(Fn&Sa)!==Wi}function To(e,n){var s=e.callbackNode;jp(e,n);var c=zp(e,e===Ja?qi:je);if(c===je){s!==null&&uA(s),e.callbackNode=null,e.callbackPriority=Wn;return}var v=yu(c),m=e.callbackPriority;if(m===v&&!(Xl.current!==null&&s!==VR)){s==null&&m!==Jt&&f("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&uA(s);var C;if(v===Jt)e.tag===Cc?(Xl.isBatchingLegacy!==null&&(Xl.didScheduleLegacyUpdate=!0),z6(G2.bind(null,e))):WM(G2.bind(null,e)),Xl.current!==null?Xl.current.push(wc):VH(function(){(Fn&(Sa|pl))===Wi&&wc()}),C=null;else{var k;switch(rb(c)){case sa:k=gf;break;case rl:k=vu;break;case yo:k=Pl;break;case bo:k=is;break;default:k=Pl;break}C=HR(k,K2.bind(null,e))}e.callbackPriority=v,e.callbackNode=C}function K2(e,n){if(k8(),kg=br,WS=je,(Fn&(Sa|pl))!==Wi)throw new Error("Should not already be working.");var s=e.callbackNode,c=Ps();if(c&&e.callbackNode!==s)return null;var v=zp(e,e===Ja?qi:je);if(v===je)return null;var m=!Bp(e,v)&&!G0(e,v)&&!n,C=m?EW(e,v):YS(e,v);if(C!==Ns){if(C===sd){var k=Up(e);k!==je&&(v=k,C=FR(e,k))}if(C===Eg){var M=wg;throw fd(e,je),Ac(e,v),To(e,hi()),M}if(C===kR)Ac(e,v);else{var j=!Bp(e,v),q=e.current.alternate;if(j&&!pW(q)){if(C=YS(e,v),C===sd){var fe=Up(e);fe!==je&&(v=fe,C=FR(e,fe))}if(C===Eg){var se=wg;throw fd(e,je),Ac(e,v),To(e,hi()),se}}e.finishedWork=q,e.finishedLanes=v,dW(e,C,v)}}return To(e,hi()),e.callbackNode===s?K2.bind(null,e):null}function FR(e,n){var s=Rg;if(Wp(e)){var c=fd(e,n);c.flags|=Ra,M6(e.containerInfo)}var v=YS(e,n);if(v!==sd){var m=Ro;Ro=s,m!==null&&Y2(m)}return v}function Y2(e){Ro===null?Ro=e:Ro.push.apply(Ro,e)}function dW(e,n,s){switch(n){case Ns:case Eg:throw new Error("Root did not complete. This is a bug in React.");case sd:{dd(e,Ro,Ds);break}case zS:{if(Ac(e,s),hs(s)&&!sA()){var c=DR+V2-hi();if(c>10){var v=zp(e,je);if(v!==je)break;var m=e.suspendedLanes;if(!ms(m,s)){Za(),Vp(e,m);break}e.timeoutHandle=A1(dd.bind(null,e,Ro,Ds),c);break}}dd(e,Ro,Ds);break}case Cg:{if(Ac(e,s),hm(s))break;if(!sA()){var C=Lo(e,s),k=C,M=hi()-k,j=MW(M)-M;if(j>10){e.timeoutHandle=A1(dd.bind(null,e,Ro,Ds),j);break}}dd(e,Ro,Ds);break}case B2:{dd(e,Ro,Ds);break}default:throw new Error("Unknown root exit status.")}}function pW(e){for(var n=e;;){if(n.flags&ac){var s=n.updateQueue;if(s!==null){var c=s.stores;if(c!==null)for(var v=0;v<c.length;v++){var m=c[v],C=m.getSnapshot,k=m.value;try{if(!He(C(),k))return!1}catch{return!1}}}}var M=n.child;if(n.subtreeFlags&ac&&M!==null){M.return=n,n=M;continue}if(n===e)return!0;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}return!0}function Ac(e,n){n=Mf(n,US),n=Mf(n,xg),Z0(e,n)}function G2(e){if(N8(),(Fn&(Sa|pl))!==Wi)throw new Error("Should not already be working.");Ps();var n=zp(e,je);if(!Da(n,Jt))return To(e,hi()),null;var s=YS(e,n);if(e.tag!==Cc&&s===sd){var c=Up(e);c!==je&&(n=c,s=FR(e,c))}if(s===Eg){var v=wg;throw fd(e,je),Ac(e,n),To(e,hi()),v}if(s===kR)throw new Error("Root did not complete. This is a bug in React.");var m=e.current.alternate;return e.finishedWork=m,e.finishedLanes=n,dd(e,Ro,Ds),To(e,hi()),null}function vW(e,n){n!==je&&(Hp(e,fn(n,Jt)),To(e,hi()),(Fn&(Sa|pl))===Wi&&(Tg(),wc()))}function IR(e,n){var s=Fn;Fn|=U2;try{return e(n)}finally{Fn=s,Fn===Wi&&!Xl.isBatchingLegacy&&(Tg(),qM())}}function hW(e,n,s,c,v){var m=So(),C=ba.transition;try{return ba.transition=null,ii(sa),e(n,s,c,v)}finally{ii(m),ba.transition=C,Fn===Wi&&Tg()}}function Ms(e){Mc!==null&&Mc.tag===Cc&&(Fn&(Sa|pl))===Wi&&Ps();var n=Fn;Fn|=U2;var s=ba.transition,c=So();try{return ba.transition=null,ii(sa),e?e():void 0}finally{ii(c),ba.transition=s,Fn=n,(Fn&(Sa|pl))===Wi&&wc()}}function X2(){return(Fn&(Sa|pl))!==Wi}function KS(e,n){La(NR,Au,e),Au=fn(Au,n)}function zR(e){Au=NR.current,$a(NR,e)}function fd(e,n){e.finishedWork=null,e.finishedLanes=je;var s=e.timeoutHandle;if(s!==$1&&(e.timeoutHandle=$1,BH(s)),Qr!==null)for(var c=Qr.return;c!==null;){var v=c.alternate;R2(v,c),c=c.return}Ja=e;var m=pd(e.current,null);return Qr=m,qi=Au=n,Ki=Ns,wg=null,jS=je,xg=je,US=je,Rg=null,Ro=null,c8(),Bl.discardPendingWarnings(),m}function Q2(e,n){do{var s=Qr;try{if(rS(),EP(),er(),_R.current=null,s===null||s.return===null){Ki=Eg,wg=n,Qr=null;return}if(ye&&s.mode&qn&&MS(s,!0),De)if(Ka(),n!==null&&typeof n=="object"&&typeof n.then=="function"){var c=n;nl(s,c,qi)}else bf(s,n,qi);z8(e,s.return,s,n,qi),tA(s)}catch(v){n=v,Qr===s&&s!==null?(s=s.return,Qr=s):s=Qr;continue}return}while(!0)}function J2(){var e=OR.current;return OR.current=OS,e===null?OS:e}function Z2(e){OR.current=e}function mW(){DR=hi()}function Ng(e){jS=fn(e,jS)}function gW(){Ki===Ns&&(Ki=zS)}function jR(){(Ki===Ns||Ki===zS||Ki===sd)&&(Ki=Cg),Ja!==null&&(Nf(jS)||Nf(xg))&&Ac(Ja,qi)}function yW(e){Ki!==Cg&&(Ki=sd),Rg===null?Rg=[e]:Rg.push(e)}function bW(){return Ki===Ns}function YS(e,n){var s=Fn;Fn|=Sa;var c=J2();if(Ja!==e||qi!==n){if(Na){var v=e.memoizedUpdaters;v.size>0&&(Dg(e,qi),v.clear()),eb(e,n)}Ds=Em(),fd(e,n)}us(n);do try{SW();break}catch(m){Q2(e,m)}while(!0);if(rS(),Fn=s,Z2(c),Qr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Ep(),Ja=null,qi=je,Ki}function SW(){for(;Qr!==null;)eA(Qr)}function EW(e,n){var s=Fn;Fn|=Sa;var c=J2();if(Ja!==e||qi!==n){if(Na){var v=e.memoizedUpdaters;v.size>0&&(Dg(e,qi),v.clear()),eb(e,n)}Ds=Em(),Tg(),fd(e,n)}us(n);do try{CW();break}catch(m){Q2(e,m)}while(!0);return rS(),Z2(c),Fn=s,Qr!==null?(W0(),Ns):(Ep(),Ja=null,qi=je,Ki)}function CW(){for(;Qr!==null&&!em();)eA(Qr)}function eA(e){var n=e.alternate;Hn(e);var s;(e.mode&qn)!==zt?(Vx(e),s=UR(n,e,Au),MS(e,!0)):s=UR(n,e,Au),er(),e.memoizedProps=e.pendingProps,s===null?tA(e):Qr=s,_R.current=null}function tA(e){var n=e;do{var s=n.alternate,c=n.return;if((n.flags&mf)===It){Hn(n);var v=void 0;if((n.mode&qn)===zt?v=x2(s,n,Au):(Vx(n),v=x2(s,n,Au),MS(n,!1)),er(),v!==null){Qr=v;return}}else{var m=g9(s,n);if(m!==null){m.flags&=z0,Qr=m;return}if((n.mode&qn)!==zt){MS(n,!1);for(var C=n.actualDuration,k=n.child;k!==null;)C+=k.actualDuration,k=k.sibling;n.actualDuration=C}if(c!==null)c.flags|=mf,c.subtreeFlags=It,c.deletions=null;else{Ki=kR,Qr=null;return}}var M=n.sibling;if(M!==null){Qr=M;return}n=c,Qr=n}while(n!==null);Ki===Ns&&(Ki=B2)}function dd(e,n,s){var c=So(),v=ba.transition;try{ba.transition=null,ii(sa),wW(e,n,s,c)}finally{ba.transition=v,ii(c)}return null}function wW(e,n,s,c){do Ps();while(Mc!==null);if(AW(),(Fn&(Sa|pl))!==Wi)throw new Error("Should not already be working.");var v=e.finishedWork,m=e.finishedLanes;if(om(m),v===null)return lm(),null;if(m===je&&f("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=je,v===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=Wn;var C=fn(v.lanes,v.childLanes);bm(e,C),e===Ja&&(Ja=null,Qr=null,qi=je),((v.subtreeFlags&Ml)!==It||(v.flags&Ml)!==It)&&(cd||(cd=!0,AR=s,HR(Pl,function(){return Ps(),null})));var k=(v.subtreeFlags&(fu|du|pu|Ml))!==It,M=(v.flags&(fu|du|pu|Ml))!==It;if(k||M){var j=ba.transition;ba.transition=null;var q=So();ii(sa);var fe=Fn;Fn|=pl,_R.current=null,C9(e,v),qP(),L9(e,v,m),$H(e.containerInfo),e.current=v,Sf(m),F9(v,e,m),Ef(),tm(),Fn=fe,ii(q),ba.transition=j}else e.current=v,qP();var se=cd;if(cd?(cd=!1,Mc=e,Og=m):(Dv=0,HS=null),C=e.pendingLanes,C===je&&(Nv=null),se||aA(e.current,!1),rm(v.stateNode,c),Na&&e.memoizedUpdaters.clear(),nW(),To(e,hi()),n!==null)for(var Te=e.onRecoverableError,Ne=0;Ne<n.length;Ne++){var Pe=n[Ne],ut=Pe.stack,Wt=Pe.digest;Te(Pe.value,{componentStack:ut,digest:Wt})}if(BS){BS=!1;var Mt=MR;throw MR=null,Mt}return Da(Og,Jt)&&e.tag!==Cc&&Ps(),C=e.pendingLanes,Da(C,Jt)?(_8(),e===$R?_g++:(_g=0,$R=e)):_g=0,wc(),lm(),null}function Ps(){if(Mc!==null){var e=rb(Og),n=Lf(yo,e),s=ba.transition,c=So();try{return ba.transition=null,ii(n),RW()}finally{ii(c),ba.transition=s}}return!1}function xW(e){PR.push(e),cd||(cd=!0,HR(Pl,function(){return Ps(),null}))}function RW(){if(Mc===null)return!1;var e=AR;AR=null;var n=Mc,s=Og;if(Mc=null,Og=je,(Fn&(Sa|pl))!==Wi)throw new Error("Cannot flush passive effects while already rendering.");LR=!0,VS=!1,ls(s);var c=Fn;Fn|=pl,H9(n.current),j9(n,n.current,s,e);{var v=PR;PR=[];for(var m=0;m<v.length;m++){var C=v[m];T9(n,C)}}cm(),aA(n.current,!0),Fn=c,wc(),VS?n===HS?Dv++:(Dv=0,HS=n):Dv=0,LR=!1,VS=!1,im(n);{var k=n.current.stateNode;k.effectDuration=0,k.passiveEffectDuration=0}return!0}function nA(e){return Nv!==null&&Nv.has(e)}function TW(e){Nv===null?Nv=new Set([e]):Nv.add(e)}function OW(e){BS||(BS=!0,MR=e)}var _W=OW;function rA(e,n,s){var c=ld(s,n),v=e2(e,c,Jt),m=Rc(e,v,Jt),C=Za();m!==null&&(cc(m,Jt,C),To(m,C))}function _r(e,n,s){if(b9(s),Mg(!1),e.tag===R){rA(e,e,s);return}var c=null;for(c=n;c!==null;){if(c.tag===R){rA(c,e,s);return}else if(c.tag===S){var v=c.type,m=c.stateNode;if(typeof v.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&!nA(m)){var C=ld(s,e),k=lR(c,C,Jt),M=Rc(c,k,Jt),j=Za();M!==null&&(cc(M,Jt,j),To(M,j));return}}c=c.return}f(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
184
|
-
|
|
185
|
-
Error message:
|
|
186
|
-
|
|
187
|
-
%s`,s)}function kW(e,n,s){var c=e.pingCache;c!==null&&c.delete(n);var v=Za();Vp(e,s),IW(e),Ja===e&&ms(qi,s)&&(Ki===Cg||Ki===zS&&hs(qi)&&hi()-DR<V2?fd(e,je):US=fn(US,s)),To(e,v)}function iA(e,n){n===Wn&&(n=sW(e));var s=Za(),c=wo(e,n);c!==null&&(cc(c,n,s),To(c,s))}function NW(e){var n=e.memoizedState,s=Wn;n!==null&&(s=n.retryLane),iA(e,s)}function DW(e,n){var s=Wn,c;switch(e.tag){case B:c=e.stateNode;var v=e.memoizedState;v!==null&&(s=v.retryLane);break;case J:c=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}c!==null&&c.delete(n),iA(e,s)}function MW(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:aW(e/1960)*1960}function PW(){if(_g>lW)throw _g=0,$R=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Dv>uW&&(Dv=0,HS=null,f("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function AW(){Bl.flushLegacyContextWarning(),Bl.flushPendingUnsafeLifecycleWarnings()}function aA(e,n){Hn(e),GS(e,cu,Z9),n&&GS(e,Zo,eW),GS(e,cu,Q9),n&&GS(e,Zo,J9),er()}function GS(e,n,s){for(var c=e,v=null;c!==null;){var m=c.subtreeFlags&n;c!==v&&c.child!==null&&m!==It?c=c.child:((c.flags&n)!==It&&s(c),c.sibling!==null?c=c.sibling:c=v=c.return)}}var XS=null;function oA(e){{if((Fn&Sa)!==Wi||!(e.mode&yn))return;var n=e.tag;if(n!==b&&n!==R&&n!==S&&n!==y&&n!==z&&n!==W&&n!==K)return;var s=jt(e)||"ReactComponent";if(XS!==null){if(XS.has(s))return;XS.add(s)}else XS=new Set([s]);var c=Ur;try{Hn(e),f("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{c?Hn(e):er()}}}var UR;{var $W=null;UR=function(e,n,s){var c=vA($W,n);try{return b2(e,n,s)}catch(m){if(K6()||m!==null&&typeof m=="object"&&typeof m.then=="function")throw m;if(rS(),EP(),R2(e,n),vA(n,c),n.mode&qn&&Vx(n),su(null,b2,null,e,n,s),Nl()){var v=hf();typeof v=="object"&&v!==null&&v._suppressLogging&&typeof m=="object"&&m!==null&&!m._suppressLogging&&(m._suppressLogging=!0)}throw m}}}var lA=!1,BR;BR=new Set;function LW(e){if(Li&&!R8())switch(e.tag){case y:case z:case K:{var n=Qr&&jt(Qr)||"Unknown",s=n;if(!BR.has(s)){BR.add(s);var c=jt(e)||"Unknown";f("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",c,n,n)}break}case S:{lA||(f("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),lA=!0);break}}}function Dg(e,n){if(Na){var s=e.memoizedUpdaters;s.forEach(function(c){Af(e,c,n)})}}var VR={};function HR(e,n){{var s=Xl.current;return s!==null?(s.push(n),VR):Zh(e,n)}}function uA(e){if(e!==VR)return U0(e)}function sA(){return Xl.current!==null}function FW(e){{if(e.mode&yn){if(!j2())return}else if(!iW()||Fn!==Wi||e.tag!==y&&e.tag!==z&&e.tag!==K)return;if(Xl.current===null){var n=Ur;try{Hn(e),f(`An update to %s inside a test was not wrapped in act(...).
|
|
188
|
-
|
|
189
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
190
|
-
|
|
191
|
-
act(() => {
|
|
192
|
-
/* fire events that update state */
|
|
193
|
-
});
|
|
194
|
-
/* assert on the output */
|
|
195
|
-
|
|
196
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,jt(e))}finally{n?Hn(e):er()}}}}function IW(e){e.tag!==Cc&&j2()&&Xl.current===null&&f(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
197
|
-
|
|
198
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
199
|
-
|
|
200
|
-
act(() => {
|
|
201
|
-
/* finish loading suspended data */
|
|
202
|
-
});
|
|
203
|
-
/* assert on the output */
|
|
204
|
-
|
|
205
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Mg(e){q2=e}var vl=null,Mv=null,zW=function(e){vl=e};function Pv(e){{if(vl===null)return e;var n=vl(e);return n===void 0?e:n.current}}function WR(e){return Pv(e)}function qR(e){{if(vl===null)return e;var n=vl(e);if(n===void 0){if(e!=null&&typeof e.render=="function"){var s=Pv(e.render);if(e.render!==s){var c={$$typeof:ze,render:s};return e.displayName!==void 0&&(c.displayName=e.displayName),c}}return e}return n.current}}function cA(e,n){{if(vl===null)return!1;var s=e.elementType,c=n.type,v=!1,m=typeof c=="object"&&c!==null?c.$$typeof:null;switch(e.tag){case S:{typeof c=="function"&&(v=!0);break}case y:{(typeof c=="function"||m===Nt)&&(v=!0);break}case z:{(m===ze||m===Nt)&&(v=!0);break}case W:case K:{(m===Bt||m===Nt)&&(v=!0);break}default:return!1}if(v){var C=vl(s);if(C!==void 0&&C===vl(c))return!0}return!1}}function fA(e){{if(vl===null||typeof WeakSet!="function")return;Mv===null&&(Mv=new WeakSet),Mv.add(e)}}var jW=function(e,n){{if(vl===null)return;var s=n.staleFamilies,c=n.updatedFamilies;Ps(),Ms(function(){KR(e.current,c,s)})}},UW=function(e,n){{if(e.context!==zo)return;Ps(),Ms(function(){Pg(n,e,null,null)})}};function KR(e,n,s){{var c=e.alternate,v=e.child,m=e.sibling,C=e.tag,k=e.type,M=null;switch(C){case y:case K:case S:M=k;break;case z:M=k.render;break}if(vl===null)throw new Error("Expected resolveFamily to be set during hot reload.");var j=!1,q=!1;if(M!==null){var fe=vl(M);fe!==void 0&&(s.has(fe)?q=!0:n.has(fe)&&(C===S?q=!0:j=!0))}if(Mv!==null&&(Mv.has(e)||c!==null&&Mv.has(c))&&(q=!0),q&&(e._debugNeedsRemount=!0),q||j){var se=wo(e,Jt);se!==null&&Yi(se,e,Jt,br)}v!==null&&!q&&KR(v,n,s),m!==null&&KR(m,n,s)}}var BW=function(e,n){{var s=new Set,c=new Set(n.map(function(v){return v.current}));return YR(e.current,c,s),s}};function YR(e,n,s){{var c=e.child,v=e.sibling,m=e.tag,C=e.type,k=null;switch(m){case y:case K:case S:k=C;break;case z:k=C.render;break}var M=!1;k!==null&&n.has(k)&&(M=!0),M?VW(e,s):c!==null&&YR(c,n,s),v!==null&&YR(v,n,s)}}function VW(e,n){{var s=HW(e,n);if(s)return;for(var c=e;;){switch(c.tag){case P:n.add(c.stateNode);return;case _:n.add(c.stateNode.containerInfo);return;case R:n.add(c.stateNode.containerInfo);return}if(c.return===null)throw new Error("Expected to reach root first.");c=c.return}}}function HW(e,n){for(var s=e,c=!1;;){if(s.tag===P)c=!0,n.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)return c;for(;s.sibling===null;){if(s.return===null||s.return===e)return c;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var GR;{GR=!1;try{var dA=Object.preventExtensions({})}catch{GR=!0}}function WW(e,n,s,c){this.tag=e,this.key=s,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=n,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=c,this.flags=It,this.subtreeFlags=It,this.deletions=null,this.lanes=je,this.childLanes=je,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!GR&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var jo=function(e,n,s,c){return new WW(e,n,s,c)};function XR(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function qW(e){return typeof e=="function"&&!XR(e)&&e.defaultProps===void 0}function KW(e){if(typeof e=="function")return XR(e)?S:y;if(e!=null){var n=e.$$typeof;if(n===ze)return z;if(n===Bt)return W}return b}function pd(e,n){var s=e.alternate;s===null?(s=jo(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s._debugSource=e._debugSource,s._debugOwner=e._debugOwner,s._debugHookTypes=e._debugHookTypes,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=It,s.subtreeFlags=It,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=e.flags&ti,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue;var c=e.dependencies;switch(s.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.selfBaseDuration=e.selfBaseDuration,s.treeBaseDuration=e.treeBaseDuration,s._debugNeedsRemount=e._debugNeedsRemount,s.tag){case b:case y:case K:s.type=Pv(e.type);break;case S:s.type=WR(e.type);break;case z:s.type=qR(e.type);break}return s}function YW(e,n){e.flags&=ti|Wr;var s=e.alternate;if(s===null)e.childLanes=je,e.lanes=n,e.child=null,e.subtreeFlags=It,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=It,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type;var c=s.dependencies;e.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},e.selfBaseDuration=s.selfBaseDuration,e.treeBaseDuration=s.treeBaseDuration}return e}function GW(e,n,s){var c;return e===Kb?(c=yn,n===!0&&(c|=hr,c|=Kn)):c=zt,Na&&(c|=qn),jo(R,null,null,c)}function QR(e,n,s,c,v,m){var C=b,k=e;if(typeof e=="function")XR(e)?(C=S,k=WR(k)):k=Pv(k);else if(typeof e=="string")C=P;else e:switch(e){case Nn:return $c(s.children,v,m,n);case lr:C=D,v|=hr,(v&yn)!==zt&&(v|=Kn);break;case Nr:return XW(s,v,m,n);case Ze:return QW(s,v,m,n);case nt:return JW(s,v,m,n);case Zn:return pA(s,v,m,n);case Dn:case Et:case Vn:case Rn:case Kt:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $r:C=I;break e;case te:C=H;break e;case ze:C=z,k=qR(k);break e;case Bt:C=W;break e;case Nt:C=Z,k=null;break e}var M="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j=c?jt(c):null;j&&(M+=`
|
|
206
|
-
|
|
207
|
-
Check the render method of \``+j+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+M))}}var q=jo(C,s,n,v);return q.elementType=e,q.type=k,q.lanes=m,q._debugOwner=c,q}function JR(e,n,s){var c=null;c=e._owner;var v=e.type,m=e.key,C=e.props,k=QR(v,m,C,c,n,s);return k._debugSource=e._source,k._debugOwner=e._owner,k}function $c(e,n,s,c){var v=jo(L,e,c,n);return v.lanes=s,v}function XW(e,n,s,c){typeof e.id!="string"&&f('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var v=jo(V,e,c,n|qn);return v.elementType=Nr,v.lanes=s,v.stateNode={effectDuration:0,passiveEffectDuration:0},v}function QW(e,n,s,c){var v=jo(B,e,c,n);return v.elementType=Ze,v.lanes=s,v}function JW(e,n,s,c){var v=jo(J,e,c,n);return v.elementType=nt,v.lanes=s,v}function pA(e,n,s,c){var v=jo(X,e,c,n);v.elementType=Zn,v.lanes=s;var m={isHidden:!1};return v.stateNode=m,v}function ZR(e,n,s){var c=jo(N,e,null,n);return c.lanes=s,c}function ZW(){var e=jo(P,null,null,zt);return e.elementType="DELETED",e}function e7(e){var n=jo(Y,null,null,zt);return n.stateNode=e,n}function eT(e,n,s){var c=e.children!==null?e.children:[],v=jo(_,c,e.key,n);return v.lanes=s,v.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},v}function vA(e,n){return e===null&&(e=jo(b,null,null,zt)),e.tag=n.tag,e.key=n.key,e.elementType=n.elementType,e.type=n.type,e.stateNode=n.stateNode,e.return=n.return,e.child=n.child,e.sibling=n.sibling,e.index=n.index,e.ref=n.ref,e.pendingProps=n.pendingProps,e.memoizedProps=n.memoizedProps,e.updateQueue=n.updateQueue,e.memoizedState=n.memoizedState,e.dependencies=n.dependencies,e.mode=n.mode,e.flags=n.flags,e.subtreeFlags=n.subtreeFlags,e.deletions=n.deletions,e.lanes=n.lanes,e.childLanes=n.childLanes,e.alternate=n.alternate,e.actualDuration=n.actualDuration,e.actualStartTime=n.actualStartTime,e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration,e._debugSource=n._debugSource,e._debugOwner=n._debugOwner,e._debugNeedsRemount=n._debugNeedsRemount,e._debugHookTypes=n._debugHookTypes,e}function t7(e,n,s,c,v){this.tag=n,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=$1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Wn,this.eventTimes=Pf(je),this.expirationTimes=Pf(br),this.pendingLanes=je,this.suspendedLanes=je,this.pingedLanes=je,this.expiredLanes=je,this.mutableReadLanes=je,this.finishedLanes=je,this.entangledLanes=je,this.entanglements=Pf(je),this.identifierPrefix=c,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var m=this.pendingUpdatersLaneMap=[],C=0;C<ss;C++)m.push(new Set)}switch(n){case Kb:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case Cc:this._debugRootType=s?"hydrate()":"render()";break}}function hA(e,n,s,c,v,m,C,k,M,j){var q=new t7(e,n,s,k,M),fe=GW(n,m);q.current=fe,fe.stateNode=q;{var se={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};fe.memoizedState=se}return px(fe),q}var tT="18.3.1";function n7(e,n,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return sn(c),{$$typeof:Qt,key:c==null?null:""+c,children:e,containerInfo:n,implementation:s}}var nT,rT;nT=!1,rT={};function mA(e){if(!e)return zo;var n=ic(e),s=I6(n);if(n.tag===S){var c=n.type;if(Ou(c))return VM(n,c,s)}return s}function r7(e,n){{var s=ic(e);if(s===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var c=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+c)}var v=_a(s);if(v===null)return null;if(v.mode&hr){var m=jt(s)||"Component";if(!rT[m]){rT[m]=!0;var C=Ur;try{Hn(v),s.mode&hr?f("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",n,n,m):f("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",n,n,m)}finally{C?Hn(C):er()}}}return v.stateNode}}function gA(e,n,s,c,v,m,C,k){var M=!1,j=null;return hA(e,n,M,j,s,c,v,m,C)}function yA(e,n,s,c,v,m,C,k,M,j){var q=!0,fe=hA(s,c,q,e,v,m,C,k,M);fe.context=mA(null);var se=fe.current,Te=Za(),Ne=Pc(se),Pe=_s(Te,Ne);return Pe.callback=n??null,Rc(se,Pe,Ne),cW(fe,Ne,Te),fe}function Pg(e,n,s,c){nm(n,e);var v=n.current,m=Za(),C=Pc(v);zr(C);var k=mA(s);n.context===null?n.context=k:n.pendingContext=k,Li&&Ur!==null&&!nT&&(nT=!0,f(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
208
|
-
|
|
209
|
-
Check the render method of %s.`,jt(Ur)||"Unknown"));var M=_s(m,C);M.payload={element:e},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&f("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",c),M.callback=c);var j=Rc(v,M,C);return j!==null&&(Yi(j,v,C,m),uS(j,v,C)),C}function QS(e){var n=e.current;if(!n.child)return null;switch(n.child.tag){case P:return n.child.stateNode;default:return n.child.stateNode}}function i7(e){switch(e.tag){case R:{var n=e.stateNode;if(Wp(n)){var s=K0(n);vW(n,s)}break}case B:{Ms(function(){var v=wo(e,Jt);if(v!==null){var m=Za();Yi(v,e,Jt,m)}});var c=Jt;iT(e,c);break}}}function bA(e,n){var s=e.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=J0(s.retryLane,n))}function iT(e,n){bA(e,n);var s=e.alternate;s&&bA(s,n)}function a7(e){if(e.tag===B){var n=Of,s=wo(e,n);if(s!==null){var c=Za();Yi(s,e,n,c)}iT(e,n)}}function o7(e){if(e.tag===B){var n=Pc(e),s=wo(e,n);if(s!==null){var c=Za();Yi(s,e,n,c)}iT(e,n)}}function SA(e){var n=Mr(e);return n===null?null:n.stateNode}var EA=function(e){return null};function l7(e){return EA(e)}var CA=function(e){return!1};function u7(e){return CA(e)}var wA=null,xA=null,RA=null,TA=null,OA=null,_A=null,kA=null,NA=null,DA=null;{var MA=function(e,n,s){var c=n[s],v=mn(e)?e.slice():en({},e);return s+1===n.length?(mn(v)?v.splice(c,1):delete v[c],v):(v[c]=MA(e[c],n,s+1),v)},PA=function(e,n){return MA(e,n,0)},AA=function(e,n,s,c){var v=n[c],m=mn(e)?e.slice():en({},e);if(c+1===n.length){var C=s[c];m[C]=m[v],mn(m)?m.splice(v,1):delete m[v]}else m[v]=AA(e[v],n,s,c+1);return m},$A=function(e,n,s){if(n.length!==s.length){p("copyWithRename() expects paths of the same length");return}else for(var c=0;c<s.length-1;c++)if(n[c]!==s[c]){p("copyWithRename() expects paths to be the same except for the deepest key");return}return AA(e,n,s,0)},LA=function(e,n,s,c){if(s>=n.length)return c;var v=n[s],m=mn(e)?e.slice():en({},e);return m[v]=LA(e[v],n,s+1,c),m},FA=function(e,n,s){return LA(e,n,0,s)},aT=function(e,n){for(var s=e.memoizedState;s!==null&&n>0;)s=s.next,n--;return s};wA=function(e,n,s,c){var v=aT(e,n);if(v!==null){var m=FA(v.memoizedState,s,c);v.memoizedState=m,v.baseState=m,e.memoizedProps=en({},e.memoizedProps);var C=wo(e,Jt);C!==null&&Yi(C,e,Jt,br)}},xA=function(e,n,s){var c=aT(e,n);if(c!==null){var v=PA(c.memoizedState,s);c.memoizedState=v,c.baseState=v,e.memoizedProps=en({},e.memoizedProps);var m=wo(e,Jt);m!==null&&Yi(m,e,Jt,br)}},RA=function(e,n,s,c){var v=aT(e,n);if(v!==null){var m=$A(v.memoizedState,s,c);v.memoizedState=m,v.baseState=m,e.memoizedProps=en({},e.memoizedProps);var C=wo(e,Jt);C!==null&&Yi(C,e,Jt,br)}},TA=function(e,n,s){e.pendingProps=FA(e.memoizedProps,n,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=wo(e,Jt);c!==null&&Yi(c,e,Jt,br)},OA=function(e,n){e.pendingProps=PA(e.memoizedProps,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=wo(e,Jt);s!==null&&Yi(s,e,Jt,br)},_A=function(e,n,s){e.pendingProps=$A(e.memoizedProps,n,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=wo(e,Jt);c!==null&&Yi(c,e,Jt,br)},kA=function(e){var n=wo(e,Jt);n!==null&&Yi(n,e,Jt,br)},NA=function(e){EA=e},DA=function(e){CA=e}}function s7(e){var n=_a(e);return n===null?null:n.stateNode}function c7(e){return null}function f7(){return Ur}function d7(e){var n=e.findFiberByHostInstance,s=i.ReactCurrentDispatcher;return lc({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:wA,overrideHookStateDeletePath:xA,overrideHookStateRenamePath:RA,overrideProps:TA,overridePropsDeletePath:OA,overridePropsRenamePath:_A,setErrorHandler:NA,setSuspenseHandler:DA,scheduleUpdate:kA,currentDispatcherRef:s,findHostInstanceByFiber:s7,findFiberByHostInstance:n||c7,findHostInstancesForRefresh:BW,scheduleRefresh:jW,scheduleRoot:UW,setRefreshHandler:zW,getCurrentFiber:f7,reconcilerVersion:tT})}var IA=typeof reportError=="function"?reportError:function(e){console.error(e)};function oT(e){this._internalRoot=e}JS.prototype.render=oT.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?f("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):ZS(arguments[1])?f("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&f("You passed a second argument to root.render(...) but it only accepts one argument.");var s=n.containerInfo;if(s.nodeType!==Zr){var c=SA(n.current);c&&c.parentNode!==s&&f("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Pg(e,n,null,null)},JS.prototype.unmount=oT.prototype.unmount=function(){typeof arguments[0]=="function"&&f("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;X2()&&f("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Ms(function(){Pg(null,e,null,null)}),IM(n)}};function p7(e,n){if(!ZS(e))throw new Error("createRoot(...): Target container is not a DOM element.");zA(e);var s=!1,c=!1,v="",m=IA;n!=null&&(n.hydrate?p("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===qt&&f(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
210
|
-
|
|
211
|
-
let root = createRoot(domContainer);
|
|
212
|
-
root.render(<App />);`),n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(v=n.identifierPrefix),n.onRecoverableError!==void 0&&(m=n.onRecoverableError),n.transitionCallbacks!==void 0&&n.transitionCallbacks);var C=gA(e,Kb,null,s,c,v,m);jb(C.current,e);var k=e.nodeType===Zr?e.parentNode:e;return zm(k),new oT(C)}function JS(e){this._internalRoot=e}function v7(e){e&&ub(e)}JS.prototype.unstable_scheduleHydration=v7;function h7(e,n,s){if(!ZS(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");zA(e),n===void 0&&f("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var c=s??null,v=s!=null&&s.hydratedSources||null,m=!1,C=!1,k="",M=IA;s!=null&&(s.unstable_strictMode===!0&&(m=!0),s.identifierPrefix!==void 0&&(k=s.identifierPrefix),s.onRecoverableError!==void 0&&(M=s.onRecoverableError));var j=yA(n,null,e,Kb,c,m,C,k,M);if(jb(j.current,e),zm(e),v)for(var q=0;q<v.length;q++){var fe=v[q];b8(j,fe)}return new JS(j)}function ZS(e){return!!(e&&(e.nodeType===xa||e.nodeType===kl||e.nodeType===Uh))}function Ag(e){return!!(e&&(e.nodeType===xa||e.nodeType===kl||e.nodeType===Uh||e.nodeType===Zr&&e.nodeValue===" react-mount-point-unstable "))}function zA(e){e.nodeType===xa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&f("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Xm(e)&&(e._reactRootContainer?f("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):f("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var m7=i.ReactCurrentOwner,jA;jA=function(e){if(e._reactRootContainer&&e.nodeType!==Zr){var n=SA(e._reactRootContainer.current);n&&n.parentNode!==e&&f("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!e._reactRootContainer,c=lT(e),v=!!(c&&Sc(c));v&&!s&&f("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===xa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&f("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function lT(e){return e?e.nodeType===kl?e.documentElement:e.firstChild:null}function UA(){}function g7(e,n,s,c,v){if(v){if(typeof c=="function"){var m=c;c=function(){var se=QS(C);m.call(se)}}var C=yA(n,c,e,Cc,null,!1,!1,"",UA);e._reactRootContainer=C,jb(C.current,e);var k=e.nodeType===Zr?e.parentNode:e;return zm(k),Ms(),C}else{for(var M;M=e.lastChild;)e.removeChild(M);if(typeof c=="function"){var j=c;c=function(){var se=QS(q);j.call(se)}}var q=gA(e,Cc,null,!1,!1,"",UA);e._reactRootContainer=q,jb(q.current,e);var fe=e.nodeType===Zr?e.parentNode:e;return zm(fe),Ms(function(){Pg(n,q,s,c)}),q}}function y7(e,n){e!==null&&typeof e!="function"&&f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,e)}function eE(e,n,s,c,v){jA(s),y7(v===void 0?null:v,"render");var m=s._reactRootContainer,C;if(!m)C=g7(s,n,e,v,c);else{if(C=m,typeof v=="function"){var k=v;v=function(){var M=QS(C);k.call(M)}}Pg(n,C,e,v)}return QS(C)}var BA=!1;function b7(e){{BA||(BA=!0,f("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var n=m7.current;if(n!==null&&n.stateNode!==null){var s=n.stateNode._warnedAboutRefsInRender;s||f("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",hn(n.type)||"A component"),n.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===xa?e:r7(e,"findDOMNode")}function S7(e,n,s){if(f("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Ag(n))throw new Error("Target container is not a DOM element.");{var c=Xm(n)&&n._reactRootContainer===void 0;c&&f("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return eE(null,e,n,!0,s)}function E7(e,n,s){if(f("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Ag(n))throw new Error("Target container is not a DOM element.");{var c=Xm(n)&&n._reactRootContainer===void 0;c&&f("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return eE(null,e,n,!1,s)}function C7(e,n,s,c){if(f("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Ag(s))throw new Error("Target container is not a DOM element.");if(e==null||!i1(e))throw new Error("parentComponent must be a valid React Component");return eE(e,n,s,!1,c)}var VA=!1;function w7(e){if(VA||(VA=!0,f("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Ag(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var n=Xm(e)&&e._reactRootContainer===void 0;n&&f("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var s=lT(e),c=s&&!Sc(s);c&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ms(function(){eE(null,null,e,!1,function(){e._reactRootContainer=null,IM(e)})}),!0}else{{var v=lT(e),m=!!(v&&Sc(v)),C=e.nodeType===xa&&Ag(e.parentNode)&&!!e.parentNode._reactRootContainer;m&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",C?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Ji(i7),fc(a7),ib(o7),If(So),Cm(tb),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&f("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),up(RH),r1(IR,hW,Ms);function x7(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ZS(n))throw new Error("Target container is not a DOM element.");return n7(e,n,null,s)}function R7(e,n,s,c){return C7(e,n,s,c)}var uT={usingClientEntryPoint:!1,Events:[Sc,cv,Ub,ec,sp,IR]};function T7(e,n){return uT.usingClientEntryPoint||f('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),p7(e,n)}function O7(e,n,s){return uT.usingClientEntryPoint||f('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),h7(e,n,s)}function _7(e){return X2()&&f("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Ms(e)}var k7=d7({findFiberByHostInstance:Jf,bundleType:1,version:tT,rendererPackageName:"react-dom"});if(!k7&&rt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var HA=window.location.protocol;/^(https?|file):$/.test(HA)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(HA==="file:"?`
|
|
213
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ro.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uT,ro.createPortal=x7,ro.createRoot=T7,ro.findDOMNode=b7,ro.flushSync=_7,ro.hydrate=S7,ro.hydrateRoot=O7,ro.render=E7,ro.unmountComponentAtNode=w7,ro.unstable_batchedUpdates=IR,ro.unstable_renderSubtreeIntoContainer=R7,ro.version=tT,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ro}function NT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(me.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NT)}catch(t){console.error(t)}}}me.env.NODE_ENV==="production"?(NT(),lE.exports=c$()):lE.exports=f$();var jg=lE.exports;const DT=rE(jg);function jv(t){return t instanceof HTMLElement||t instanceof SVGElement}function d$(t){return t&&un(t)==="object"&&jv(t.nativeElement)?t.nativeElement:jv(t)?t:null}function Ug(t){var r=d$(t);if(r)return r;if(t instanceof _n.Component){var i;return(i=DT.findDOMNode)===null||i===void 0?void 0:i.call(DT,t)}return null}var cE={exports:{}},sr={};/**
|
|
214
|
-
* @license React
|
|
215
|
-
* react-is.production.min.js
|
|
216
|
-
*
|
|
217
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the MIT license found in the
|
|
220
|
-
* LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/var MT;function p$(){if(MT)return sr;MT=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),N;N=Symbol.for("react.module.reference");function L(D){if(typeof D=="object"&&D!==null){var H=D.$$typeof;switch(H){case t:switch(D=D.type,D){case i:case u:case o:case S:case b:return D;default:switch(D=D&&D.$$typeof,D){case g:case f:case y:case _:case R:case p:return D;default:return H}}case r:return H}}}return sr.ContextConsumer=f,sr.ContextProvider=p,sr.Element=t,sr.ForwardRef=y,sr.Fragment=i,sr.Lazy=_,sr.Memo=R,sr.Portal=r,sr.Profiler=u,sr.StrictMode=o,sr.Suspense=S,sr.SuspenseList=b,sr.isAsyncMode=function(){return!1},sr.isConcurrentMode=function(){return!1},sr.isContextConsumer=function(D){return L(D)===f},sr.isContextProvider=function(D){return L(D)===p},sr.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===t},sr.isForwardRef=function(D){return L(D)===y},sr.isFragment=function(D){return L(D)===i},sr.isLazy=function(D){return L(D)===_},sr.isMemo=function(D){return L(D)===R},sr.isPortal=function(D){return L(D)===r},sr.isProfiler=function(D){return L(D)===u},sr.isStrictMode=function(D){return L(D)===o},sr.isSuspense=function(D){return L(D)===S},sr.isSuspenseList=function(D){return L(D)===b},sr.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===i||D===u||D===o||D===S||D===b||D===P||typeof D=="object"&&D!==null&&(D.$$typeof===_||D.$$typeof===R||D.$$typeof===p||D.$$typeof===f||D.$$typeof===y||D.$$typeof===N||D.getModuleId!==void 0)},sr.typeOf=L,sr}var cr={},PT;function v$(){return PT||(PT=1,me.env.NODE_ENV!=="production"&&function(){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),N=!1,L=!1,D=!1,H=!1,I=!1,z;z=Symbol.for("react.module.reference");function V($e){return!!(typeof $e=="string"||typeof $e=="function"||$e===i||$e===u||I||$e===o||$e===S||$e===b||H||$e===P||N||L||D||typeof $e=="object"&&$e!==null&&($e.$$typeof===_||$e.$$typeof===R||$e.$$typeof===p||$e.$$typeof===f||$e.$$typeof===y||$e.$$typeof===z||$e.getModuleId!==void 0))}function B($e){if(typeof $e=="object"&&$e!==null){var yt=$e.$$typeof;switch(yt){case t:var st=$e.type;switch(st){case i:case u:case o:case S:case b:return st;default:var sn=st&&st.$$typeof;switch(sn){case g:case f:case y:case _:case R:case p:return sn;default:return yt}}case r:return yt}}}var W=f,K=p,Z=t,ie=y,Y=i,J=_,oe=R,X=r,ne=u,de=o,we=S,ge=b,le=!1,Re=!1;function pe($e){return le||(le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G($e){return Re||(Re=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ue($e){return B($e)===f}function De($e){return B($e)===p}function ye($e){return typeof $e=="object"&&$e!==null&&$e.$$typeof===t}function Le($e){return B($e)===y}function We($e){return B($e)===i}function Ue($e){return B($e)===_}function qe($e){return B($e)===R}function Qe($e){return B($e)===r}function ft($e){return B($e)===u}function rt($e){return B($e)===o}function Tt($e){return B($e)===S}function _t($e){return B($e)===b}cr.ContextConsumer=W,cr.ContextProvider=K,cr.Element=Z,cr.ForwardRef=ie,cr.Fragment=Y,cr.Lazy=J,cr.Memo=oe,cr.Portal=X,cr.Profiler=ne,cr.StrictMode=de,cr.Suspense=we,cr.SuspenseList=ge,cr.isAsyncMode=pe,cr.isConcurrentMode=G,cr.isContextConsumer=ue,cr.isContextProvider=De,cr.isElement=ye,cr.isForwardRef=Le,cr.isFragment=We,cr.isLazy=Ue,cr.isMemo=qe,cr.isPortal=Qe,cr.isProfiler=ft,cr.isStrictMode=rt,cr.isSuspense=Tt,cr.isSuspenseList=_t,cr.isValidElementType=V,cr.typeOf=B}()),cr}me.env.NODE_ENV==="production"?cE.exports=p$():cE.exports=v$();var fE=cE.exports;function Bg(t,r,i){var o=x.useRef({});return(!("value"in o.current)||i(o.current.condition,r))&&(o.current.value=t(),o.current.condition=r),o.current.value}var h$=Number(x.version.split(".")[0]),dE=function(r,i){typeof r=="function"?r(i):un(r)==="object"&&r&&"current"in r&&(r.current=i)},Vg=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var u=i.filter(Boolean);return u.length<=1?u[0]:function(p){i.forEach(function(f){dE(f,p)})}},Uv=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Bg(function(){return Vg.apply(void 0,i)},i,function(u,p){return u.length!==p.length||u.every(function(f,g){return f!==p[g]})})},Ic=function(r){var i,o;if(!r)return!1;if(pE(r)&&h$>=19)return!0;var u=fE.isMemo(r)?r.type.type:r.type;return!(typeof u=="function"&&!((i=u.prototype)!==null&&i!==void 0&&i.render)&&u.$$typeof!==fE.ForwardRef||typeof r=="function"&&!((o=r.prototype)!==null&&o!==void 0&&o.render)&&r.$$typeof!==fE.ForwardRef)};function pE(t){return x.isValidElement(t)&&!bT(t)}var m$=function(r){return pE(r)&&Ic(r)},Bv=function(r){if(r&&pE(r)){var i=r;return i.props.propertyIsEnumerable("ref")?i.props.ref:i.ref}return null},vE=x.createContext(null);function g$(t){var r=t.children,i=t.onBatchResize,o=x.useRef(0),u=x.useRef([]),p=x.useContext(vE),f=x.useCallback(function(g,y,S){o.current+=1;var b=o.current;u.current.push({size:g,element:y,data:S}),Promise.resolve().then(function(){b===o.current&&(i?.(u.current),u.current=[])}),p?.(g,y,S)},[i,p]);return x.createElement(vE.Provider,{value:f},r)}const Hg=globalThis||void 0||self;var AT=function(){if(typeof Map<"u")return Map;function t(r,i){var o=-1;return r.some(function(u,p){return u[0]===i?(o=p,!0):!1}),o}return function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(i){var o=t(this.__entries__,i),u=this.__entries__[o];return u&&u[1]},r.prototype.set=function(i,o){var u=t(this.__entries__,i);~u?this.__entries__[u][1]=o:this.__entries__.push([i,o])},r.prototype.delete=function(i){var o=this.__entries__,u=t(o,i);~u&&o.splice(u,1)},r.prototype.has=function(i){return!!~t(this.__entries__,i)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(i,o){o===void 0&&(o=null);for(var u=0,p=this.__entries__;u<p.length;u++){var f=p[u];i.call(o,f[1],f[0])}},r}()}(),hE=typeof window<"u"&&typeof document<"u"&&window.document===document,Wg=function(){return typeof Hg<"u"&&Hg.Math===Math?Hg:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),y$=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Wg):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),b$=2;function S$(t,r){var i=!1,o=!1,u=0;function p(){i&&(i=!1,t()),o&&g()}function f(){y$(p)}function g(){var y=Date.now();if(i){if(y-u<b$)return;o=!0}else i=!0,o=!1,setTimeout(f,r);u=y}return g}var E$=20,C$=["top","right","bottom","left","width","height","size","weight"],w$=typeof MutationObserver<"u",x$=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=S$(this.refresh.bind(this),E$)}return t.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},t.prototype.removeObserver=function(r){var i=this.observers_,o=i.indexOf(r);~o&&i.splice(o,1),!i.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var r=this.updateObservers_();r&&this.refresh()},t.prototype.updateObservers_=function(){var r=this.observers_.filter(function(i){return i.gatherActive(),i.hasActive()});return r.forEach(function(i){return i.broadcastActive()}),r.length>0},t.prototype.connect_=function(){!hE||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),w$?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!hE||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(r){var i=r.propertyName,o=i===void 0?"":i,u=C$.some(function(p){return!!~o.indexOf(p)});u&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),$T=function(t,r){for(var i=0,o=Object.keys(r);i<o.length;i++){var u=o[i];Object.defineProperty(t,u,{value:r[u],enumerable:!1,writable:!1,configurable:!0})}return t},md=function(t){var r=t&&t.ownerDocument&&t.ownerDocument.defaultView;return r||Wg},LT=Kg(0,0,0,0);function qg(t){return parseFloat(t)||0}function FT(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return r.reduce(function(o,u){var p=t["border-"+u+"-width"];return o+qg(p)},0)}function R$(t){for(var r=["top","right","bottom","left"],i={},o=0,u=r;o<u.length;o++){var p=u[o],f=t["padding-"+p];i[p]=qg(f)}return i}function T$(t){var r=t.getBBox();return Kg(0,0,r.width,r.height)}function O$(t){var r=t.clientWidth,i=t.clientHeight;if(!r&&!i)return LT;var o=md(t).getComputedStyle(t),u=R$(o),p=u.left+u.right,f=u.top+u.bottom,g=qg(o.width),y=qg(o.height);if(o.boxSizing==="border-box"&&(Math.round(g+p)!==r&&(g-=FT(o,"left","right")+p),Math.round(y+f)!==i&&(y-=FT(o,"top","bottom")+f)),!k$(t)){var S=Math.round(g+p)-r,b=Math.round(y+f)-i;Math.abs(S)!==1&&(g-=S),Math.abs(b)!==1&&(y-=b)}return Kg(u.left,u.top,g,y)}var _$=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof md(t).SVGGraphicsElement}:function(t){return t instanceof md(t).SVGElement&&typeof t.getBBox=="function"}}();function k$(t){return t===md(t).document.documentElement}function N$(t){return hE?_$(t)?T$(t):O$(t):LT}function D$(t){var r=t.x,i=t.y,o=t.width,u=t.height,p=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(p.prototype);return $T(f,{x:r,y:i,width:o,height:u,top:i,right:r+o,bottom:u+i,left:r}),f}function Kg(t,r,i,o){return{x:t,y:r,width:i,height:o}}var M$=function(){function t(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Kg(0,0,0,0),this.target=r}return t.prototype.isActive=function(){var r=N$(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},t}(),P$=function(){function t(r,i){var o=D$(i);$T(this,{target:r,contentRect:o})}return t}(),A$=function(){function t(r,i,o){if(this.activeObservations_=[],this.observations_=new AT,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=i,this.callbackCtx_=o}return t.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof md(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(r)||(i.set(r,new M$(r)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof md(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(r)&&(i.delete(r),i.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(i){i.isActive()&&r.activeObservations_.push(i)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,i=this.activeObservations_.map(function(o){return new P$(o.target,o.broadcastRect())});this.callback_.call(r,i,r),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),IT=typeof WeakMap<"u"?new WeakMap:new AT,zT=function(){function t(r){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=x$.getInstance(),o=new A$(r,i,this);IT.set(this,o)}return t}();["observe","unobserve","disconnect"].forEach(function(t){zT.prototype[t]=function(){var r;return(r=IT.get(this))[t].apply(r,arguments)}});var $$=function(){return typeof Wg.ResizeObserver<"u"?Wg.ResizeObserver:zT}(),zu=new Map;function jT(t){t.forEach(function(r){var i,o=r.target;(i=zu.get(o))===null||i===void 0||i.forEach(function(u){return u(o)})})}var UT=new $$(jT);me.env.NODE_ENV,me.env.NODE_ENV;function L$(t,r){zu.has(t)||(zu.set(t,new Set),UT.observe(t)),zu.get(t).add(r)}function F$(t,r){zu.has(t)&&(zu.get(t).delete(r),zu.get(t).size||(UT.unobserve(t),zu.delete(t)))}function ea(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function BT(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,CT(o.key),o)}}function ta(t,r,i){return r&&BT(t.prototype,r),i&&BT(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vv(t,r){return Vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},Vv(t,r)}function Ls(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}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&Vv(t,r)}function Hv(t){return Hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hv(t)}function mE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mE=function(){return!!t})()}function xn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I$(t,r){if(r&&(un(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xn(t)}function Fs(t){var r=mE();return function(){var i,o=Hv(t);if(r){var u=Hv(this).constructor;i=Reflect.construct(o,arguments,u)}else i=o.apply(this,arguments);return I$(this,i)}}var z$=function(t){Ls(i,t);var r=Fs(i);function i(){return ea(this,i),r.apply(this,arguments)}return ta(i,[{key:"render",value:function(){return this.props.children}}]),i}(x.Component);function j$(t,r){var i=t.children,o=t.disabled,u=x.useRef(null),p=x.useRef(null),f=x.useContext(vE),g=typeof i=="function",y=g?i(u):i,S=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),b=!g&&x.isValidElement(y)&&Ic(y),R=b?Bv(y):null,_=Uv(R,u),P=function(){var H;return Ug(u.current)||(u.current&&un(u.current)==="object"?Ug((H=u.current)===null||H===void 0?void 0:H.nativeElement):null)||Ug(p.current)};x.useImperativeHandle(r,function(){return P()});var N=x.useRef(t);N.current=t;var L=x.useCallback(function(D){var H=N.current,I=H.onResize,z=H.data,V=D.getBoundingClientRect(),B=V.width,W=V.height,K=D.offsetWidth,Z=D.offsetHeight,ie=Math.floor(B),Y=Math.floor(W);if(S.current.width!==ie||S.current.height!==Y||S.current.offsetWidth!==K||S.current.offsetHeight!==Z){var J={width:ie,height:Y,offsetWidth:K,offsetHeight:Z};S.current=J;var oe=K===Math.round(B)?B:K,X=Z===Math.round(W)?W:Z,ne=ke(ke({},J),{},{offsetWidth:oe,offsetHeight:X});f?.(ne,D,z),I&&Promise.resolve().then(function(){I(ne,D)})}},[]);return x.useEffect(function(){var D=P();return D&&!o&&L$(D,L),function(){return F$(D,L)}},[u.current,o]),x.createElement(z$,{ref:p},b?x.cloneElement(y,{ref:_}):y)}var VT=x.forwardRef(j$);me.env.NODE_ENV!=="production"&&(VT.displayName="SingleObserver");var U$="rc-observer-key";function B$(t,r){var i=t.children,o=typeof i=="function"?[i]:Iu(i);return me.env.NODE_ENV!=="production"&&(o.length>1?hd(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):o.length===0&&hd(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map(function(u,p){var f=u?.key||"".concat(U$,"-").concat(p);return x.createElement(VT,wn({},t,{key:f,ref:p===0?r:void 0}),u)})}var gd=x.forwardRef(B$);me.env.NODE_ENV!=="production"&&(gd.displayName="ResizeObserver"),gd.Collection=g$;function zc(t,r){var i=Object.assign({},t);return Array.isArray(r)&&r.forEach(function(o){delete i[o]}),i}function gE(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=Array(r);i<r;i++)o[i]=t[i];return o}function V$(t){if(Array.isArray(t))return gE(t)}function HT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yE(t,r){if(t){if(typeof t=="string")return gE(t,r);var i={}.toString.call(t).slice(8,-1);return i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set"?Array.from(t):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?gE(t,r):void 0}}function H$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
222
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lt(t){return V$(t)||HT(t)||yE(t)||H$()}var WT=function(r){return+setTimeout(r,16)},qT=function(r){return clearTimeout(r)};typeof window<"u"&&"requestAnimationFrame"in window&&(WT=function(r){return window.requestAnimationFrame(r)},qT=function(r){return window.cancelAnimationFrame(r)});var KT=0,Yg=new Map;function YT(t){Yg.delete(t)}var hl=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;KT+=1;var o=KT;function u(p){if(p===0)YT(o),r();else{var f=WT(function(){u(p-1)});Yg.set(o,f)}}return u(i),o};hl.cancel=function(t){var r=Yg.get(t);return YT(t),qT(r)},me.env.NODE_ENV!=="production"&&(hl.ids=function(){return Yg});function GT(t){if(Array.isArray(t))return t}function W$(t,r){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var o,u,p,f,g=[],y=!0,S=!1;try{if(p=(i=i.call(t)).next,r===0){if(Object(i)!==i)return;y=!1}else for(;!(y=(o=p.call(i)).done)&&(g.push(o.value),g.length!==r);y=!0);}catch(b){S=!0,u=b}finally{try{if(!y&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(S)throw u}}return g}}function XT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
223
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ge(t,r){return GT(t)||W$(t,r)||yE(t,r)||XT()}function Wv(t){for(var r=0,i,o=0,u=t.length;u>=4;++o,u-=4)i=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,r=(i&65535)*1540483477+((i>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(t.charCodeAt(o+2)&255)<<16;case 2:r^=(t.charCodeAt(o+1)&255)<<8;case 1:r^=t.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function io(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function q$(t,r){if(!t)return!1;if(t.contains)return t.contains(r);for(var i=r;i;){if(i===t)return!0;i=i.parentNode}return!1}var QT="data-rc-order",JT="data-rc-priority",K$="rc-util-key",bE=new Map;function ZT(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.mark;return r?r.startsWith("data-")?r:"data-".concat(r):K$}function Gg(t){if(t.attachTo)return t.attachTo;var r=document.querySelector("head");return r||document.body}function Y$(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function SE(t){return Array.from((bE.get(t)||t).children).filter(function(r){return r.tagName==="STYLE"})}function eO(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!io())return null;var i=r.csp,o=r.prepend,u=r.priority,p=u===void 0?0:u,f=Y$(o),g=f==="prependQueue",y=document.createElement("style");y.setAttribute(QT,f),g&&p&&y.setAttribute(JT,"".concat(p)),i!=null&&i.nonce&&(y.nonce=i?.nonce),y.innerHTML=t;var S=Gg(r),b=S.firstChild;if(o){if(g){var R=(r.styles||SE(S)).filter(function(_){if(!["prepend","prependQueue"].includes(_.getAttribute(QT)))return!1;var P=Number(_.getAttribute(JT)||0);return p>=P});if(R.length)return S.insertBefore(y,R[R.length-1].nextSibling),y}S.insertBefore(y,b)}else S.appendChild(y);return y}function tO(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=Gg(r);return(r.styles||SE(i)).find(function(o){return o.getAttribute(ZT(r))===t})}function qv(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=tO(t,r);if(i){var o=Gg(r);o.removeChild(i)}}function G$(t,r){var i=bE.get(t);if(!i||!q$(document,i)){var o=eO("",r),u=o.parentNode;bE.set(t,u),t.removeChild(o)}}function ju(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Gg(i),u=SE(o),p=ke(ke({},i),{},{styles:u});G$(o,p);var f=tO(r,p);if(f){var g,y;if((g=p.csp)!==null&&g!==void 0&&g.nonce&&f.nonce!==((y=p.csp)===null||y===void 0?void 0:y.nonce)){var S;f.nonce=(S=p.csp)===null||S===void 0?void 0:S.nonce}return f.innerHTML!==t&&(f.innerHTML=t),f}var b=eO(t,p);return b.setAttribute(ZT(p),r),b}function X$(t,r){if(t==null)return{};var i={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(r.indexOf(o)!==-1)continue;i[o]=t[o]}return i}function Rr(t,r){if(t==null)return{};var i,o,u=X$(t,r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(o=0;o<p.length;o++)i=p[o],r.indexOf(i)===-1&&{}.propertyIsEnumerable.call(t,i)&&(u[i]=t[i])}return u}function Kv(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=new Set;function u(p,f){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,y=o.has(p);if(ur(!y,"Warning: There may be circular references"),y)return!1;if(p===f)return!0;if(i&&g>1)return!1;o.add(p);var S=g+1;if(Array.isArray(p)){if(!Array.isArray(f)||p.length!==f.length)return!1;for(var b=0;b<p.length;b++)if(!u(p[b],f[b],S))return!1;return!0}if(p&&f&&un(p)==="object"&&un(f)==="object"){var R=Object.keys(p);return R.length!==Object.keys(f).length?!1:R.every(function(_){return u(p[_],f[_],S)})}return!1}return u(t,r)}var Q$="%";function EE(t){return t.join(Q$)}var J$=function(){function t(r){ea(this,t),he(this,"instanceId",void 0),he(this,"cache",new Map),this.instanceId=r}return ta(t,[{key:"get",value:function(i){return this.opGet(EE(i))}},{key:"opGet",value:function(i){return this.cache.get(i)||null}},{key:"update",value:function(i,o){return this.opUpdate(EE(i),o)}},{key:"opUpdate",value:function(i,o){var u=this.cache.get(i),p=o(u);p===null?this.cache.delete(i):this.cache.set(i,p)}}]),t}(),yd="data-token-hash",ml="data-css-hash",Z$="data-cache-path",Is="__cssinjs_instance__";function eL(){var t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var r=document.body.querySelectorAll("style[".concat(ml,"]"))||[],i=document.head.firstChild;Array.from(r).forEach(function(u){u[Is]=u[Is]||t,u[Is]===t&&document.head.insertBefore(u,i)});var o={};Array.from(document.querySelectorAll("style[".concat(ml,"]"))).forEach(function(u){var p=u.getAttribute(ml);if(o[p]){if(u[Is]===t){var f;(f=u.parentNode)===null||f===void 0||f.removeChild(u)}}else o[p]=!0})}return new J$(t)}var Xg=x.createContext({hashPriority:"low",cache:eL(),defaultCache:!0});function tL(t,r){if(t.length!==r.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==r[i])return!1;return!0}var CE=function(){function t(){ea(this,t),he(this,"cache",void 0),he(this,"keys",void 0),he(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ta(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(i){var o,u,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f={map:this.cache};return i.forEach(function(g){if(!f)f=void 0;else{var y;f=(y=f)===null||y===void 0||(y=y.map)===null||y===void 0?void 0:y.get(g)}}),(o=f)!==null&&o!==void 0&&o.value&&p&&(f.value[1]=this.cacheCallTimes++),(u=f)===null||u===void 0?void 0:u.value}},{key:"get",value:function(i){var o;return(o=this.internalGet(i,!0))===null||o===void 0?void 0:o[0]}},{key:"has",value:function(i){return!!this.internalGet(i)}},{key:"set",value:function(i,o){var u=this;if(!this.has(i)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var p=this.keys.reduce(function(S,b){var R=Ge(S,2),_=R[1];return u.internalGet(b)[1]<_?[b,u.internalGet(b)[1]]:S},[this.keys[0],this.cacheCallTimes]),f=Ge(p,1),g=f[0];this.delete(g)}this.keys.push(i)}var y=this.cache;i.forEach(function(S,b){if(b===i.length-1)y.set(S,{value:[o,u.cacheCallTimes++]});else{var R=y.get(S);R?R.map||(R.map=new Map):y.set(S,{map:new Map}),y=y.get(S).map}})}},{key:"deleteByPath",value:function(i,o){var u=i.get(o[0]);if(o.length===1){var p;return u.map?i.set(o[0],{map:u.map}):i.delete(o[0]),(p=u.value)===null||p===void 0?void 0:p[0]}var f=this.deleteByPath(u.map,o.slice(1));return(!u.map||u.map.size===0)&&!u.value&&i.delete(o[0]),f}},{key:"delete",value:function(i){if(this.has(i))return this.keys=this.keys.filter(function(o){return!tL(o,i)}),this.deleteByPath(this.cache,i)}}]),t}();he(CE,"MAX_CACHE_SIZE",20),he(CE,"MAX_CACHE_OFFSET",5);var nO=0,rO=function(){function t(r){ea(this,t),he(this,"derivatives",void 0),he(this,"id",void 0),this.derivatives=Array.isArray(r)?r:[r],this.id=nO,r.length===0&&hd(r.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),nO+=1}return ta(t,[{key:"getDerivativeToken",value:function(i){return this.derivatives.reduce(function(o,u){return u(i,o)},void 0)}}]),t}(),wE=new CE;function xE(t){var r=Array.isArray(t)?t:[t];return wE.has(r)||wE.set(r,new rO(r)),wE.get(r)}var nL=new WeakMap,RE={};function rL(t,r){for(var i=nL,o=0;o<r.length;o+=1){var u=r[o];i.has(u)||i.set(u,new WeakMap),i=i.get(u)}return i.has(RE)||i.set(RE,t()),i.get(RE)}var iO=new WeakMap;function Yv(t){var r=iO.get(t)||"";return r||(Object.keys(t).forEach(function(i){var o=t[i];r+=i,o instanceof rO?r+=o.id:o&&un(o)==="object"?r+=Yv(o):r+=o}),r=Wv(r),iO.set(t,r)),r}function aO(t,r){return Wv("".concat(r,"_").concat(Yv(t)))}var TE=io();function gn(t){return typeof t=="number"?"".concat(t,"px"):t}function Qg(t,r,i){var o,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(p)return t;var f=ke(ke({},u),{},(o={},he(o,yd,r),he(o,ml,i),o)),g=Object.keys(f).map(function(y){var S=f[y];return S?"".concat(y,'="').concat(S,'"'):null}).filter(function(y){return y}).join(" ");return"<style ".concat(g,">").concat(t,"</style>")}var Jg=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(i?"".concat(i,"-"):"").concat(r).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},iL=function(r,i,o){return Object.keys(r).length?".".concat(i).concat(o!=null&&o.scope?".".concat(o.scope):"","{").concat(Object.entries(r).map(function(u){var p=Ge(u,2),f=p[0],g=p[1];return"".concat(f,":").concat(g,";")}).join(""),"}"):""},oO=function(r,i,o){var u={},p={};return Object.entries(r).forEach(function(f){var g,y,S=Ge(f,2),b=S[0],R=S[1];if(o!=null&&(g=o.preserve)!==null&&g!==void 0&&g[b])p[b]=R;else if((typeof R=="string"||typeof R=="number")&&!(o!=null&&(y=o.ignore)!==null&&y!==void 0&&y[b])){var _,P=Jg(b,o?.prefix);u[P]=typeof R=="number"&&!(o!=null&&(_=o.unitless)!==null&&_!==void 0&&_[b])?"".concat(R,"px"):String(R),p[b]="var(".concat(P,")")}}),[p,iL(u,i,{scope:o?.scope})]},lO=me.env.NODE_ENV!=="test"&&io()?x.useLayoutEffect:x.useEffect,na=function(r,i){var o=x.useRef(!0);lO(function(){return r(o.current)},i),lO(function(){return o.current=!1,function(){o.current=!0}},[])},uO=function(r,i){na(function(o){if(!o)return r()},i)},aL=ke({},Ig),sO=aL.useInsertionEffect,oL=function(r,i,o){x.useMemo(r,o),na(function(){return i(!0)},o)},lL=sO?function(t,r,i){return sO(function(){return t(),r()},i)}:oL,uL=ke({},Ig),sL=uL.useInsertionEffect,cL=function(r){var i=[],o=!1;function u(p){if(o){me.env.NODE_ENV!=="production"&&hd(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}i.push(p)}return x.useEffect(function(){return o=!1,function(){o=!0,i.length&&i.forEach(function(p){return p()})}},r),u},fL=function(){return function(r){r()}},dL=typeof sL<"u"?cL:fL;function pL(){return!1}var OE=!1;function vL(){return OE}const hL=me.env.NODE_ENV==="production"?pL:vL;if(me.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Zg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Zg&&typeof Zg.webpackHotUpdate=="function"){var mL=Zg.webpackHotUpdate;Zg.webpackHotUpdate=function(){return OE=!0,setTimeout(function(){OE=!1},0),mL.apply(void 0,arguments)}}}function _E(t,r,i,o,u){var p=x.useContext(Xg),f=p.cache,g=[t].concat(Lt(r)),y=EE(g),S=dL([y]),b=hL(),R=function(L){f.opUpdate(y,function(D){var H=D||[void 0,void 0],I=Ge(H,2),z=I[0],V=z===void 0?0:z,B=I[1],W=B;me.env.NODE_ENV!=="production"&&B&&b&&(o?.(W,b),W=null);var K=W||i(),Z=[V,K];return L?L(Z):Z})};x.useMemo(function(){R()},[y]);var _=f.opGet(y);me.env.NODE_ENV!=="production"&&!_&&(R(),_=f.opGet(y));var P=_[1];return lL(function(){u?.(P)},function(N){return R(function(L){var D=Ge(L,2),H=D[0],I=D[1];return N&&H===0&&u?.(P),[H+1,I]}),function(){f.opUpdate(y,function(L){var D=L||[],H=Ge(D,2),I=H[0],z=I===void 0?0:I,V=H[1],B=z-1;return B===0?(S(function(){(N||!f.opGet(y))&&o?.(V,!1)}),null):[z-1,V]})}},[y]),P}var gL={},yL=me.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",jc=new Map;function bL(t){jc.set(t,(jc.get(t)||0)+1)}function SL(t,r){if(typeof document<"u"){var i=document.querySelectorAll("style[".concat(yd,'="').concat(t,'"]'));i.forEach(function(o){if(o[Is]===r){var u;(u=o.parentNode)===null||u===void 0||u.removeChild(o)}})}}var EL=0;function CL(t,r){jc.set(t,(jc.get(t)||0)-1);var i=Array.from(jc.keys()),o=i.filter(function(u){var p=jc.get(u)||0;return p<=0});i.length-o.length>EL&&o.forEach(function(u){SL(u,r),jc.delete(u)})}var wL=function(r,i,o,u){var p=o.getDerivativeToken(r),f=ke(ke({},p),i);return u&&(f=u(f)),f},cO="token";function xL(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=x.useContext(Xg),u=o.cache.instanceId,p=o.container,f=i.salt,g=f===void 0?"":f,y=i.override,S=y===void 0?gL:y,b=i.formatToken,R=i.getComputedToken,_=i.cssVar,P=rL(function(){return Object.assign.apply(Object,[{}].concat(Lt(r)))},r),N=Yv(P),L=Yv(S),D=_?Yv(_):"",H=_E(cO,[g,t.id,N,L,D],function(){var I,z=R?R(P,S,t):wL(P,S,t,b),V=ke({},z),B="";if(_){var W=oO(z,_.key,{prefix:_.prefix,ignore:_.ignore,unitless:_.unitless,preserve:_.preserve}),K=Ge(W,2);z=K[0],B=K[1]}var Z=aO(z,g);z._tokenKey=Z,V._tokenKey=aO(V,g);var ie=(I=_?.key)!==null&&I!==void 0?I:Z;z._themeKey=ie,bL(ie);var Y="".concat(yL,"-").concat(Wv(Z));return z._hashId=Y,[z,Y,V,B,_?.key||""]},function(I){CL(I[0]._themeKey,u)},function(I){var z=Ge(I,4),V=z[0],B=z[3];if(_&&B){var W=ju(B,Wv("css-variables-".concat(V._themeKey)),{mark:ml,prepend:"queue",attachTo:p,priority:-999});W[Is]=u,W.setAttribute(yd,V._themeKey)}});return H}var RL=function(r,i,o){var u=Ge(r,5),p=u[2],f=u[3],g=u[4],y=o||{},S=y.plain;if(!f)return null;var b=p._tokenKey,R=-999,_={"data-rc-order":"prependQueue","data-rc-priority":"".concat(R)},P=Qg(f,g,b,_,S);return[R,b,P]},TL={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ar="-ms-",Gv="-moz-",ar="-webkit-",fO="comm",ey="rule",kE="decl",OL="@import",_L="@namespace",dO="@keyframes",kL="@layer",pO=Math.abs,NE=String.fromCharCode,DE=Object.assign;function NL(t,r){return ki(t,0)^45?(((r<<2^ki(t,0))<<2^ki(t,1))<<2^ki(t,2))<<2^ki(t,3):0}function vO(t){return t.trim()}function Uu(t,r){return(t=r.exec(t))?t[0]:t}function En(t,r,i){return t.replace(r,i)}function ty(t,r,i){return t.indexOf(r,i)}function ki(t,r){return t.charCodeAt(r)|0}function Uc(t,r,i){return t.slice(r,i)}function gl(t){return t.length}function hO(t){return t.length}function Xv(t,r){return r.push(t),t}function DL(t,r){return t.map(r).join("")}function mO(t,r){return t.filter(function(i){return!Uu(i,r)})}var ny=1,bd=1,gO=0,Bo=0,yi=0,Sd="";function ry(t,r,i,o,u,p,f,g){return{value:t,root:r,parent:i,type:o,props:u,children:p,line:ny,column:bd,length:f,return:"",siblings:g}}function zs(t,r){return DE(ry("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},r)}function Ed(t){for(;t.root;)t=zs(t.root,{children:[t]});Xv(t,t.siblings)}function ML(){return yi}function PL(){return yi=Bo>0?ki(Sd,--Bo):0,bd--,yi===10&&(bd=1,ny--),yi}function yl(){return yi=Bo<gO?ki(Sd,Bo++):0,bd++,yi===10&&(bd=1,ny++),yi}function js(){return ki(Sd,Bo)}function iy(){return Bo}function ay(t,r){return Uc(Sd,t,r)}function Qv(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function AL(t){return ny=bd=1,gO=gl(Sd=t),Bo=0,[]}function $L(t){return Sd="",t}function ME(t){return vO(ay(Bo-1,PE(t===91?t+2:t===40?t+1:t)))}function LL(t){for(;(yi=js())&&yi<33;)yl();return Qv(t)>2||Qv(yi)>3?"":" "}function FL(t,r){for(;--r&&yl()&&!(yi<48||yi>102||yi>57&&yi<65||yi>70&&yi<97););return ay(t,iy()+(r<6&&js()==32&&yl()==32))}function PE(t){for(;yl();)switch(yi){case t:return Bo;case 34:case 39:t!==34&&t!==39&&PE(yi);break;case 40:t===41&&PE(t);break;case 92:yl();break}return Bo}function IL(t,r){for(;yl()&&t+yi!==57;)if(t+yi===84&&js()===47)break;return"/*"+ay(r,Bo-1)+"*"+NE(t===47?t:yl())}function zL(t){for(;!Qv(js());)yl();return ay(t,Bo)}function yO(t){return $L(oy("",null,null,null,[""],t=AL(t),0,[0],t))}function oy(t,r,i,o,u,p,f,g,y){for(var S=0,b=0,R=f,_=0,P=0,N=0,L=1,D=1,H=1,I=0,z="",V=u,B=p,W=o,K=z;D;)switch(N=I,I=yl()){case 40:if(N!=108&&ki(K,R-1)==58){ty(K+=En(ME(I),"&","&\f"),"&\f",pO(S?g[S-1]:0))!=-1&&(H=-1);break}case 34:case 39:case 91:K+=ME(I);break;case 9:case 10:case 13:case 32:K+=LL(N);break;case 92:K+=FL(iy()-1,7);continue;case 47:switch(js()){case 42:case 47:Xv(jL(IL(yl(),iy()),r,i,y),y),(Qv(N||1)==5||Qv(js()||1)==5)&&gl(K)&&Uc(K,-1,void 0)!==" "&&(K+=" ");break;default:K+="/"}break;case 123*L:g[S++]=gl(K)*H;case 125*L:case 59:case 0:switch(I){case 0:case 125:D=0;case 59+b:H==-1&&(K=En(K,/\f/g,"")),P>0&&(gl(K)-R||L===0&&N===47)&&Xv(P>32?SO(K+";",o,i,R-1,y):SO(En(K," ","")+";",o,i,R-2,y),y);break;case 59:K+=";";default:if(Xv(W=bO(K,r,i,S,b,u,g,z,V=[],B=[],R,p),p),I===123)if(b===0)oy(K,r,W,W,V,p,R,g,B);else{switch(_){case 99:if(ki(K,3)===110)break;case 108:if(ki(K,2)===97)break;default:b=0;case 100:case 109:case 115:}b?oy(t,W,W,o&&Xv(bO(t,W,W,0,0,u,g,z,u,V=[],R,B),B),u,B,R,g,o?V:B):oy(K,W,W,W,[""],B,0,g,B)}}S=b=P=0,L=H=1,z=K="",R=f;break;case 58:R=1+gl(K),P=N;default:if(L<1){if(I==123)--L;else if(I==125&&L++==0&&PL()==125)continue}switch(K+=NE(I),I*L){case 38:H=b>0?1:(K+="\f",-1);break;case 44:g[S++]=(gl(K)-1)*H,H=1;break;case 64:js()===45&&(K+=ME(yl())),_=js(),b=R=gl(z=K+=zL(iy())),I++;break;case 45:N===45&&gl(K)==2&&(L=0)}}return p}function bO(t,r,i,o,u,p,f,g,y,S,b,R){for(var _=u-1,P=u===0?p:[""],N=hO(P),L=0,D=0,H=0;L<o;++L)for(var I=0,z=Uc(t,_+1,_=pO(D=f[L])),V=t;I<N;++I)(V=vO(D>0?P[I]+" "+z:En(z,/&\f/g,P[I])))&&(y[H++]=V);return ry(t,r,i,u===0?ey:g,y,S,b,R)}function jL(t,r,i,o){return ry(t,r,i,fO,NE(ML()),Uc(t,2,-2),0,o)}function SO(t,r,i,o,u){return ry(t,r,i,kE,Uc(t,0,o),Uc(t,o+1,-1),o,u)}function EO(t,r,i){switch(NL(t,r)){case 5103:return ar+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return ar+t+t;case 4855:return ar+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return Gv+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ar+t+Gv+t+Ar+t+t;case 5936:switch(ki(t,r+11)){case 114:return ar+t+Ar+En(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ar+t+Ar+En(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ar+t+Ar+En(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return ar+t+Ar+t+t;case 6165:return ar+t+Ar+"flex-"+t+t;case 5187:return ar+t+En(t,/(\w+).+(:[^]+)/,ar+"box-$1$2"+Ar+"flex-$1$2")+t;case 5443:return ar+t+Ar+"flex-item-"+En(t,/flex-|-self/g,"")+(Uu(t,/flex-|baseline/)?"":Ar+"grid-row-"+En(t,/flex-|-self/g,""))+t;case 4675:return ar+t+Ar+"flex-line-pack"+En(t,/align-content|flex-|-self/g,"")+t;case 5548:return ar+t+Ar+En(t,"shrink","negative")+t;case 5292:return ar+t+Ar+En(t,"basis","preferred-size")+t;case 6060:return ar+"box-"+En(t,"-grow","")+ar+t+Ar+En(t,"grow","positive")+t;case 4554:return ar+En(t,/([^-])(transform)/g,"$1"+ar+"$2")+t;case 6187:return En(En(En(t,/(zoom-|grab)/,ar+"$1"),/(image-set)/,ar+"$1"),t,"")+t;case 5495:case 3959:return En(t,/(image-set\([^]*)/,ar+"$1$`$1");case 4968:return En(En(t,/(.+:)(flex-)?(.*)/,ar+"box-pack:$3"+Ar+"flex-pack:$3"),/space-between/,"justify")+ar+t+t;case 4200:if(!Uu(t,/flex-|baseline/))return Ar+"grid-column-align"+Uc(t,r)+t;break;case 2592:case 3360:return Ar+En(t,"template-","")+t;case 4384:case 3616:return i&&i.some(function(o,u){return r=u,Uu(o.props,/grid-\w+-end/)})?~ty(t+(i=i[r].value),"span",0)?t:Ar+En(t,"-start","")+t+Ar+"grid-row-span:"+(~ty(i,"span",0)?Uu(i,/\d+/):+Uu(i,/\d+/)-+Uu(t,/\d+/))+";":Ar+En(t,"-start","")+t;case 4896:case 4128:return i&&i.some(function(o){return Uu(o.props,/grid-\w+-start/)})?t:Ar+En(En(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return En(t,/(.+)-inline(.+)/,ar+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gl(t)-1-r>6)switch(ki(t,r+1)){case 109:if(ki(t,r+4)!==45)break;case 102:return En(t,/(.+:)(.+)-([^]+)/,"$1"+ar+"$2-$3$1"+Gv+(ki(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~ty(t,"stretch",0)?EO(En(t,"stretch","fill-available"),r,i)+t:t}break;case 5152:case 5920:return En(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,u,p,f,g,y,S){return Ar+u+":"+p+S+(f?Ar+u+"-span:"+(g?y:+y-+p)+S:"")+t});case 4949:if(ki(t,r+6)===121)return En(t,":",":"+ar)+t;break;case 6444:switch(ki(t,ki(t,14)===45?18:11)){case 120:return En(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ar+(ki(t,14)===45?"inline-":"")+"box$3$1"+ar+"$2$3$1"+Ar+"$2box$3")+t;case 100:return En(t,":",":"+Ar)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return En(t,"scroll-","scroll-snap-")+t}return t}function Jv(t,r){for(var i="",o=0;o<t.length;o++)i+=r(t[o],o,t,r)||"";return i}function CO(t,r,i,o){switch(t.type){case kL:if(t.children.length)break;case OL:case _L:case kE:return t.return=t.return||t.value;case fO:return"";case dO:return t.return=t.value+"{"+Jv(t.children,o)+"}";case ey:if(!gl(t.value=t.props.join(",")))return""}return gl(i=Jv(t.children,o))?t.return=t.value+"{"+i+"}":""}function UL(t){var r=hO(t);return function(i,o,u,p){for(var f="",g=0;g<r;g++)f+=t[g](i,o,u,p)||"";return f}}function BL(t){return function(r){r.root||(r=r.return)&&t(r)}}function VL(t,r,i,o){if(t.length>-1&&!t.return)switch(t.type){case kE:t.return=EO(t.value,t.length,i);return;case dO:return Jv([zs(t,{value:En(t.value,"@","@"+ar)})],o);case ey:if(t.length)return DL(i=t.props,function(u){switch(Uu(u,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ed(zs(t,{props:[En(u,/:(read-\w+)/,":"+Gv+"$1")]})),Ed(zs(t,{props:[u]})),DE(t,{props:mO(i,o)});break;case"::placeholder":Ed(zs(t,{props:[En(u,/:(plac\w+)/,":"+ar+"input-$1")]})),Ed(zs(t,{props:[En(u,/:(plac\w+)/,":"+Gv+"$1")]})),Ed(zs(t,{props:[En(u,/:(plac\w+)/,Ar+"input-$1")]})),Ed(zs(t,{props:[u]})),DE(t,{props:mO(i,o)});break}return""})}}function wO(t,r){var i=r.path,o=r.parentSelectors;ur(!1,"[Ant Design CSS-in-JS] ".concat(i?"Error in ".concat(i,": "):"").concat(t).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var HL=function(r,i,o){if(r==="content"){var u=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,p=["normal","none","initial","inherit","unset"];(typeof i!="string"||p.indexOf(i)===-1&&!u.test(i)&&(i.charAt(0)!==i.charAt(i.length-1)||i.charAt(0)!=='"'&&i.charAt(0)!=="'"))&&wO("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(i,"\"'`."),o)}},WL=function(r,i,o){r==="animation"&&o.hashId&&i!=="none"&&wO("You seem to be using hashed animation '".concat(i,"', in which case 'animationName' with Keyframe as value is recommended."),o)},xO="data-ant-cssinjs-cache-path",RO="_FILE_STYLE__",Bc,TO=!0;function qL(){if(!Bc&&(Bc={},io())){var t=document.createElement("div");t.className=xO,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(function(u){var p=u.split(":"),f=Ge(p,2),g=f[0],y=f[1];Bc[g]=y});var i=document.querySelector("style[".concat(xO,"]"));if(i){var o;TO=!1,(o=i.parentNode)===null||o===void 0||o.removeChild(i)}document.body.removeChild(t)}}function KL(t){return qL(),!!Bc[t]}function YL(t){var r=Bc[t],i=null;if(r&&io())if(TO)i=RO;else{var o=document.querySelector("style[".concat(ml,'="').concat(Bc[t],'"]'));o?i=o.innerHTML:delete Bc[t]}return[i,r]}var OO="_skip_check_",_O="_multi_value_";function ly(t){var r=Jv(yO(t),CO);return r.replace(/\{%%%\:[^;];}/g,";")}function GL(t){return un(t)==="object"&&t&&(OO in t||_O in t)}function kO(t,r,i){if(!r)return t;var o=".".concat(r),u=i==="low"?":where(".concat(o,")"):o,p=t.split(",").map(function(f){var g,y=f.trim().split(/\s+/),S=y[0]||"",b=((g=S.match(/^\w+/))===null||g===void 0?void 0:g[0])||"";return S="".concat(b).concat(u).concat(S.slice(b.length)),[S].concat(Lt(y.slice(1))).join(" ")});return p.join(",")}var XL=function t(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},u=o.root,p=o.injectHash,f=o.parentSelectors,g=i.hashId,y=i.layer,S=i.path,b=i.hashPriority,R=i.transformers,_=R===void 0?[]:R,P=i.linters,N=P===void 0?[]:P,L="",D={};function H(V){var B=V.getName(g);if(!D[B]){var W=t(V.style,i,{root:!1,parentSelectors:f}),K=Ge(W,1),Z=K[0];D[B]="@keyframes ".concat(V.getName(g)).concat(Z)}}function I(V){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return V.forEach(function(W){Array.isArray(W)?I(W,B):W&&B.push(W)}),B}var z=I(Array.isArray(r)?r:[r]);return z.forEach(function(V){var B=typeof V=="string"&&!u?{}:V;if(typeof B=="string")L+="".concat(B,`
|
|
224
|
-
`);else if(B._keyframe)H(B);else{var W=_.reduce(function(K,Z){var ie;return(Z==null||(ie=Z.visit)===null||ie===void 0?void 0:ie.call(Z,K))||K},B);Object.keys(W).forEach(function(K){var Z=W[K];if(un(Z)==="object"&&Z&&(K!=="animationName"||!Z._keyframe)&&!GL(Z)){var ie=!1,Y=K.trim(),J=!1;(u||p)&&g?Y.startsWith("@")?ie=!0:Y==="&"?Y=kO("",g,b):Y=kO(K,g,b):u&&!g&&(Y==="&"||Y==="")&&(Y="",J=!0);var oe=t(Z,i,{root:J,injectHash:ie,parentSelectors:[].concat(Lt(f),[Y])}),X=Ge(oe,2),ne=X[0],de=X[1];D=ke(ke({},D),de),L+="".concat(Y).concat(ne)}else{let le=function(Re,pe){me.env.NODE_ENV!=="production"&&(un(Z)!=="object"||!(Z!=null&&Z[OO]))&&[HL,WL].concat(Lt(N)).forEach(function(De){return De(Re,pe,{path:S,hashId:g,parentSelectors:f})});var G=Re.replace(/[A-Z]/g,function(De){return"-".concat(De.toLowerCase())}),ue=pe;!TL[Re]&&typeof ue=="number"&&ue!==0&&(ue="".concat(ue,"px")),Re==="animationName"&&pe!==null&&pe!==void 0&&pe._keyframe&&(H(pe),ue=pe.getName(g)),L+="".concat(G,":").concat(ue,";")};var we,ge=(we=Z?.value)!==null&&we!==void 0?we:Z;un(Z)==="object"&&Z!==null&&Z!==void 0&&Z[_O]&&Array.isArray(ge)?ge.forEach(function(Re){le(K,Re)}):le(K,ge)}})}}),u?y&&(L&&(L="@layer ".concat(y.name," {").concat(L,"}")),y.dependencies&&(D["@layer ".concat(y.name)]=y.dependencies.map(function(V){return"@layer ".concat(V,", ").concat(y.name,";")}).join(`
|
|
225
|
-
`))):L="{".concat(L,"}"),[L,D]};function NO(t,r){return Wv("".concat(t.join("%")).concat(r))}function QL(){return null}var DO="style";function AE(t,r){var i=t.token,o=t.path,u=t.hashId,p=t.layer,f=t.nonce,g=t.clientOnly,y=t.order,S=y===void 0?0:y,b=x.useContext(Xg),R=b.autoClear,_=b.mock,P=b.defaultCache,N=b.hashPriority,L=b.container,D=b.ssrInline,H=b.transformers,I=b.linters,z=b.cache,V=b.layer,B=i._tokenKey,W=[B];V&&W.push("layer"),W.push.apply(W,Lt(o));var K=TE;me.env.NODE_ENV!=="production"&&_!==void 0&&(K=_==="client");var Z=_E(DO,W,function(){var X=W.join("|");if(KL(X)){var ne=YL(X),de=Ge(ne,2),we=de[0],ge=de[1];if(we)return[we,B,ge,{},g,S]}var le=r(),Re=XL(le,{hashId:u,hashPriority:N,layer:V?p:void 0,path:o.join("-"),transformers:H,linters:I}),pe=Ge(Re,2),G=pe[0],ue=pe[1],De=ly(G),ye=NO(W,De);return[De,B,ye,ue,g,S]},function(X,ne){var de=Ge(X,3),we=de[2];(ne||R)&&TE&&qv(we,{mark:ml})},function(X){var ne=Ge(X,4),de=ne[0];ne[1];var we=ne[2],ge=ne[3];if(K&&de!==RO){var le={mark:ml,prepend:V?!1:"queue",attachTo:L,priority:S},Re=typeof f=="function"?f():f;Re&&(le.csp={nonce:Re});var pe=[],G=[];Object.keys(ge).forEach(function(De){De.startsWith("@layer")?pe.push(De):G.push(De)}),pe.forEach(function(De){ju(ly(ge[De]),"_layer-".concat(De),ke(ke({},le),{},{prepend:!0}))});var ue=ju(de,we,le);ue[Is]=z.instanceId,ue.setAttribute(yd,B),me.env.NODE_ENV!=="production"&&ue.setAttribute(Z$,W.join("|")),G.forEach(function(De){ju(ly(ge[De]),"_effect-".concat(De),le)})}}),ie=Ge(Z,3),Y=ie[0],J=ie[1],oe=ie[2];return function(X){var ne;if(!D||K||!P)ne=x.createElement(QL,null);else{var de;ne=x.createElement("style",wn({},(de={},he(de,yd,J),he(de,ml,oe),de),{dangerouslySetInnerHTML:{__html:Y}}))}return x.createElement(x.Fragment,null,ne,X)}}var JL=function(r,i,o){var u=Ge(r,6),p=u[0],f=u[1],g=u[2],y=u[3],S=u[4],b=u[5],R=o||{},_=R.plain;if(S)return null;var P=p,N={"data-rc-order":"prependQueue","data-rc-priority":"".concat(b)};return P=Qg(p,f,g,N,_),y&&Object.keys(y).forEach(function(L){if(!i[L]){i[L]=!0;var D=ly(y[L]),H=Qg(D,f,"_effect-".concat(L),N,_);L.startsWith("@layer")?P=H+P:P+=H}}),[b,g,P]},MO="cssVar",ZL=function(r,i){var o=r.key,u=r.prefix,p=r.unitless,f=r.ignore,g=r.token,y=r.scope,S=y===void 0?"":y,b=x.useContext(Xg),R=b.cache.instanceId,_=b.container,P=g._tokenKey,N=[].concat(Lt(r.path),[o,S,P]),L=_E(MO,N,function(){var D=i(),H=oO(D,o,{prefix:u,unitless:p,ignore:f,scope:S}),I=Ge(H,2),z=I[0],V=I[1],B=NO(N,V);return[z,V,B,o]},function(D){var H=Ge(D,3),I=H[2];TE&&qv(I,{mark:ml})},function(D){var H=Ge(D,3),I=H[1],z=H[2];if(I){var V=ju(I,z,{mark:ml,prepend:"queue",attachTo:_,priority:-999});V[Is]=R,V.setAttribute(yd,o)}});return L},eF=function(r,i,o){var u=Ge(r,4),p=u[1],f=u[2],g=u[3],y=o||{},S=y.plain;if(!p)return null;var b=-999,R={"data-rc-order":"prependQueue","data-rc-priority":"".concat(b)},_=Qg(p,g,f,R,S);return[b,f,_]},Zv;Zv={},he(Zv,DO,JL),he(Zv,cO,RL),he(Zv,MO,eF);var fr=function(){function t(r,i){ea(this,t),he(this,"name",void 0),he(this,"style",void 0),he(this,"_keyframe",!0),this.name=r,this.style=i}return ta(t,[{key:"getName",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return i?"".concat(i,"-").concat(this.name):this.name}}]),t}();function Cd(t){return t.notSplit=!0,t}Cd(["borderTop","borderBottom"]),Cd(["borderTop"]),Cd(["borderBottom"]),Cd(["borderLeft","borderRight"]),Cd(["borderLeft"]),Cd(["borderRight"]);var $E=x.createContext({});function tF(t){return GT(t)||HT(t)||yE(t)||XT()}function Zl(t,r){for(var i=t,o=0;o<r.length;o+=1){if(i==null)return;i=i[r[o]]}return i}function PO(t,r,i,o){if(!r.length)return i;var u=tF(r),p=u[0],f=u.slice(1),g;return!t&&typeof p=="number"?g=[]:Array.isArray(t)?g=Lt(t):g=ke({},t),o&&i===void 0&&f.length===1?delete g[p][f[0]]:g[p]=PO(g[p],f,i,o),g}function bl(t,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&o&&i===void 0&&!Zl(t,r.slice(0,-1))?t:PO(t,r,i,o)}function nF(t){return un(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function AO(t){return Array.isArray(t)?[]:{}}var rF=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wd(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=AO(r[0]);return r.forEach(function(u){function p(f,g){var y=new Set(g),S=Zl(u,f),b=Array.isArray(S);if(b||nF(S)){if(!y.has(S)){y.add(S);var R=Zl(o,f);b?o=bl(o,f,[]):(!R||un(R)!=="object")&&(o=bl(o,f,AO(S))),rF(S).forEach(function(_){p([].concat(Lt(f),[_]),y)})}}else o=bl(o,f,S)}p([])}),o}function $O(){}let Bu=null;function iF(){Bu=null,ST()}let LE=$O;me.env.NODE_ENV!=="production"&&(LE=(t,r,i)=>{ur(t,`[antd: ${r}] ${i}`),me.env.NODE_ENV==="test"&&iF()});const LO=x.createContext({}),Sl=me.env.NODE_ENV!=="production"?t=>{const{strict:r}=x.useContext(LO),i=(o,u,p)=>{if(!o)if(r===!1&&u==="deprecated"){const f=Bu;Bu||(Bu={}),Bu[t]=Bu[t]||[],Bu[t].includes(p||"")||Bu[t].push(p||""),f||console.warn("[antd] There exists deprecated usage in your code:",Bu)}else me.env.NODE_ENV!=="production"&&LE(o,t,p)};return i.deprecated=(o,u,p,f)=>{i(o,"deprecated",`\`${u}\` is deprecated. Please use \`${p}\` instead.${f?` ${f}`:""}`)},i}:()=>{const t=()=>{};return t.deprecated=$O,t},uy=LE,aF=x.createContext(void 0);var oF={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},lF=ke(ke({},oF),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const uF={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},lF),Object.assign({},uF);const Oo="${label} is not a valid ${type}",sy={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Oo,method:Oo,array:Oo,object:Oo,number:Oo,date:Oo,boolean:Oo,integer:Oo,float:Oo,regexp:Oo,email:Oo,url:Oo,hex:Oo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};Object.assign({},sy.Modal);let cy=[];const FO=()=>cy.reduce((t,r)=>Object.assign(Object.assign({},t),r),sy.Modal);function sF(t){if(t){const r=Object.assign({},t);return cy.push(r),FO(),()=>{cy=cy.filter(i=>i!==r),FO()}}Object.assign({},sy.Modal)}const IO=x.createContext(void 0),zO="internalMark",jO=t=>{const{locale:r={},children:i,_ANT_MARK__:o}=t;if(me.env.NODE_ENV!=="production"){const p=Sl("LocaleProvider");me.env.NODE_ENV!=="production"&&p(o===zO,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}x.useEffect(()=>sF(r?.Modal),[r]);const u=x.useMemo(()=>Object.assign(Object.assign({},r),{exist:!0}),[r]);return x.createElement(IO.Provider,{value:u},i)};me.env.NODE_ENV!=="production"&&(jO.displayName="LocaleProvider");const Gi=Math.round;function FE(t,r){const i=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=i.map(u=>parseFloat(u));for(let u=0;u<3;u+=1)o[u]=r(o[u]||0,i[u]||"",u);return i[3]?o[3]=i[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const UO=(t,r,i)=>i===0?t:t/100;function eh(t,r){const i=r||255;return t>i?i:t<0?0:t}class xd{constructor(r){he(this,"isValid",!0),he(this,"r",0),he(this,"g",0),he(this,"b",0),he(this,"a",1),he(this,"_h",void 0),he(this,"_s",void 0),he(this,"_l",void 0),he(this,"_v",void 0),he(this,"_max",void 0),he(this,"_min",void 0),he(this,"_brightness",void 0);function i(o){return o[0]in r&&o[1]in r&&o[2]in r}if(r)if(typeof r=="string"){let u=function(p){return o.startsWith(p)};const o=r.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):u("rgb")?this.fromRgbString(o):u("hsl")?this.fromHslString(o):(u("hsv")||u("hsb"))&&this.fromHsvString(o)}else if(r instanceof xd)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(i("rgb"))this.r=eh(r.r),this.g=eh(r.g),this.b=eh(r.b),this.a=typeof r.a=="number"?eh(r.a,1):1;else if(i("hsl"))this.fromHsl(r);else if(i("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const i=this.toHsv();return i.h=r,this._c(i)}getLuminance(){function r(p){const f=p/255;return f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)}const i=r(this.r),o=r(this.g),u=r(this.b);return .2126*i+.7152*o+.0722*u}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=Gi(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(r=10){const i=this.getHue(),o=this.getSaturation();let u=this.getLightness()-r/100;return u<0&&(u=0),this._c({h:i,s:o,l:u,a:this.a})}lighten(r=10){const i=this.getHue(),o=this.getSaturation();let u=this.getLightness()+r/100;return u>1&&(u=1),this._c({h:i,s:o,l:u,a:this.a})}mix(r,i=50){const o=this._c(r),u=i/100,p=g=>(o[g]-this[g])*u+this[g],f={r:Gi(p("r")),g:Gi(p("g")),b:Gi(p("b")),a:Gi(p("a")*100)/100};return this._c(f)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const i=this._c(r),o=this.a+i.a*(1-this.a),u=p=>Gi((this[p]*this.a+i[p]*i.a*(1-this.a))/o);return this._c({r:u("r"),g:u("g"),b:u("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const i=(this.r||0).toString(16);r+=i.length===2?i:"0"+i;const o=(this.g||0).toString(16);r+=o.length===2?o:"0"+o;const u=(this.b||0).toString(16);if(r+=u.length===2?u:"0"+u,typeof this.a=="number"&&this.a>=0&&this.a<1){const p=Gi(this.a*255).toString(16);r+=p.length===2?p:"0"+p}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),i=Gi(this.getSaturation()*100),o=Gi(this.getLightness()*100);return this.a!==1?`hsla(${r},${i}%,${o}%,${this.a})`:`hsl(${r},${i}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(r,i,o){const u=this.clone();return u[r]=eh(i,o),u}_c(r){return new this.constructor(r)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(r){const i=r.replace("#","");function o(u,p){return parseInt(i[u]+i[p||u],16)}i.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=i[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=i[6]?o(6,7)/255:1)}fromHsl({h:r,s:i,l:o,a:u}){if(this._h=r%360,this._s=i,this._l=o,this.a=typeof u=="number"?u:1,i<=0){const _=Gi(o*255);this.r=_,this.g=_,this.b=_}let p=0,f=0,g=0;const y=r/60,S=(1-Math.abs(2*o-1))*i,b=S*(1-Math.abs(y%2-1));y>=0&&y<1?(p=S,f=b):y>=1&&y<2?(p=b,f=S):y>=2&&y<3?(f=S,g=b):y>=3&&y<4?(f=b,g=S):y>=4&&y<5?(p=b,g=S):y>=5&&y<6&&(p=S,g=b);const R=o-S/2;this.r=Gi((p+R)*255),this.g=Gi((f+R)*255),this.b=Gi((g+R)*255)}fromHsv({h:r,s:i,v:o,a:u}){this._h=r%360,this._s=i,this._v=o,this.a=typeof u=="number"?u:1;const p=Gi(o*255);if(this.r=p,this.g=p,this.b=p,i<=0)return;const f=r/60,g=Math.floor(f),y=f-g,S=Gi(o*(1-i)*255),b=Gi(o*(1-i*y)*255),R=Gi(o*(1-i*(1-y))*255);switch(g){case 0:this.g=R,this.b=S;break;case 1:this.r=b,this.b=S;break;case 2:this.r=S,this.b=R;break;case 3:this.r=S,this.g=b;break;case 4:this.r=R,this.g=S;break;case 5:default:this.g=S,this.b=b;break}}fromHsvString(r){const i=FE(r,UO);this.fromHsv({h:i[0],s:i[1],v:i[2],a:i[3]})}fromHslString(r){const i=FE(r,UO);this.fromHsl({h:i[0],s:i[1],l:i[2],a:i[3]})}fromRgbString(r){const i=FE(r,(o,u)=>u.includes("%")?Gi(o/100*255):o);this.r=i[0],this.g=i[1],this.b=i[2],this.a=i[3]}}var fy=2,BO=.16,cF=.05,fF=.05,dF=.15,VO=5,HO=4,pF=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function WO(t,r,i){var o;return Math.round(t.h)>=60&&Math.round(t.h)<=240?o=i?Math.round(t.h)-fy*r:Math.round(t.h)+fy*r:o=i?Math.round(t.h)+fy*r:Math.round(t.h)-fy*r,o<0?o+=360:o>=360&&(o-=360),o}function qO(t,r,i){if(t.h===0&&t.s===0)return t.s;var o;return i?o=t.s-BO*r:r===HO?o=t.s+BO:o=t.s+cF*r,o>1&&(o=1),i&&r===VO&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function KO(t,r,i){var o;return i?o=t.v+fF*r:o=t.v-dF*r,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function th(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=[],o=new xd(t),u=o.toHsv(),p=VO;p>0;p-=1){var f=new xd({h:WO(u,p,!0),s:qO(u,p,!0),v:KO(u,p,!0)});i.push(f)}i.push(o);for(var g=1;g<=HO;g+=1){var y=new xd({h:WO(u,g),s:qO(u,g),v:KO(u,g)});i.push(y)}return r.theme==="dark"?pF.map(function(S){var b=S.index,R=S.amount;return new xd(r.backgroundColor||"#141414").mix(i[b],R).toHexString()}):i.map(function(S){return S.toHexString()})}var IE={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},zE=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];zE.primary=zE[5];var jE=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];jE.primary=jE[5];var UE=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];UE.primary=UE[5];var BE=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];BE.primary=BE[5];var VE=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];VE.primary=VE[5];var HE=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];HE.primary=HE[5];var WE=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];WE.primary=WE[5];var qE=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];qE.primary=qE[5];var dy=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];dy.primary=dy[5];var KE=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];KE.primary=KE[5];var YE=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];YE.primary=YE[5];var GE=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];GE.primary=GE[5];var XE=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];XE.primary=XE[5];var QE={red:zE,volcano:jE,orange:UE,gold:BE,yellow:VE,lime:HE,green:WE,cyan:qE,blue:dy,geekblue:KE,purple:YE,magenta:GE,grey:XE};const YO={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},nh=Object.assign(Object.assign({},YO),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
226
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
227
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function ra(t,r){vF(t)&&(t="100%");var i=hF(t);return t=r===360?t:Math.min(r,Math.max(0,parseFloat(t))),i&&(t=parseInt(String(t*r),10)/100),Math.abs(t-r)<1e-6?1:(r===360?t=(t<0?t%r+r:t%r)/parseFloat(String(r)):t=t%r/parseFloat(String(r)),t)}function py(t){return Math.min(1,Math.max(0,t))}function vF(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function hF(t){return typeof t=="string"&&t.indexOf("%")!==-1}function GO(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function vy(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Vc(t){return t.length===1?"0"+t:String(t)}function mF(t,r,i){return{r:ra(t,255)*255,g:ra(r,255)*255,b:ra(i,255)*255}}function XO(t,r,i){t=ra(t,255),r=ra(r,255),i=ra(i,255);var o=Math.max(t,r,i),u=Math.min(t,r,i),p=0,f=0,g=(o+u)/2;if(o===u)f=0,p=0;else{var y=o-u;switch(f=g>.5?y/(2-o-u):y/(o+u),o){case t:p=(r-i)/y+(r<i?6:0);break;case r:p=(i-t)/y+2;break;case i:p=(t-r)/y+4;break}p/=6}return{h:p,s:f,l:g}}function JE(t,r,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(r-t)*(6*i):i<1/2?r:i<2/3?t+(r-t)*(2/3-i)*6:t}function gF(t,r,i){var o,u,p;if(t=ra(t,360),r=ra(r,100),i=ra(i,100),r===0)u=i,p=i,o=i;else{var f=i<.5?i*(1+r):i+r-i*r,g=2*i-f;o=JE(g,f,t+1/3),u=JE(g,f,t),p=JE(g,f,t-1/3)}return{r:o*255,g:u*255,b:p*255}}function QO(t,r,i){t=ra(t,255),r=ra(r,255),i=ra(i,255);var o=Math.max(t,r,i),u=Math.min(t,r,i),p=0,f=o,g=o-u,y=o===0?0:g/o;if(o===u)p=0;else{switch(o){case t:p=(r-i)/g+(r<i?6:0);break;case r:p=(i-t)/g+2;break;case i:p=(t-r)/g+4;break}p/=6}return{h:p,s:y,v:f}}function yF(t,r,i){t=ra(t,360)*6,r=ra(r,100),i=ra(i,100);var o=Math.floor(t),u=t-o,p=i*(1-r),f=i*(1-u*r),g=i*(1-(1-u)*r),y=o%6,S=[i,f,p,p,g,i][y],b=[g,i,i,f,p,p][y],R=[p,p,g,i,i,f][y];return{r:S*255,g:b*255,b:R*255}}function JO(t,r,i,o){var u=[Vc(Math.round(t).toString(16)),Vc(Math.round(r).toString(16)),Vc(Math.round(i).toString(16))];return o&&u[0].startsWith(u[0].charAt(1))&&u[1].startsWith(u[1].charAt(1))&&u[2].startsWith(u[2].charAt(1))?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0):u.join("")}function bF(t,r,i,o,u){var p=[Vc(Math.round(t).toString(16)),Vc(Math.round(r).toString(16)),Vc(Math.round(i).toString(16)),Vc(SF(o))];return u&&p[0].startsWith(p[0].charAt(1))&&p[1].startsWith(p[1].charAt(1))&&p[2].startsWith(p[2].charAt(1))&&p[3].startsWith(p[3].charAt(1))?p[0].charAt(0)+p[1].charAt(0)+p[2].charAt(0)+p[3].charAt(0):p.join("")}function SF(t){return Math.round(parseFloat(t)*255).toString(16)}function ZO(t){return _o(t)/255}function _o(t){return parseInt(t,16)}function EF(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var ZE={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function CF(t){var r={r:0,g:0,b:0},i=1,o=null,u=null,p=null,f=!1,g=!1;return typeof t=="string"&&(t=RF(t)),typeof t=="object"&&(Vu(t.r)&&Vu(t.g)&&Vu(t.b)?(r=mF(t.r,t.g,t.b),f=!0,g=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Vu(t.h)&&Vu(t.s)&&Vu(t.v)?(o=vy(t.s),u=vy(t.v),r=yF(t.h,o,u),f=!0,g="hsv"):Vu(t.h)&&Vu(t.s)&&Vu(t.l)&&(o=vy(t.s),p=vy(t.l),r=gF(t.h,o,p),f=!0,g="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(i=t.a)),i=GO(i),{ok:f,format:t.format||g,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var wF="[-\\+]?\\d+%?",xF="[-\\+]?\\d*\\.\\d+%?",Us="(?:".concat(xF,")|(?:").concat(wF,")"),eC="[\\s|\\(]+(".concat(Us,")[,|\\s]+(").concat(Us,")[,|\\s]+(").concat(Us,")\\s*\\)?"),tC="[\\s|\\(]+(".concat(Us,")[,|\\s]+(").concat(Us,")[,|\\s]+(").concat(Us,")[,|\\s]+(").concat(Us,")\\s*\\)?"),El={CSS_UNIT:new RegExp(Us),rgb:new RegExp("rgb"+eC),rgba:new RegExp("rgba"+tC),hsl:new RegExp("hsl"+eC),hsla:new RegExp("hsla"+tC),hsv:new RegExp("hsv"+eC),hsva:new RegExp("hsva"+tC),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function RF(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var r=!1;if(ZE[t])t=ZE[t],r=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i=El.rgb.exec(t);return i?{r:i[1],g:i[2],b:i[3]}:(i=El.rgba.exec(t),i?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=El.hsl.exec(t),i?{h:i[1],s:i[2],l:i[3]}:(i=El.hsla.exec(t),i?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=El.hsv.exec(t),i?{h:i[1],s:i[2],v:i[3]}:(i=El.hsva.exec(t),i?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=El.hex8.exec(t),i?{r:_o(i[1]),g:_o(i[2]),b:_o(i[3]),a:ZO(i[4]),format:r?"name":"hex8"}:(i=El.hex6.exec(t),i?{r:_o(i[1]),g:_o(i[2]),b:_o(i[3]),format:r?"name":"hex"}:(i=El.hex4.exec(t),i?{r:_o(i[1]+i[1]),g:_o(i[2]+i[2]),b:_o(i[3]+i[3]),a:ZO(i[4]+i[4]),format:r?"name":"hex8"}:(i=El.hex3.exec(t),i?{r:_o(i[1]+i[1]),g:_o(i[2]+i[2]),b:_o(i[3]+i[3]),format:r?"name":"hex"}:!1)))))))))}function Vu(t){return!!El.CSS_UNIT.exec(String(t))}var ja=function(){function t(r,i){r===void 0&&(r=""),i===void 0&&(i={});var o;if(r instanceof t)return r;typeof r=="number"&&(r=EF(r)),this.originalInput=r;var u=CF(r);this.originalInput=r,this.r=u.r,this.g=u.g,this.b=u.b,this.a=u.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=i.format)!==null&&o!==void 0?o:u.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=u.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},t.prototype.getLuminance=function(){var r=this.toRgb(),i,o,u,p=r.r/255,f=r.g/255,g=r.b/255;return p<=.03928?i=p/12.92:i=Math.pow((p+.055)/1.055,2.4),f<=.03928?o=f/12.92:o=Math.pow((f+.055)/1.055,2.4),g<=.03928?u=g/12.92:u=Math.pow((g+.055)/1.055,2.4),.2126*i+.7152*o+.0722*u},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(r){return this.a=GO(r),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var r=this.toHsl().s;return r===0},t.prototype.toHsv=function(){var r=QO(this.r,this.g,this.b);return{h:r.h*360,s:r.s,v:r.v,a:this.a}},t.prototype.toHsvString=function(){var r=QO(this.r,this.g,this.b),i=Math.round(r.h*360),o=Math.round(r.s*100),u=Math.round(r.v*100);return this.a===1?"hsv(".concat(i,", ").concat(o,"%, ").concat(u,"%)"):"hsva(".concat(i,", ").concat(o,"%, ").concat(u,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var r=XO(this.r,this.g,this.b);return{h:r.h*360,s:r.s,l:r.l,a:this.a}},t.prototype.toHslString=function(){var r=XO(this.r,this.g,this.b),i=Math.round(r.h*360),o=Math.round(r.s*100),u=Math.round(r.l*100);return this.a===1?"hsl(".concat(i,", ").concat(o,"%, ").concat(u,"%)"):"hsla(".concat(i,", ").concat(o,"%, ").concat(u,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(r){return r===void 0&&(r=!1),JO(this.r,this.g,this.b,r)},t.prototype.toHexString=function(r){return r===void 0&&(r=!1),"#"+this.toHex(r)},t.prototype.toHex8=function(r){return r===void 0&&(r=!1),bF(this.r,this.g,this.b,this.a,r)},t.prototype.toHex8String=function(r){return r===void 0&&(r=!1),"#"+this.toHex8(r)},t.prototype.toHexShortString=function(r){return r===void 0&&(r=!1),this.a===1?this.toHexString(r):this.toHex8String(r)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var r=Math.round(this.r),i=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(r,", ").concat(i,", ").concat(o,")"):"rgba(".concat(r,", ").concat(i,", ").concat(o,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var r=function(i){return"".concat(Math.round(ra(i,255)*100),"%")};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var r=function(i){return Math.round(ra(i,255)*100)};return this.a===1?"rgb(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%)"):"rgba(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var r="#"+JO(this.r,this.g,this.b,!1),i=0,o=Object.entries(ZE);i<o.length;i++){var u=o[i],p=u[0],f=u[1];if(r===f)return p}return!1},t.prototype.toString=function(r){var i=!!r;r=r??this.format;var o=!1,u=this.a<1&&this.a>=0,p=!i&&u&&(r.startsWith("hex")||r==="name");return p?r==="name"&&this.a===0?this.toName():this.toRgbString():(r==="rgb"&&(o=this.toRgbString()),r==="prgb"&&(o=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(o=this.toHexString()),r==="hex3"&&(o=this.toHexString(!0)),r==="hex4"&&(o=this.toHex8String(!0)),r==="hex8"&&(o=this.toHex8String()),r==="name"&&(o=this.toName()),r==="hsl"&&(o=this.toHslString()),r==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(r){r===void 0&&(r=10);var i=this.toHsl();return i.l+=r/100,i.l=py(i.l),new t(i)},t.prototype.brighten=function(r){r===void 0&&(r=10);var i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(r/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(r/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(r/100)))),new t(i)},t.prototype.darken=function(r){r===void 0&&(r=10);var i=this.toHsl();return i.l-=r/100,i.l=py(i.l),new t(i)},t.prototype.tint=function(r){return r===void 0&&(r=10),this.mix("white",r)},t.prototype.shade=function(r){return r===void 0&&(r=10),this.mix("black",r)},t.prototype.desaturate=function(r){r===void 0&&(r=10);var i=this.toHsl();return i.s-=r/100,i.s=py(i.s),new t(i)},t.prototype.saturate=function(r){r===void 0&&(r=10);var i=this.toHsl();return i.s+=r/100,i.s=py(i.s),new t(i)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(r){var i=this.toHsl(),o=(i.h+r)%360;return i.h=o<0?360+o:o,new t(i)},t.prototype.mix=function(r,i){i===void 0&&(i=50);var o=this.toRgb(),u=new t(r).toRgb(),p=i/100,f={r:(u.r-o.r)*p+o.r,g:(u.g-o.g)*p+o.g,b:(u.b-o.b)*p+o.b,a:(u.a-o.a)*p+o.a};return new t(f)},t.prototype.analogous=function(r,i){r===void 0&&(r=6),i===void 0&&(i=30);var o=this.toHsl(),u=360/i,p=[this];for(o.h=(o.h-(u*r>>1)+720)%360;--r;)o.h=(o.h+u)%360,p.push(new t(o));return p},t.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new t(r)},t.prototype.monochromatic=function(r){r===void 0&&(r=6);for(var i=this.toHsv(),o=i.h,u=i.s,p=i.v,f=[],g=1/r;r--;)f.push(new t({h:o,s:u,v:p})),p=(p+g)%1;return f},t.prototype.splitcomplement=function(){var r=this.toHsl(),i=r.h;return[this,new t({h:(i+72)%360,s:r.s,l:r.l}),new t({h:(i+216)%360,s:r.s,l:r.l})]},t.prototype.onBackground=function(r){var i=this.toRgb(),o=new t(r).toRgb(),u=i.a+o.a*(1-i.a);return new t({r:(i.r*i.a+o.r*o.a*(1-i.a))/u,g:(i.g*i.a+o.g*o.a*(1-i.a))/u,b:(i.b*i.a+o.b*o.a*(1-i.a))/u,a:u})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(r){for(var i=this.toHsl(),o=i.h,u=[this],p=360/r,f=1;f<r;f++)u.push(new t({h:(o+f*p)%360,s:i.s,l:i.l}));return u},t.prototype.equals=function(r){return this.toRgbString()===new t(r).toRgbString()},t}();function TF(t,r){let{generateColorPalettes:i,generateNeutralColorPalettes:o}=r;const{colorSuccess:u,colorWarning:p,colorError:f,colorInfo:g,colorPrimary:y,colorBgBase:S,colorTextBase:b}=t,R=i(y),_=i(u),P=i(p),N=i(f),L=i(g),D=o(S,b),H=t.colorLink||t.colorInfo,I=i(H);return Object.assign(Object.assign({},D),{colorPrimaryBg:R[1],colorPrimaryBgHover:R[2],colorPrimaryBorder:R[3],colorPrimaryBorderHover:R[4],colorPrimaryHover:R[5],colorPrimary:R[6],colorPrimaryActive:R[7],colorPrimaryTextHover:R[8],colorPrimaryText:R[9],colorPrimaryTextActive:R[10],colorSuccessBg:_[1],colorSuccessBgHover:_[2],colorSuccessBorder:_[3],colorSuccessBorderHover:_[4],colorSuccessHover:_[4],colorSuccess:_[6],colorSuccessActive:_[7],colorSuccessTextHover:_[8],colorSuccessText:_[9],colorSuccessTextActive:_[10],colorErrorBg:N[1],colorErrorBgHover:N[2],colorErrorBgActive:N[3],colorErrorBorder:N[3],colorErrorBorderHover:N[4],colorErrorHover:N[5],colorError:N[6],colorErrorActive:N[7],colorErrorTextHover:N[8],colorErrorText:N[9],colorErrorTextActive:N[10],colorWarningBg:P[1],colorWarningBgHover:P[2],colorWarningBorder:P[3],colorWarningBorderHover:P[4],colorWarningHover:P[4],colorWarning:P[6],colorWarningActive:P[7],colorWarningTextHover:P[8],colorWarningText:P[9],colorWarningTextActive:P[10],colorInfoBg:L[1],colorInfoBgHover:L[2],colorInfoBorder:L[3],colorInfoBorderHover:L[4],colorInfoHover:L[4],colorInfo:L[6],colorInfoActive:L[7],colorInfoTextHover:L[8],colorInfoText:L[9],colorInfoTextActive:L[10],colorLinkHover:I[4],colorLink:I[6],colorLinkActive:I[7],colorBgMask:new ja("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const OF=t=>{let r=t,i=t,o=t,u=t;return t<6&&t>=5?r=t+1:t<16&&t>=6?r=t+2:t>=16&&(r=16),t<7&&t>=5?i=4:t<8&&t>=7?i=5:t<14&&t>=8?i=6:t<16&&t>=14?i=7:t>=16&&(i=8),t<6&&t>=2?o=1:t>=6&&(o=2),t>4&&t<8?u=4:t>=8&&(u=6),{borderRadius:t,borderRadiusXS:o,borderRadiusSM:i,borderRadiusLG:r,borderRadiusOuter:u}};function _F(t){const{motionUnit:r,motionBase:i,borderRadius:o,lineWidth:u}=t;return Object.assign({motionDurationFast:`${(i+r).toFixed(1)}s`,motionDurationMid:`${(i+r*2).toFixed(1)}s`,motionDurationSlow:`${(i+r*3).toFixed(1)}s`,lineWidthBold:u+1},OF(o))}const kF=t=>{const{controlHeight:r}=t;return{controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}};function NF(t){return(t+8)/t}function DF(t){const r=new Array(10).fill(null).map((i,o)=>{const u=o-1,p=t*Math.pow(Math.E,u/5),f=o>1?Math.floor(p):Math.ceil(p);return Math.floor(f/2)*2});return r[1]=t,r.map(i=>({size:i,lineHeight:NF(i)}))}const MF=t=>{const r=DF(t),i=r.map(b=>b.size),o=r.map(b=>b.lineHeight),u=i[1],p=i[0],f=i[2],g=o[1],y=o[0],S=o[2];return{fontSizeSM:p,fontSize:u,fontSizeLG:f,fontSizeXL:i[3],fontSizeHeading1:i[6],fontSizeHeading2:i[5],fontSizeHeading3:i[4],fontSizeHeading4:i[3],fontSizeHeading5:i[2],lineHeight:g,lineHeightLG:S,lineHeightSM:y,fontHeight:Math.round(g*u),fontHeightLG:Math.round(S*f),fontHeightSM:Math.round(y*p),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function PF(t){const{sizeUnit:r,sizeStep:i}=t;return{sizeXXL:r*(i+8),sizeXL:r*(i+4),sizeLG:r*(i+2),sizeMD:r*(i+1),sizeMS:r*i,size:r*i,sizeSM:r*(i-1),sizeXS:r*(i-2),sizeXXS:r*(i-3)}}const Hu=(t,r)=>new ja(t).setAlpha(r).toRgbString(),rh=(t,r)=>new ja(t).darken(r).toHexString(),AF=t=>{const r=th(t);return{1:r[0],2:r[1],3:r[2],4:r[3],5:r[4],6:r[5],7:r[6],8:r[4],9:r[5],10:r[6]}},$F=(t,r)=>{const i=t||"#fff",o=r||"#000";return{colorBgBase:i,colorTextBase:o,colorText:Hu(o,.88),colorTextSecondary:Hu(o,.65),colorTextTertiary:Hu(o,.45),colorTextQuaternary:Hu(o,.25),colorFill:Hu(o,.15),colorFillSecondary:Hu(o,.06),colorFillTertiary:Hu(o,.04),colorFillQuaternary:Hu(o,.02),colorBgLayout:rh(i,4),colorBgContainer:rh(i,0),colorBgElevated:rh(i,0),colorBgSpotlight:Hu(o,.85),colorBgBlur:"transparent",colorBorder:rh(i,15),colorBorderSecondary:rh(i,6)}};function LF(t){IE.pink=IE.magenta,QE.pink=QE.magenta;const r=Object.keys(YO).map(i=>{const o=t[i]===IE[i]?QE[i]:th(t[i]);return new Array(10).fill(1).reduce((u,p,f)=>(u[`${i}-${f+1}`]=o[f],u[`${i}${f+1}`]=o[f],u),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),r),TF(t,{generateColorPalettes:AF,generateNeutralColorPalettes:$F})),MF(t.fontSize)),PF(t)),kF(t)),_F(t))}const e_=xE(LF),nC={token:nh,override:{override:nh},hashed:!0},t_=_n.createContext(nC),hy="ant",n_="anticon",FF=(t,r)=>r||(t?`${hy}-${t}`:hy),ia=x.createContext({getPrefixCls:FF,iconPrefixCls:n_}),{Consumer:M7}=ia,IF=`-ant-${Date.now()}-${Math.random()}`;function zF(t,r){const i={},o=(f,g)=>{let y=f.clone();return y=g?.(y)||y,y.toRgbString()},u=(f,g)=>{const y=new ja(f),S=th(y.toRgbString());i[`${g}-color`]=o(y),i[`${g}-color-disabled`]=S[1],i[`${g}-color-hover`]=S[4],i[`${g}-color-active`]=S[6],i[`${g}-color-outline`]=y.clone().setAlpha(.2).toRgbString(),i[`${g}-color-deprecated-bg`]=S[0],i[`${g}-color-deprecated-border`]=S[2]};if(r.primaryColor){u(r.primaryColor,"primary");const f=new ja(r.primaryColor),g=th(f.toRgbString());g.forEach((S,b)=>{i[`primary-${b+1}`]=S}),i["primary-color-deprecated-l-35"]=o(f,S=>S.lighten(35)),i["primary-color-deprecated-l-20"]=o(f,S=>S.lighten(20)),i["primary-color-deprecated-t-20"]=o(f,S=>S.tint(20)),i["primary-color-deprecated-t-50"]=o(f,S=>S.tint(50)),i["primary-color-deprecated-f-12"]=o(f,S=>S.setAlpha(S.getAlpha()*.12));const y=new ja(g[0]);i["primary-color-active-deprecated-f-30"]=o(y,S=>S.setAlpha(S.getAlpha()*.3)),i["primary-color-active-deprecated-d-02"]=o(y,S=>S.darken(2))}return r.successColor&&u(r.successColor,"success"),r.warningColor&&u(r.warningColor,"warning"),r.errorColor&&u(r.errorColor,"error"),r.infoColor&&u(r.infoColor,"info"),`
|
|
228
|
-
:root {
|
|
229
|
-
${Object.keys(i).map(f=>`--${t}-${f}: ${i[f]};`).join(`
|
|
230
|
-
`)}
|
|
231
|
-
}
|
|
232
|
-
`.trim()}function jF(t,r){const i=zF(t,r);io()?ju(i,`${IF}-dynamic-theme`):me.env.NODE_ENV!=="production"&&uy(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const rC=x.createContext(!1),UF=t=>{let{children:r,disabled:i}=t;const o=x.useContext(rC);return x.createElement(rC.Provider,{value:i??o},r)},ih=x.createContext(void 0),BF=t=>{let{children:r,size:i}=t;const o=x.useContext(ih);return x.createElement(ih.Provider,{value:i||o},r)};function VF(){const t=x.useContext(rC),r=x.useContext(ih);return{componentDisabled:t,componentSize:r}}var r_=ta(function t(){ea(this,t)}),i_="CALC_UNIT",HF=new RegExp(i_,"g");function iC(t){return typeof t=="number"?"".concat(t).concat(i_):t}var WF=function(t){Ls(i,t);var r=Fs(i);function i(o,u){var p;ea(this,i),p=r.call(this),he(xn(p),"result",""),he(xn(p),"unitlessCssVar",void 0),he(xn(p),"lowPriority",void 0);var f=un(o);return p.unitlessCssVar=u,o instanceof i?p.result="(".concat(o.result,")"):f==="number"?p.result=iC(o):f==="string"&&(p.result=o),p}return ta(i,[{key:"add",value:function(u){return u instanceof i?this.result="".concat(this.result," + ").concat(u.getResult()):(typeof u=="number"||typeof u=="string")&&(this.result="".concat(this.result," + ").concat(iC(u))),this.lowPriority=!0,this}},{key:"sub",value:function(u){return u instanceof i?this.result="".concat(this.result," - ").concat(u.getResult()):(typeof u=="number"||typeof u=="string")&&(this.result="".concat(this.result," - ").concat(iC(u))),this.lowPriority=!0,this}},{key:"mul",value:function(u){return this.lowPriority&&(this.result="(".concat(this.result,")")),u instanceof i?this.result="".concat(this.result," * ").concat(u.getResult(!0)):(typeof u=="number"||typeof u=="string")&&(this.result="".concat(this.result," * ").concat(u)),this.lowPriority=!1,this}},{key:"div",value:function(u){return this.lowPriority&&(this.result="(".concat(this.result,")")),u instanceof i?this.result="".concat(this.result," / ").concat(u.getResult(!0)):(typeof u=="number"||typeof u=="string")&&(this.result="".concat(this.result," / ").concat(u)),this.lowPriority=!1,this}},{key:"getResult",value:function(u){return this.lowPriority||u?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(u){var p=this,f=u||{},g=f.unit,y=!0;return typeof g=="boolean"?y=g:Array.from(this.unitlessCssVar).some(function(S){return p.result.includes(S)})&&(y=!1),this.result=this.result.replace(HF,y?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),i}(r_),qF=function(t){Ls(i,t);var r=Fs(i);function i(o){var u;return ea(this,i),u=r.call(this),he(xn(u),"result",0),o instanceof i?u.result=o.result:typeof o=="number"&&(u.result=o),u}return ta(i,[{key:"add",value:function(u){return u instanceof i?this.result+=u.result:typeof u=="number"&&(this.result+=u),this}},{key:"sub",value:function(u){return u instanceof i?this.result-=u.result:typeof u=="number"&&(this.result-=u),this}},{key:"mul",value:function(u){return u instanceof i?this.result*=u.result:typeof u=="number"&&(this.result*=u),this}},{key:"div",value:function(u){return u instanceof i?this.result/=u.result:typeof u=="number"&&(this.result/=u),this}},{key:"equal",value:function(){return this.result}}]),i}(r_),KF=function(r,i){var o=r==="css"?WF:qF;return function(u){return new o(u,i)}},a_=function(r,i){return"".concat([i,r.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ua(t){var r=x.useRef();r.current=t;var i=x.useCallback(function(){for(var o,u=arguments.length,p=new Array(u),f=0;f<u;f++)p[f]=arguments[f];return(o=r.current)===null||o===void 0?void 0:o.call.apply(o,[r].concat(p))},[]);return i}function ah(t){var r=x.useRef(!1),i=x.useState(t),o=Ge(i,2),u=o[0],p=o[1];x.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function f(g,y){y&&r.current||p(g)}return[u,f]}function aC(t){return t!==void 0}function Hc(t,r){var i=r||{},o=i.defaultValue,u=i.value,p=i.onChange,f=i.postState,g=ah(function(){return aC(u)?u:aC(o)?typeof o=="function"?o():o:typeof t=="function"?t():t}),y=Ge(g,2),S=y[0],b=y[1],R=u!==void 0?u:S,_=f?f(R):R,P=Ua(p),N=ah([R]),L=Ge(N,2),D=L[0],H=L[1];uO(function(){var z=D[0];S!==z&&P(S,z)},[D]),uO(function(){aC(u)||b(u)},[u]);var I=Ua(function(z,V){b(z,V),H([R],V)});return[_,I]}function o_(t,r,i,o){var u=ke({},r[t]);if(o!=null&&o.deprecatedTokens){var p=o.deprecatedTokens;p.forEach(function(g){var y=Ge(g,2),S=y[0],b=y[1];if(me.env.NODE_ENV!=="production"&&ur(!(u!=null&&u[S]),"Component Token `".concat(String(S),"` of ").concat(String(t)," is deprecated. Please use `").concat(String(b),"` instead.")),u!=null&&u[S]||u!=null&&u[b]){var R;(R=u[b])!==null&&R!==void 0||(u[b]=u?.[S])}})}var f=ke(ke({},i),u);return Object.keys(f).forEach(function(g){f[g]===r[g]&&delete f[g]}),f}var l_=me.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",oC=!0;function Wu(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];if(!l_)return Object.assign.apply(Object,[{}].concat(r));oC=!1;var o={};return r.forEach(function(u){if(un(u)==="object"){var p=Object.keys(u);p.forEach(function(f){Object.defineProperty(o,f,{configurable:!0,enumerable:!0,get:function(){return u[f]}})})}}),oC=!0,o}var u_={};function YF(){}var GF=function(r){var i,o=r,u=YF;return l_&&typeof Proxy<"u"&&(i=new Set,o=new Proxy(r,{get:function(f,g){if(oC){var y;(y=i)===null||y===void 0||y.add(g)}return f[g]}}),u=function(f,g){var y;u_[f]={global:Array.from(i),component:ke(ke({},(y=u_[f])===null||y===void 0?void 0:y.component),g)}}),{token:o,keys:i,flush:u}};function s_(t,r,i){if(typeof i=="function"){var o;return i(Wu(r,(o=r[t])!==null&&o!==void 0?o:{}))}return i??{}}function XF(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return"max(".concat(o.map(function(p){return gn(p)}).join(","),")")},min:function(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return"min(".concat(o.map(function(p){return gn(p)}).join(","),")")}}}var QF=1e3*60*10,JF=function(){function t(){ea(this,t),he(this,"map",new Map),he(this,"objectIDMap",new WeakMap),he(this,"nextID",0),he(this,"lastAccessBeat",new Map),he(this,"accessBeat",0)}return ta(t,[{key:"set",value:function(i,o){this.clear();var u=this.getCompositeKey(i);this.map.set(u,o),this.lastAccessBeat.set(u,Date.now())}},{key:"get",value:function(i){var o=this.getCompositeKey(i),u=this.map.get(o);return this.lastAccessBeat.set(o,Date.now()),this.accessBeat+=1,u}},{key:"getCompositeKey",value:function(i){var o=this,u=i.map(function(p){return p&&un(p)==="object"?"obj_".concat(o.getObjectID(p)):"".concat(un(p),"_").concat(p)});return u.join("|")}},{key:"getObjectID",value:function(i){if(this.objectIDMap.has(i))return this.objectIDMap.get(i);var o=this.nextID;return this.objectIDMap.set(i,o),this.nextID+=1,o}},{key:"clear",value:function(){var i=this;if(this.accessBeat>1e4){var o=Date.now();this.lastAccessBeat.forEach(function(u,p){o-u>QF&&(i.map.delete(p),i.lastAccessBeat.delete(p))}),this.accessBeat=0}}}]),t}(),c_=new JF;function ZF(t,r){return _n.useMemo(function(){var i=c_.get(r);if(i)return i;var o=t();return c_.set(r,o),o},r)}var eI=function(){return{}};function tI(t){var r=t.useCSP,i=r===void 0?eI:r,o=t.useToken,u=t.usePrefix,p=t.getResetStyles,f=t.getCommonStyle,g=t.getCompUnitless;function y(_,P,N,L){var D=Array.isArray(_)?_[0]:_;function H(Z){return"".concat(String(D)).concat(Z.slice(0,1).toUpperCase()).concat(Z.slice(1))}var I=L?.unitless||{},z=typeof g=="function"?g(_):{},V=ke(ke({},z),{},he({},H("zIndexPopup"),!0));Object.keys(I).forEach(function(Z){V[H(Z)]=I[Z]});var B=ke(ke({},L),{},{unitless:V,prefixToken:H}),W=b(_,P,N,B),K=S(D,N,B);return function(Z){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z,Y=W(Z,ie),J=Ge(Y,2),oe=J[1],X=K(ie),ne=Ge(X,2),de=ne[0],we=ne[1];return[de,oe,we]}}function S(_,P,N){var L=N.unitless,D=N.injectStyle,H=D===void 0?!0:D,I=N.prefixToken,z=N.ignore,V=function(K){var Z=K.rootCls,ie=K.cssVar,Y=ie===void 0?{}:ie,J=o(),oe=J.realToken;return ZL({path:[_],prefix:Y.prefix,key:Y.key,unitless:L,ignore:z,token:oe,scope:Z},function(){var X=s_(_,oe,P),ne=o_(_,oe,X,{deprecatedTokens:N?.deprecatedTokens});return Object.keys(X).forEach(function(de){ne[I(de)]=ne[de],delete ne[de]}),ne}),null},B=function(K){var Z=o(),ie=Z.cssVar;return[function(Y){return H&&ie?_n.createElement(_n.Fragment,null,_n.createElement(V,{rootCls:K,cssVar:ie,component:_}),Y):Y},ie?.key]};return B}function b(_,P,N){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},D=Array.isArray(_)?_:[_,_],H=Ge(D,1),I=H[0],z=D.join("-"),V=t.layer||{name:"antd"};return function(B){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B,K=o(),Z=K.theme,ie=K.realToken,Y=K.hashId,J=K.token,oe=K.cssVar,X=u(),ne=X.rootPrefixCls,de=X.iconPrefixCls,we=i(),ge=oe?"css":"js",le=ZF(function(){var ye=new Set;return oe&&Object.keys(L.unitless||{}).forEach(function(Le){ye.add(Jg(Le,oe.prefix)),ye.add(Jg(Le,a_(I,oe.prefix)))}),KF(ge,ye)},[ge,I,oe?.prefix]),Re=XF(ge),pe=Re.max,G=Re.min,ue={theme:Z,token:J,hashId:Y,nonce:function(){return we.nonce},clientOnly:L.clientOnly,layer:V,order:L.order||-999};typeof p=="function"&&AE(ke(ke({},ue),{},{clientOnly:!1,path:["Shared",ne]}),function(){return p(J,{prefix:{rootPrefixCls:ne,iconPrefixCls:de},csp:we})});var De=AE(ke(ke({},ue),{},{path:[z,B,de]}),function(){if(L.injectStyle===!1)return[];var ye=GF(J),Le=ye.token,We=ye.flush,Ue=s_(I,ie,N),qe=".".concat(B),Qe=o_(I,ie,Ue,{deprecatedTokens:L.deprecatedTokens});oe&&Ue&&un(Ue)==="object"&&Object.keys(Ue).forEach(function(_t){Ue[_t]="var(".concat(Jg(_t,a_(I,oe.prefix)),")")});var ft=Wu(Le,{componentCls:qe,prefixCls:B,iconCls:".".concat(de),antCls:".".concat(ne),calc:le,max:pe,min:G},oe?Ue:Qe),rt=P(ft,{hashId:Y,prefixCls:B,rootPrefixCls:ne,iconPrefixCls:de});We(I,Qe);var Tt=typeof f=="function"?f(ft,B,W,L.resetFont):null;return[L.resetStyle===!1?null:Tt,rt]});return[De,Y]}}function R(_,P,N){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},D=b(_,P,N,ke({resetStyle:!1,order:-998},L)),H=function(z){var V=z.prefixCls,B=z.rootCls,W=B===void 0?V:B;return D(V,W),null};return me.env.NODE_ENV!=="production"&&(H.displayName="SubStyle_".concat(String(Array.isArray(_)?_.join("."):_))),H}return{genStyleHooks:y,genSubStyleComponent:R,genComponentStyleHook:b}}const my=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],nI="5.20.0";function lC(t){return t>=0&&t<=255}function gy(t,r){const{r:i,g:o,b:u,a:p}=new ja(t).toRgb();if(p<1)return t;const{r:f,g,b:y}=new ja(r).toRgb();for(let S=.01;S<=1;S+=.01){const b=Math.round((i-f*(1-S))/S),R=Math.round((o-g*(1-S))/S),_=Math.round((u-y*(1-S))/S);if(lC(b)&&lC(R)&&lC(_))return new ja({r:b,g:R,b:_,a:Math.round(S*100)/100}).toRgbString()}return new ja({r:i,g:o,b:u,a:1}).toRgbString()}var rI=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};function f_(t){const{override:r}=t,i=rI(t,["override"]),o=Object.assign({},r);Object.keys(nh).forEach(_=>{delete o[_]});const u=Object.assign(Object.assign({},i),o),p=480,f=576,g=768,y=992,S=1200,b=1600;if(u.motion===!1){const _="0s";u.motionDurationFast=_,u.motionDurationMid=_,u.motionDurationSlow=_}return Object.assign(Object.assign(Object.assign({},u),{colorFillContent:u.colorFillSecondary,colorFillContentHover:u.colorFill,colorFillAlter:u.colorFillQuaternary,colorBgContainerDisabled:u.colorFillTertiary,colorBorderBg:u.colorBgContainer,colorSplit:gy(u.colorBorderSecondary,u.colorBgContainer),colorTextPlaceholder:u.colorTextQuaternary,colorTextDisabled:u.colorTextQuaternary,colorTextHeading:u.colorText,colorTextLabel:u.colorTextSecondary,colorTextDescription:u.colorTextTertiary,colorTextLightSolid:u.colorWhite,colorHighlight:u.colorError,colorBgTextHover:u.colorFillSecondary,colorBgTextActive:u.colorFill,colorIcon:u.colorTextTertiary,colorIconHover:u.colorText,colorErrorOutline:gy(u.colorErrorBg,u.colorBgContainer),colorWarningOutline:gy(u.colorWarningBg,u.colorBgContainer),fontSizeIcon:u.fontSizeSM,lineWidthFocus:u.lineWidth*4,lineWidth:u.lineWidth,controlOutlineWidth:u.lineWidth*2,controlInteractiveSize:u.controlHeight/2,controlItemBgHover:u.colorFillTertiary,controlItemBgActive:u.colorPrimaryBg,controlItemBgActiveHover:u.colorPrimaryBgHover,controlItemBgActiveDisabled:u.colorFill,controlTmpOutline:u.colorFillQuaternary,controlOutline:gy(u.colorPrimaryBg,u.colorBgContainer),lineType:u.lineType,borderRadius:u.borderRadius,borderRadiusXS:u.borderRadiusXS,borderRadiusSM:u.borderRadiusSM,borderRadiusLG:u.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:u.sizeXXS,paddingXS:u.sizeXS,paddingSM:u.sizeSM,padding:u.size,paddingMD:u.sizeMD,paddingLG:u.sizeLG,paddingXL:u.sizeXL,paddingContentHorizontalLG:u.sizeLG,paddingContentVerticalLG:u.sizeMS,paddingContentHorizontal:u.sizeMS,paddingContentVertical:u.sizeSM,paddingContentHorizontalSM:u.size,paddingContentVerticalSM:u.sizeXS,marginXXS:u.sizeXXS,marginXS:u.sizeXS,marginSM:u.sizeSM,margin:u.size,marginMD:u.sizeMD,marginLG:u.sizeLG,marginXL:u.sizeXL,marginXXL:u.sizeXXL,boxShadow:`
|
|
233
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
234
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
235
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
236
|
-
`,boxShadowSecondary:`
|
|
237
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
238
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
239
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
240
|
-
`,boxShadowTertiary:`
|
|
241
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
242
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
243
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
244
|
-
`,screenXS:p,screenXSMin:p,screenXSMax:f-1,screenSM:f,screenSMMin:f,screenSMMax:g-1,screenMD:g,screenMDMin:g,screenMDMax:y-1,screenLG:y,screenLGMin:y,screenLGMax:S-1,screenXL:S,screenXLMin:S,screenXLMax:b-1,screenXXL:b,screenXXLMin:b,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
245
|
-
0 1px 2px -2px ${new ja("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
246
|
-
0 3px 6px 0 ${new ja("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
247
|
-
0 5px 12px 4px ${new ja("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
248
|
-
`,boxShadowDrawerRight:`
|
|
249
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
250
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
251
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
252
|
-
`,boxShadowDrawerLeft:`
|
|
253
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
254
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
255
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
256
|
-
`,boxShadowDrawerUp:`
|
|
257
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
258
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
259
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
260
|
-
`,boxShadowDrawerDown:`
|
|
261
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
262
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
263
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
264
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}var d_=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};const p_={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},iI={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},aI={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},v_=(t,r,i)=>{const o=i.getDerivativeToken(t),{override:u}=r,p=d_(r,["override"]);let f=Object.assign(Object.assign({},o),{override:u});return f=f_(f),p&&Object.entries(p).forEach(g=>{let[y,S]=g;const{theme:b}=S,R=d_(S,["theme"]);let _=R;b&&(_=v_(Object.assign(Object.assign({},f),R),{override:R},b)),f[y]=_}),f};function Wc(){const{token:t,hashed:r,theme:i,override:o,cssVar:u}=_n.useContext(t_),p=`${nI}-${r||""}`,f=i||e_,[g,y,S]=xL(f,[nh,t],{salt:p,override:o,getComputedToken:v_,formatToken:f_,cssVar:u&&{prefix:u.prefix,key:u.key,unitless:p_,ignore:iI,preserve:aI}});return[f,S,r?y:"",g,u]}const oI={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},oh=function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:r?"inherit":t.fontFamily}},h_=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),m_=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),lI=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),uI=(t,r,i,o)=>{const u=`[class^="${r}"], [class*=" ${r}"]`,p=i?`.${i}`:u,f={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let g={};return o!==!1&&(g={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[p]:Object.assign(Object.assign(Object.assign({},g),f),{[u]:f})}},g_=t=>({outline:`${gn(t.lineWidthFocus)} solid ${t.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),uC=t=>({"&:focus-visible":Object.assign({},g_(t))}),y_=(t,r)=>{const[i,o]=Wc();return AE({token:o,hashId:"",path:["ant-design-icons",t],nonce:()=>r?.nonce,layer:{name:"antd"}},()=>[{[`.${t}`]:Object.assign(Object.assign({},h_()),{[`.${t} .${t}-icon`]:{display:"block"}})}])},{genStyleHooks:lh}=tI({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:r}=x.useContext(ia);return{rootPrefixCls:t(),iconPrefixCls:r}},useToken:()=>{const[t,r,i,o,u]=Wc();return{theme:t,realToken:r,hashId:i,token:o,cssVar:u}},useCSP:()=>{const{csp:t,iconPrefixCls:r}=x.useContext(ia);return y_(r,t),t??{}},getResetStyles:t=>[{"&":lI(t)}],getCommonStyle:uI,getCompUnitless:()=>p_});function sI(t,r){return my.reduce((i,o)=>{const u=t[`${o}1`],p=t[`${o}3`],f=t[`${o}6`],g=t[`${o}7`];return Object.assign(Object.assign({},i),r(o,{lightColor:u,lightBorderColor:p,darkColor:f,textColor:g}))},{})}const cI=Object.assign({},Ig),{useId:b_}=cI,fI=typeof b_>"u"?()=>"":b_;function dI(t,r,i){var o,u;const p=Sl("ConfigProvider"),f=t||{},g=f.inherit===!1||!r?Object.assign(Object.assign({},nC),{hashed:(o=r?.hashed)!==null&&o!==void 0?o:nC.hashed,cssVar:r?.cssVar}):r,y=fI();if(me.env.NODE_ENV!=="production"){const S=f.cssVar||g.cssVar,b=!!(typeof f.cssVar=="object"&&(!((u=f.cssVar)===null||u===void 0)&&u.key)||y);me.env.NODE_ENV!=="production"&&p(!S||b,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Bg(()=>{var S,b;if(!t)return r;const R=Object.assign({},g.components);Object.keys(t.components||{}).forEach(N=>{R[N]=Object.assign(Object.assign({},R[N]),t.components[N])});const _=`css-var-${y.replace(/:/g,"")}`,P=((S=f.cssVar)!==null&&S!==void 0?S:g.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:i?.prefixCls},typeof g.cssVar=="object"?g.cssVar:{}),typeof f.cssVar=="object"?f.cssVar:{}),{key:typeof f.cssVar=="object"&&((b=f.cssVar)===null||b===void 0?void 0:b.key)||_});return Object.assign(Object.assign(Object.assign({},g),f),{token:Object.assign(Object.assign({},g.token),f.token),components:R,cssVar:P})},[f,g],(S,b)=>S.some((R,_)=>{const P=b[_];return!Kv(R,P,!0)}))}var pI=["children"],S_=x.createContext({});function vI(t){var r=t.children,i=Rr(t,pI);return x.createElement(S_.Provider,{value:i},r)}var hI=function(t){Ls(i,t);var r=Fs(i);function i(){return ea(this,i),r.apply(this,arguments)}return ta(i,[{key:"render",value:function(){return this.props.children}}]),i}(x.Component);function mI(t){var r=x.useReducer(function(g){return g+1},0),i=Ge(r,2),o=i[1],u=x.useRef(t),p=Ua(function(){return u.current}),f=Ua(function(g){u.current=typeof g=="function"?g(u.current):g,o()});return[p,f]}var Bs="none",yy="appear",by="enter",Sy="leave",E_="none",Cl="prepare",Rd="start",Td="active",sC="end",C_="prepared";function w_(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit".concat(t)]="webkit".concat(r),i["Moz".concat(t)]="moz".concat(r),i["ms".concat(t)]="MS".concat(r),i["O".concat(t)]="o".concat(r.toLowerCase()),i}function gI(t,r){var i={animationend:w_("Animation","AnimationEnd"),transitionend:w_("Transition","TransitionEnd")};return t&&("AnimationEvent"in r||delete i.animationend.animation,"TransitionEvent"in r||delete i.transitionend.transition),i}var yI=gI(io(),typeof window<"u"?window:{}),x_={};if(io()){var bI=document.createElement("div");x_=bI.style}var Ey={};function R_(t){if(Ey[t])return Ey[t];var r=yI[t];if(r)for(var i=Object.keys(r),o=i.length,u=0;u<o;u+=1){var p=i[u];if(Object.prototype.hasOwnProperty.call(r,p)&&p in x_)return Ey[t]=r[p],Ey[t]}return""}var T_=R_("animationend"),O_=R_("transitionend"),__=!!(T_&&O_),k_=T_||"animationend",N_=O_||"transitionend";function D_(t,r){if(!t)return null;if(un(t)==="object"){var i=r.replace(/-\w/g,function(o){return o[1].toUpperCase()});return t[i]}return"".concat(t,"-").concat(r)}const SI=function(t){var r=x.useRef();function i(u){u&&(u.removeEventListener(N_,t),u.removeEventListener(k_,t))}function o(u){r.current&&r.current!==u&&i(r.current),u&&u!==r.current&&(u.addEventListener(N_,t),u.addEventListener(k_,t),r.current=u)}return x.useEffect(function(){return function(){i(r.current)}},[]),[o,i]};var M_=io()?x.useLayoutEffect:x.useEffect;const EI=function(){var t=x.useRef(null);function r(){hl.cancel(t.current)}function i(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;r();var p=hl(function(){u<=1?o({isCanceled:function(){return p!==t.current}}):i(o,u-1)});t.current=p}return x.useEffect(function(){return function(){r()}},[]),[i,r]};var CI=[Cl,Rd,Td,sC],wI=[Cl,C_],P_=!1,xI=!0;function A_(t){return t===Td||t===sC}const RI=function(t,r,i){var o=ah(E_),u=Ge(o,2),p=u[0],f=u[1],g=EI(),y=Ge(g,2),S=y[0],b=y[1];function R(){f(Cl,!0)}var _=r?wI:CI;return M_(function(){if(p!==E_&&p!==sC){var P=_.indexOf(p),N=_[P+1],L=i(p);L===P_?f(N,!0):N&&S(function(D){function H(){D.isCanceled()||f(N,!0)}L===!0?H():Promise.resolve(L).then(H)})}},[t,p]),x.useEffect(function(){return function(){b()}},[]),[R,p]};function TI(t,r,i,o){var u=o.motionEnter,p=u===void 0?!0:u,f=o.motionAppear,g=f===void 0?!0:f,y=o.motionLeave,S=y===void 0?!0:y,b=o.motionDeadline,R=o.motionLeaveImmediately,_=o.onAppearPrepare,P=o.onEnterPrepare,N=o.onLeavePrepare,L=o.onAppearStart,D=o.onEnterStart,H=o.onLeaveStart,I=o.onAppearActive,z=o.onEnterActive,V=o.onLeaveActive,B=o.onAppearEnd,W=o.onEnterEnd,K=o.onLeaveEnd,Z=o.onVisibleChanged,ie=ah(),Y=Ge(ie,2),J=Y[0],oe=Y[1],X=mI(Bs),ne=Ge(X,2),de=ne[0],we=ne[1],ge=ah(null),le=Ge(ge,2),Re=le[0],pe=le[1],G=de(),ue=x.useRef(!1),De=x.useRef(null);function ye(){return i()}var Le=x.useRef(!1);function We(){we(Bs),pe(null,!0)}var Ue=Ua(function(bt){var Ut=de();if(Ut!==Bs){var tt=ye();if(!(bt&&!bt.deadline&&bt.target!==tt)){var an=Le.current,St;Ut===yy&&an?St=B?.(tt,bt):Ut===by&&an?St=W?.(tt,bt):Ut===Sy&&an&&(St=K?.(tt,bt)),an&&St!==!1&&We()}}}),qe=SI(Ue),Qe=Ge(qe,1),ft=Qe[0],rt=function(Ut){switch(Ut){case yy:return he(he(he({},Cl,_),Rd,L),Td,I);case by:return he(he(he({},Cl,P),Rd,D),Td,z);case Sy:return he(he(he({},Cl,N),Rd,H),Td,V);default:return{}}},Tt=x.useMemo(function(){return rt(G)},[G]),_t=RI(G,!t,function(bt){if(bt===Cl){var Ut=Tt[Cl];return Ut?Ut(ye()):P_}if(st in Tt){var tt;pe(((tt=Tt[st])===null||tt===void 0?void 0:tt.call(Tt,ye(),null))||null)}return st===Td&&G!==Bs&&(ft(ye()),b>0&&(clearTimeout(De.current),De.current=setTimeout(function(){Ue({deadline:!0})},b))),st===C_&&We(),xI}),$e=Ge(_t,2),yt=$e[0],st=$e[1],sn=A_(st);Le.current=sn;var cn=x.useRef(null);M_(function(){if(!(ue.current&&cn.current===r)){oe(r);var bt=ue.current;ue.current=!0;var Ut;!bt&&r&&g&&(Ut=yy),bt&&r&&p&&(Ut=by),(bt&&!r&&S||!bt&&R&&!r&&S)&&(Ut=Sy);var tt=rt(Ut);Ut&&(t||tt[Cl])?(we(Ut),yt()):we(Bs),cn.current=r}},[r]),x.useEffect(function(){(G===yy&&!g||G===by&&!p||G===Sy&&!S)&&we(Bs)},[g,p,S]),x.useEffect(function(){return function(){ue.current=!1,clearTimeout(De.current)}},[]);var pn=x.useRef(!1);x.useEffect(function(){J&&(pn.current=!0),J!==void 0&&G===Bs&&((pn.current||J)&&Z?.(J),pn.current=!0)},[J,G]);var rn=Re;return Tt[Cl]&&st===Rd&&(rn=ke({transition:"none"},rn)),[G,st,rn,J??r]}function OI(t){var r=t;un(t)==="object"&&(r=t.transitionSupport);function i(u,p){return!!(u.motionName&&r&&p!==!1)}var o=x.forwardRef(function(u,p){var f=u.visible,g=f===void 0?!0:f,y=u.removeOnLeave,S=y===void 0?!0:y,b=u.forceRender,R=u.children,_=u.motionName,P=u.leavedClassName,N=u.eventProps,L=x.useContext(S_),D=L.motion,H=i(u,D),I=x.useRef(),z=x.useRef();function V(){try{return I.current instanceof HTMLElement?I.current:Ug(z.current)}catch{return null}}var B=TI(H,g,V,u),W=Ge(B,4),K=W[0],Z=W[1],ie=W[2],Y=W[3],J=x.useRef(Y);Y&&(J.current=!0);var oe=x.useCallback(function(le){I.current=le,dE(p,le)},[p]),X,ne=ke(ke({},N),{},{visible:g});if(!R)X=null;else if(K===Bs)Y?X=R(ke({},ne),oe):!S&&J.current&&P?X=R(ke(ke({},ne),{},{className:P}),oe):b||!S&&!P?X=R(ke(ke({},ne),{},{style:{display:"none"}}),oe):X=null;else{var de;Z===Cl?de="prepare":A_(Z)?de="active":Z===Rd&&(de="start");var we=D_(_,"".concat(K,"-").concat(de));X=R(ke(ke({},ne),{},{className:Zt(D_(_,K),he(he({},we,we&&de),_,typeof _=="string")),style:ie}),oe)}if(x.isValidElement(X)&&Ic(X)){var ge=Bv(X);ge||(X=x.cloneElement(X,{ref:oe}))}return x.createElement(hI,{ref:z},X)});return o.displayName="CSSMotion",o}const Cy=OI(__);var cC="add",fC="keep",dC="remove",pC="removed";function _I(t){var r;return t&&un(t)==="object"&&"key"in t?r=t:r={key:t},ke(ke({},r),{},{key:String(r.key)})}function vC(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(_I)}function kI(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=[],o=0,u=r.length,p=vC(t),f=vC(r);p.forEach(function(S){for(var b=!1,R=o;R<u;R+=1){var _=f[R];if(_.key===S.key){o<R&&(i=i.concat(f.slice(o,R).map(function(P){return ke(ke({},P),{},{status:cC})})),o=R),i.push(ke(ke({},_),{},{status:fC})),o+=1,b=!0;break}}b||i.push(ke(ke({},S),{},{status:dC}))}),o<u&&(i=i.concat(f.slice(o).map(function(S){return ke(ke({},S),{},{status:cC})})));var g={};i.forEach(function(S){var b=S.key;g[b]=(g[b]||0)+1});var y=Object.keys(g).filter(function(S){return g[S]>1});return y.forEach(function(S){i=i.filter(function(b){var R=b.key,_=b.status;return R!==S||_!==dC}),i.forEach(function(b){b.key===S&&(b.status=fC)})}),i}var NI=["component","children","onVisibleChanged","onAllRemoved"],DI=["status"],MI=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function PI(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cy,i=function(o){Ls(p,o);var u=Fs(p);function p(){var f;ea(this,p);for(var g=arguments.length,y=new Array(g),S=0;S<g;S++)y[S]=arguments[S];return f=u.call.apply(u,[this].concat(y)),he(xn(f),"state",{keyEntities:[]}),he(xn(f),"removeKey",function(b){f.setState(function(R){var _=R.keyEntities.map(function(P){return P.key!==b?P:ke(ke({},P),{},{status:pC})});return{keyEntities:_}},function(){var R=f.state.keyEntities,_=R.filter(function(P){var N=P.status;return N!==pC}).length;_===0&&f.props.onAllRemoved&&f.props.onAllRemoved()})}),f}return ta(p,[{key:"render",value:function(){var g=this,y=this.state.keyEntities,S=this.props,b=S.component,R=S.children,_=S.onVisibleChanged;S.onAllRemoved;var P=Rr(S,NI),N=b||x.Fragment,L={};return MI.forEach(function(D){L[D]=P[D],delete P[D]}),delete P.keys,x.createElement(N,P,y.map(function(D,H){var I=D.status,z=Rr(D,DI),V=I===cC||I===fC;return x.createElement(r,wn({},L,{key:z.key,visible:V,eventProps:z,onVisibleChanged:function(W){_?.(W,{key:z.key}),W||g.removeKey(z.key)}}),function(B,W){return R(ke(ke({},B),{},{index:H}),W)})}))}}],[{key:"getDerivedStateFromProps",value:function(g,y){var S=g.keys,b=y.keyEntities,R=vC(S),_=kI(b,R);return{keyEntities:_.filter(function(P){var N=b.find(function(L){var D=L.key;return P.key===D});return!(N&&N.status===pC&&P.status===dC)})}}}]),p}(x.Component);return he(i,"defaultProps",{component:"div"}),i}PI(__);function AI(t){const{children:r}=t,[,i]=Wc(),{motion:o}=i,u=x.useRef(!1);return u.current=u.current||o===!1,u.current?x.createElement(vI,{motion:o},r):r}const $_=x.memo(t=>{let{dropdownMatchSelectWidth:r}=t;return Sl("ConfigProvider").deprecated(r===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});me.env.NODE_ENV!=="production"&&($_.displayName="PropWarning");const $I=me.env.NODE_ENV!=="production"?$_:()=>null;var LI=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};let hC=!1;me.env.NODE_ENV;const FI=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let L_;function II(){return L_||hy}function zI(t){return Object.keys(t).some(r=>r.endsWith("Color"))}const jI=t=>{const{prefixCls:r,iconPrefixCls:i,theme:o,holderRender:u}=t;r!==void 0&&(L_=r),o&&zI(o)&&(me.env.NODE_ENV!=="production"&&uy(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),jF(II(),o))},UI=t=>{const{children:r,csp:i,autoInsertSpaceInButton:o,alert:u,anchor:p,form:f,locale:g,componentSize:y,direction:S,space:b,virtual:R,dropdownMatchSelectWidth:_,popupMatchSelectWidth:P,popupOverflow:N,legacyLocale:L,parentContext:D,iconPrefixCls:H,theme:I,componentDisabled:z,segmented:V,statistic:B,spin:W,calendar:K,carousel:Z,cascader:ie,collapse:Y,typography:J,checkbox:oe,descriptions:X,divider:ne,drawer:de,skeleton:we,steps:ge,image:le,layout:Re,list:pe,mentions:G,modal:ue,progress:De,result:ye,slider:Le,breadcrumb:We,menu:Ue,pagination:qe,input:Qe,textArea:ft,empty:rt,badge:Tt,radio:_t,rate:$e,switch:yt,transfer:st,avatar:sn,message:cn,tag:pn,table:rn,card:bt,tabs:Ut,timeline:tt,timePicker:an,upload:St,notification:Pt,tree:Un,colorPicker:Cn,datePicker:Jn,rangePicker:A,flex:w,wave:O,dropdown:U,warning:ee,tour:ve,floatButtonGroup:Se,variant:Xe,inputNumber:mt,treeSelect:gt}=t,Ct=x.useCallback((qt,Qt)=>{const{prefixCls:Nn}=t;if(Qt)return Qt;const lr=Nn||D.getPrefixCls("");return qt?`${lr}-${qt}`:lr},[D.getPrefixCls,t.prefixCls]),Dt=H||D.iconPrefixCls||n_,or=i||D.csp;y_(Dt,or);const Bn=dI(I,D.theme,{prefixCls:Ct("")});me.env.NODE_ENV!=="production"&&(hC=hC||!!Bn);const Mn={csp:or,autoInsertSpaceInButton:o,alert:u,anchor:p,locale:g||L,direction:S,space:b,virtual:R,popupMatchSelectWidth:P??_,popupOverflow:N,getPrefixCls:Ct,iconPrefixCls:Dt,theme:Bn,segmented:V,statistic:B,spin:W,calendar:K,carousel:Z,cascader:ie,collapse:Y,typography:J,checkbox:oe,descriptions:X,divider:ne,drawer:de,skeleton:we,steps:ge,image:le,input:Qe,textArea:ft,layout:Re,list:pe,mentions:G,modal:ue,progress:De,result:ye,slider:Le,breadcrumb:We,menu:Ue,pagination:qe,empty:rt,badge:Tt,radio:_t,rate:$e,switch:yt,transfer:st,avatar:sn,message:cn,tag:pn,table:rn,card:bt,tabs:Ut,timeline:tt,timePicker:an,upload:St,notification:Pt,tree:Un,colorPicker:Cn,datePicker:Jn,rangePicker:A,flex:w,wave:O,dropdown:U,warning:ee,tour:ve,floatButtonGroup:Se,variant:Xe,inputNumber:mt,treeSelect:gt};me.env.NODE_ENV!=="production"&&Sl("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const kr=Object.assign({},D);Object.keys(Mn).forEach(qt=>{Mn[qt]!==void 0&&(kr[qt]=Mn[qt])}),FI.forEach(qt=>{const Qt=t[qt];Qt&&(kr[qt]=Qt)}),typeof o<"u"&&(kr.button=Object.assign({autoInsertSpace:o},kr.button));const kn=Bg(()=>kr,kr,(qt,Qt)=>{const Nn=Object.keys(qt),lr=Object.keys(Qt);return Nn.length!==lr.length||Nn.some(Nr=>qt[Nr]!==Qt[Nr])}),Ot=x.useMemo(()=>({prefixCls:Dt,csp:or}),[Dt,or]);let et=x.createElement(x.Fragment,null,x.createElement($I,{dropdownMatchSelectWidth:_}),r);const At=x.useMemo(()=>{var qt,Qt,Nn,lr;return wd(((qt=sy.Form)===null||qt===void 0?void 0:qt.defaultValidateMessages)||{},((Nn=(Qt=kn.locale)===null||Qt===void 0?void 0:Qt.Form)===null||Nn===void 0?void 0:Nn.defaultValidateMessages)||{},((lr=kn.form)===null||lr===void 0?void 0:lr.validateMessages)||{},f?.validateMessages||{})},[kn,f?.validateMessages]);Object.keys(At).length>0&&(et=x.createElement(aF.Provider,{value:At},et)),g&&(et=x.createElement(jO,{locale:g,_ANT_MARK__:zO},et)),et=x.createElement($E.Provider,{value:Ot},et),y&&(et=x.createElement(BF,{size:y},et)),et=x.createElement(AI,null,et);const dn=x.useMemo(()=>{const qt=Bn||{},{algorithm:Qt,token:Nn,components:lr,cssVar:Nr}=qt,$r=LI(qt,["algorithm","token","components","cssVar"]),te=Qt&&(!Array.isArray(Qt)||Qt.length>0)?xE(Qt):e_,ze={};Object.entries(lr||{}).forEach(nt=>{let[Bt,Nt]=nt;const Et=Object.assign({},Nt);"algorithm"in Et&&(Et.algorithm===!0?Et.theme=te:(Array.isArray(Et.algorithm)||typeof Et.algorithm=="function")&&(Et.theme=xE(Et.algorithm)),delete Et.algorithm),ze[Bt]=Et});const Ze=Object.assign(Object.assign({},nh),Nn);return Object.assign(Object.assign({},$r),{theme:te,token:Ze,components:ze,override:Object.assign({override:Ze},ze),cssVar:Nr})},[Bn]);return I&&(et=x.createElement(t_.Provider,{value:dn},et)),kn.warning&&(et=x.createElement(LO.Provider,{value:kn.warning},et)),z!==void 0&&(et=x.createElement(UF,{disabled:z},et)),x.createElement(ia.Provider,{value:kn},et)},qc=t=>{const r=x.useContext(ia),i=x.useContext(IO);return x.createElement(UI,Object.assign({parentContext:r,legacyLocale:i},t))};qc.ConfigContext=ia,qc.SizeContext=ih,qc.config=jI,qc.useConfig=VF,Object.defineProperty(qc,"SizeContext",{get:()=>(me.env.NODE_ENV!=="production"&&uy(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ih)}),me.env.NODE_ENV!=="production"&&(qc.displayName="ConfigProvider");function F_(t){var r;return t==null||(r=t.getRootNode)===null||r===void 0?void 0:r.call(t)}function BI(t){return F_(t)instanceof ShadowRoot}function wy(t){return BI(t)?F_(t):null}function VI(t){return t.replace(/-(.)/g,function(r,i){return i.toUpperCase()})}function HI(t,r){ur(t,"[@ant-design/icons] ".concat(r))}function I_(t){return un(t)==="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(un(t.icon)==="object"||typeof t.icon=="function")}function z_(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(r,i){var o=t[i];switch(i){case"class":r.className=o,delete r.class;break;default:delete r[i],r[VI(i)]=o}return r},{})}function mC(t,r,i){return i?_n.createElement(t.tag,ke(ke({key:r},z_(t.attrs)),i),(t.children||[]).map(function(o,u){return mC(o,"".concat(r,"-").concat(t.tag,"-").concat(u))})):_n.createElement(t.tag,ke({key:r},z_(t.attrs)),(t.children||[]).map(function(o,u){return mC(o,"".concat(r,"-").concat(t.tag,"-").concat(u))}))}function j_(t){return th(t)[0]}function U_(t){return t?Array.isArray(t)?t:[t]:[]}var WI=`
|
|
265
|
-
.anticon {
|
|
266
|
-
display: inline-flex;
|
|
267
|
-
align-items: center;
|
|
268
|
-
color: inherit;
|
|
269
|
-
font-style: normal;
|
|
270
|
-
line-height: 0;
|
|
271
|
-
text-align: center;
|
|
272
|
-
text-transform: none;
|
|
273
|
-
vertical-align: -0.125em;
|
|
274
|
-
text-rendering: optimizeLegibility;
|
|
275
|
-
-webkit-font-smoothing: antialiased;
|
|
276
|
-
-moz-osx-font-smoothing: grayscale;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.anticon > * {
|
|
280
|
-
line-height: 1;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.anticon svg {
|
|
284
|
-
display: inline-block;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.anticon::before {
|
|
288
|
-
display: none;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.anticon .anticon-icon {
|
|
292
|
-
display: block;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.anticon[tabindex] {
|
|
296
|
-
cursor: pointer;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.anticon-spin::before,
|
|
300
|
-
.anticon-spin {
|
|
301
|
-
display: inline-block;
|
|
302
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
303
|
-
animation: loadingCircle 1s infinite linear;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
@-webkit-keyframes loadingCircle {
|
|
307
|
-
100% {
|
|
308
|
-
-webkit-transform: rotate(360deg);
|
|
309
|
-
transform: rotate(360deg);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
@keyframes loadingCircle {
|
|
314
|
-
100% {
|
|
315
|
-
-webkit-transform: rotate(360deg);
|
|
316
|
-
transform: rotate(360deg);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
`,qI=function(r){var i=x.useContext($E),o=i.csp,u=i.prefixCls,p=i.layer,f=WI;u&&(f=f.replace(/anticon/g,u)),p&&(f="@layer ".concat(p,` {
|
|
320
|
-
`).concat(f,`
|
|
321
|
-
}`)),x.useEffect(function(){var g=r.current,y=wy(g);ju(f,"@ant-design-icons",{prepend:!0,csp:o,attachTo:y})},[])},KI=["icon","className","onClick","style","primaryColor","secondaryColor"],uh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function YI(t){var r=t.primaryColor,i=t.secondaryColor;uh.primaryColor=r,uh.secondaryColor=i||j_(r),uh.calculated=!!i}function GI(){return ke({},uh)}var Od=function(r){var i=r.icon,o=r.className,u=r.onClick,p=r.style,f=r.primaryColor,g=r.secondaryColor,y=Rr(r,KI),S=x.useRef(),b=uh;if(f&&(b={primaryColor:f,secondaryColor:g||j_(f)}),qI(S),HI(I_(i),"icon should be icon definiton, but got ".concat(i)),!I_(i))return null;var R=i;return R&&typeof R.icon=="function"&&(R=ke(ke({},R),{},{icon:R.icon(b.primaryColor,b.secondaryColor)})),mC(R.icon,"svg-".concat(R.name),ke(ke({className:o,onClick:u,style:p,"data-icon":R.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},y),{},{ref:S}))};Od.displayName="IconReact",Od.getTwoToneColors=GI,Od.setTwoToneColors=YI;function B_(t){var r=U_(t),i=Ge(r,2),o=i[0],u=i[1];return Od.setTwoToneColors({primaryColor:o,secondaryColor:u})}function XI(){var t=Od.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var QI=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];B_(dy.primary);var Vs=x.forwardRef(function(t,r){var i=t.className,o=t.icon,u=t.spin,p=t.rotate,f=t.tabIndex,g=t.onClick,y=t.twoToneColor,S=Rr(t,QI),b=x.useContext($E),R=b.prefixCls,_=R===void 0?"anticon":R,P=b.rootClassName,N=Zt(P,_,he(he({},"".concat(_,"-").concat(o.name),!!o.name),"".concat(_,"-spin"),!!u||o.name==="loading"),i),L=f;L===void 0&&g&&(L=-1);var D=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,H=U_(y),I=Ge(H,2),z=I[0],V=I[1];return x.createElement("span",wn({role:"img","aria-label":o.name},S,{ref:r,tabIndex:L,onClick:g,className:N}),x.createElement(Od,{icon:o,primaryColor:z,secondaryColor:V,style:D}))});Vs.displayName="AntdIcon",Vs.getTwoToneColor=XI,Vs.setTwoToneColor=B_;var JI=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
322
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
323
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
324
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
325
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
326
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
327
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
328
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
329
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
330
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
331
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
332
|
-
summary tabIndex target title type useMap value width wmode wrap`,ZI=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
333
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
334
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
335
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
336
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
337
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
338
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ez="".concat(JI," ").concat(ZI).split(/[\s\n]+/),tz="aria-",nz="data-";function V_(t,r){return t.indexOf(r)===0}function H_(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i;r===!1?i={aria:!0,data:!0,attr:!0}:r===!0?i={aria:!0}:i=ke({},r);var o={};return Object.keys(t).forEach(function(u){(i.aria&&(u==="role"||V_(u,tz))||i.data&&V_(u,nz)||i.attr&&ez.includes(u))&&(o[u]=t[u])}),o}function rz(t){return t&&_n.isValidElement(t)&&t.type===_n.Fragment}const iz=(t,r,i)=>_n.isValidElement(t)?_n.cloneElement(t,typeof i=="function"?i(t.props||{}):i):r;function Kc(t,r){return iz(t,t,r)}const W_=t=>{const[,,,,r]=Wc();return r?`${t}-css-var`:""};var wl={TAB:9,ENTER:13,ESC:27,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};const xy=_n.createContext(void 0);me.env.NODE_ENV!=="production"&&(xy.displayName="zIndexContext");const Yc=100,az=Yc*10,q_={Modal:Yc,Drawer:Yc,Popover:Yc,Popconfirm:Yc,Tooltip:Yc,Tour:Yc},oz={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function lz(t){return t in q_}function gC(t,r){const[,i]=Wc(),o=_n.useContext(xy),u=lz(t);let p;if(r!==void 0)p=[r,r];else{let f=o??0;u?f+=(o?0:i.zIndexPopupBase)+q_[t]:f+=oz[t],p=[o===void 0?r:f,f]}if(me.env.NODE_ENV!=="production"){const f=Sl(t),g=i.zIndexPopupBase+az,y=p[0]||0;me.env.NODE_ENV!=="production"&&f(r!==void 0||y<=g,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return p}function xl(){xl=function(){return r};var t,r={},i=Object.prototype,o=i.hasOwnProperty,u=typeof Symbol=="function"?Symbol:{},p=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",g=u.toStringTag||"@@toStringTag";function y(Y,J,oe,X){return Object.defineProperty(Y,J,{value:oe,enumerable:!X,configurable:!X,writable:!X})}try{y({},"")}catch{y=function(oe,X,ne){return oe[X]=ne}}function S(Y,J,oe,X){var ne=J&&J.prototype instanceof _?J:_,de=Object.create(ne.prototype);return y(de,"_invoke",function(we,ge,le){var Re=1;return function(pe,G){if(Re===3)throw Error("Generator is already running");if(Re===4){if(pe==="throw")throw G;return{value:t,done:!0}}for(le.method=pe,le.arg=G;;){var ue=le.delegate;if(ue){var De=B(ue,le);if(De){if(De===R)continue;return De}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(Re===1)throw Re=4,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);Re=3;var ye=b(we,ge,le);if(ye.type==="normal"){if(Re=le.done?4:2,ye.arg===R)continue;return{value:ye.arg,done:le.done}}ye.type==="throw"&&(Re=4,le.method="throw",le.arg=ye.arg)}}}(Y,oe,new Z(X||[])),!0),de}function b(Y,J,oe){try{return{type:"normal",arg:Y.call(J,oe)}}catch(X){return{type:"throw",arg:X}}}r.wrap=S;var R={};function _(){}function P(){}function N(){}var L={};y(L,p,function(){return this});var D=Object.getPrototypeOf,H=D&&D(D(ie([])));H&&H!==i&&o.call(H,p)&&(L=H);var I=N.prototype=_.prototype=Object.create(L);function z(Y){["next","throw","return"].forEach(function(J){y(Y,J,function(oe){return this._invoke(J,oe)})})}function V(Y,J){function oe(ne,de,we,ge){var le=b(Y[ne],Y,de);if(le.type!=="throw"){var Re=le.arg,pe=Re.value;return pe&&un(pe)=="object"&&o.call(pe,"__await")?J.resolve(pe.__await).then(function(G){oe("next",G,we,ge)},function(G){oe("throw",G,we,ge)}):J.resolve(pe).then(function(G){Re.value=G,we(Re)},function(G){return oe("throw",G,we,ge)})}ge(le.arg)}var X;y(this,"_invoke",function(ne,de){function we(){return new J(function(ge,le){oe(ne,de,ge,le)})}return X=X?X.then(we,we):we()},!0)}function B(Y,J){var oe=J.method,X=Y.i[oe];if(X===t)return J.delegate=null,oe==="throw"&&Y.i.return&&(J.method="return",J.arg=t,B(Y,J),J.method==="throw")||oe!=="return"&&(J.method="throw",J.arg=new TypeError("The iterator does not provide a '"+oe+"' method")),R;var ne=b(X,Y.i,J.arg);if(ne.type==="throw")return J.method="throw",J.arg=ne.arg,J.delegate=null,R;var de=ne.arg;return de?de.done?(J[Y.r]=de.value,J.next=Y.n,J.method!=="return"&&(J.method="next",J.arg=t),J.delegate=null,R):de:(J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,R)}function W(Y){this.tryEntries.push(Y)}function K(Y){var J=Y[4]||{};J.type="normal",J.arg=t,Y[4]=J}function Z(Y){this.tryEntries=[[-1]],Y.forEach(W,this),this.reset(!0)}function ie(Y){if(Y!=null){var J=Y[p];if(J)return J.call(Y);if(typeof Y.next=="function")return Y;if(!isNaN(Y.length)){var oe=-1,X=function ne(){for(;++oe<Y.length;)if(o.call(Y,oe))return ne.value=Y[oe],ne.done=!1,ne;return ne.value=t,ne.done=!0,ne};return X.next=X}}throw new TypeError(un(Y)+" is not iterable")}return P.prototype=N,y(I,"constructor",N),y(N,"constructor",P),P.displayName=y(N,g,"GeneratorFunction"),r.isGeneratorFunction=function(Y){var J=typeof Y=="function"&&Y.constructor;return!!J&&(J===P||(J.displayName||J.name)==="GeneratorFunction")},r.mark=function(Y){return Object.setPrototypeOf?Object.setPrototypeOf(Y,N):(Y.__proto__=N,y(Y,g,"GeneratorFunction")),Y.prototype=Object.create(I),Y},r.awrap=function(Y){return{__await:Y}},z(V.prototype),y(V.prototype,f,function(){return this}),r.AsyncIterator=V,r.async=function(Y,J,oe,X,ne){ne===void 0&&(ne=Promise);var de=new V(S(Y,J,oe,X),ne);return r.isGeneratorFunction(J)?de:de.next().then(function(we){return we.done?we.value:de.next()})},z(I),y(I,g,"Generator"),y(I,p,function(){return this}),y(I,"toString",function(){return"[object Generator]"}),r.keys=function(Y){var J=Object(Y),oe=[];for(var X in J)oe.unshift(X);return function ne(){for(;oe.length;)if((X=oe.pop())in J)return ne.value=X,ne.done=!1,ne;return ne.done=!0,ne}},r.values=ie,Z.prototype={constructor:Z,reset:function(J){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(K),!J)for(var oe in this)oe.charAt(0)==="t"&&o.call(this,oe)&&!isNaN(+oe.slice(1))&&(this[oe]=t)},stop:function(){this.done=!0;var J=this.tryEntries[0][4];if(J.type==="throw")throw J.arg;return this.rval},dispatchException:function(J){if(this.done)throw J;var oe=this;function X(pe){we.type="throw",we.arg=J,oe.next=pe}for(var ne=oe.tryEntries.length-1;ne>=0;--ne){var de=this.tryEntries[ne],we=de[4],ge=this.prev,le=de[1],Re=de[2];if(de[0]===-1)return X("end"),!1;if(!le&&!Re)throw Error("try statement without catch or finally");if(de[0]!=null&&de[0]<=ge){if(ge<le)return this.method="next",this.arg=t,X(le),!0;if(ge<Re)return X(Re),!1}}},abrupt:function(J,oe){for(var X=this.tryEntries.length-1;X>=0;--X){var ne=this.tryEntries[X];if(ne[0]>-1&&ne[0]<=this.prev&&this.prev<ne[2]){var de=ne;break}}de&&(J==="break"||J==="continue")&&de[0]<=oe&&oe<=de[2]&&(de=null);var we=de?de[4]:{};return we.type=J,we.arg=oe,de?(this.method="next",this.next=de[2],R):this.complete(we)},complete:function(J,oe){if(J.type==="throw")throw J.arg;return J.type==="break"||J.type==="continue"?this.next=J.arg:J.type==="return"?(this.rval=this.arg=J.arg,this.method="return",this.next="end"):J.type==="normal"&&oe&&(this.next=oe),R},finish:function(J){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var X=this.tryEntries[oe];if(X[2]===J)return this.complete(X[4],X[3]),K(X),R}},catch:function(J){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var X=this.tryEntries[oe];if(X[0]===J){var ne=X[4];if(ne.type==="throw"){var de=ne.arg;K(X)}return de}}throw Error("illegal catch attempt")},delegateYield:function(J,oe,X){return this.delegate={i:ie(J),r:oe,n:X},this.method==="next"&&(this.arg=t),R}},r}function K_(t,r,i,o,u,p,f){try{var g=t[p](f),y=g.value}catch(S){return void i(S)}g.done?r(y):Promise.resolve(y).then(o,u)}function sh(t){return function(){var r=this,i=arguments;return new Promise(function(o,u){var p=t.apply(r,i);function f(y){K_(p,o,u,f,g,"next",y)}function g(y){K_(p,o,u,f,g,"throw",y)}f(void 0)})}}const yC=()=>({height:0,opacity:0}),Y_=t=>{const{scrollHeight:r}=t;return{height:r,opacity:1}},uz=t=>({height:t?t.offsetHeight:0}),bC=(t,r)=>r?.deadline===!0||r.propertyName==="height",sz=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:hy}-motion-collapse`,onAppearStart:yC,onEnterStart:yC,onAppearActive:Y_,onEnterActive:Y_,onLeaveStart:uz,onLeaveActive:yC,onAppearEnd:bC,onEnterEnd:bC,onLeaveEnd:bC,motionDeadline:500}},cz=(t,r,i)=>i!==void 0?i:`${t}-${r}`,G_=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var r=t.getBBox(),i=r.width,o=r.height;if(i||o)return!0}if(t.getBoundingClientRect){var u=t.getBoundingClientRect(),p=u.width,f=u.height;if(p||f)return!0}}return!1},fz=x.createContext(null),dz=t=>{let{children:r}=t;return x.createElement(fz.Provider,{value:null},r)};var X_=x.createContext(null),Q_=[];function pz(t,r){var i=x.useState(function(){if(!io())return null;var N=document.createElement("div");return me.env.NODE_ENV!=="production"&&r&&N.setAttribute("data-debug",r),N}),o=Ge(i,1),u=o[0],p=x.useRef(!1),f=x.useContext(X_),g=x.useState(Q_),y=Ge(g,2),S=y[0],b=y[1],R=f||(p.current?void 0:function(N){b(function(L){var D=[N].concat(Lt(L));return D})});function _(){u.parentElement||document.body.appendChild(u),p.current=!0}function P(){var N;(N=u.parentElement)===null||N===void 0||N.removeChild(u),p.current=!1}return na(function(){return t?f?f(_):_():P(),P},[t]),na(function(){S.length&&(S.forEach(function(N){return N()}),b(Q_))},[S]),[u,R]}function vz(t){var r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),i=document.createElement("div");i.id=r;var o=i.style;o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll";var u,p;if(t){var f=getComputedStyle(t);o.scrollbarColor=f.scrollbarColor,o.scrollbarWidth=f.scrollbarWidth;var g=getComputedStyle(t,"::-webkit-scrollbar"),y=parseInt(g.width,10),S=parseInt(g.height,10);try{var b=y?"width: ".concat(g.width,";"):"",R=S?"height: ".concat(g.height,";"):"";ju(`
|
|
339
|
-
#`.concat(r,`::-webkit-scrollbar {
|
|
340
|
-
`).concat(b,`
|
|
341
|
-
`).concat(R,`
|
|
342
|
-
}`),r)}catch(N){console.error(N),u=y,p=S}}document.body.appendChild(i);var _=t&&u&&!isNaN(u)?u:i.offsetWidth-i.clientWidth,P=t&&p&&!isNaN(p)?p:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),qv(r),{width:_,height:P}}function hz(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:vz(t)}function mz(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var gz="rc-util-locker-".concat(Date.now()),J_=0;function yz(t){var r=!!t,i=x.useState(function(){return J_+=1,"".concat(gz,"_").concat(J_)}),o=Ge(i,1),u=o[0];na(function(){if(r){var p=hz(document.body).width,f=mz();ju(`
|
|
343
|
-
html body {
|
|
344
|
-
overflow-y: hidden;
|
|
345
|
-
`.concat(f?"width: calc(100% - ".concat(p,"px);"):"",`
|
|
346
|
-
}`),u)}else qv(u);return function(){qv(u)}},[r,u])}var bz=!1;function Sz(t){return bz}var Z_=function(r){return r===!1?!1:!io()||!r?null:typeof r=="string"?document.querySelector(r):typeof r=="function"?r():r},SC=x.forwardRef(function(t,r){var i=t.open,o=t.autoLock,u=t.getContainer,p=t.debug,f=t.autoDestroy,g=f===void 0?!0:f,y=t.children,S=x.useState(i),b=Ge(S,2),R=b[0],_=b[1],P=R||i;me.env.NODE_ENV!=="production"&&ur(io()||!i,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),x.useEffect(function(){(g||i)&&_(i)},[i,g]);var N=x.useState(function(){return Z_(u)}),L=Ge(N,2),D=L[0],H=L[1];x.useEffect(function(){var oe=Z_(u);H(oe??null)});var I=pz(P&&!D,p),z=Ge(I,2),V=z[0],B=z[1],W=D??V;yz(o&&i&&io()&&(W===V||W===document.body));var K=null;if(y&&Ic(y)&&r){var Z=y;K=Z.ref}var ie=Uv(K,r);if(!P||!io()||D===void 0)return null;var Y=W===!1||Sz(),J=y;return r&&(J=x.cloneElement(y,{ref:ie})),x.createElement(X_.Provider,{value:B},Y?J:jg.createPortal(J,W))});me.env.NODE_ENV!=="production"&&(SC.displayName="Portal");function Ez(){var t=ke({},Ig);return t.useId}var ek=0,tk=Ez();const Cz=tk?function(r){var i=tk();return r||(me.env.NODE_ENV==="test"?"test-id":i)}:function(r){var i=x.useState("ssr-id"),o=Ge(i,2),u=o[0],p=o[1];return x.useEffect(function(){var f=ek;ek+=1,p("rc_unique_".concat(f))},[]),r||(me.env.NODE_ENV==="test"?"test-id":u)};var Gc="RC_FORM_INTERNAL_HOOKS",Sr=function(){ur(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},_d=x.createContext({getFieldValue:Sr,getFieldsValue:Sr,getFieldError:Sr,getFieldWarning:Sr,getFieldsError:Sr,isFieldsTouched:Sr,isFieldTouched:Sr,isFieldValidating:Sr,isFieldsValidating:Sr,resetFields:Sr,setFields:Sr,setFieldValue:Sr,setFieldsValue:Sr,validateFields:Sr,submit:Sr,getInternalHooks:function(){return Sr(),{dispatch:Sr,initEntityValue:Sr,registerField:Sr,useSubscribe:Sr,setInitialValues:Sr,destroyForm:Sr,setCallbacks:Sr,registerWatch:Sr,getFields:Sr,setValidateMessages:Sr,setPreserve:Sr,getInitialValue:Sr}}}),Ry=x.createContext(null);function EC(t){return t==null?[]:Array.isArray(t)?t:[t]}function wz(t){return t&&!!t._init}function CC(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var wC=CC();function xz(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function Rz(t,r,i){if(mE())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,r);var u=new(t.bind.apply(t,o));return i&&Vv(u,i.prototype),u}function xC(t){var r=typeof Map=="function"?new Map:void 0;return xC=function(o){if(o===null||!xz(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(o))return r.get(o);r.set(o,u)}function u(){return Rz(o,arguments,Hv(this).constructor)}return u.prototype=Object.create(o.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Vv(u,o)},xC(t)}var Tz=/%[sdj%]/g,nk=function(){};typeof me<"u"&&me.env&&me.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(nk=function(r,i){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&i.every(function(o){return typeof o=="string"})&&console.warn(r,i)});function RC(t){if(!t||!t.length)return null;var r={};return t.forEach(function(i){var o=i.field;r[o]=r[o]||[],r[o].push(i)}),r}function ko(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var u=0,p=i.length;if(typeof t=="function")return t.apply(null,i);if(typeof t=="string"){var f=t.replace(Tz,function(g){if(g==="%%")return"%";if(u>=p)return g;switch(g){case"%s":return String(i[u++]);case"%d":return Number(i[u++]);case"%j":try{return JSON.stringify(i[u++])}catch{return"[Circular]"}break;default:return g}});return f}return t}function Oz(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Ni(t,r){return!!(t==null||r==="array"&&Array.isArray(t)&&!t.length||Oz(r)&&typeof t=="string"&&!t)}function _z(t,r,i){var o=[],u=0,p=t.length;function f(g){o.push.apply(o,Lt(g||[])),u++,u===p&&i(o)}t.forEach(function(g){r(g,f)})}function rk(t,r,i){var o=0,u=t.length;function p(f){if(f&&f.length){i(f);return}var g=o;o=o+1,g<u?r(t[g],p):i([])}p([])}function kz(t){var r=[];return Object.keys(t).forEach(function(i){r.push.apply(r,Lt(t[i]||[]))}),r}var ik=function(t){Ls(i,t);var r=Fs(i);function i(o,u){var p;return ea(this,i),p=r.call(this,"Async Validation Error"),he(xn(p),"errors",void 0),he(xn(p),"fields",void 0),p.errors=o,p.fields=u,p}return ta(i)}(xC(Error));function Nz(t,r,i,o,u){if(r.first){var p=new Promise(function(_,P){var N=function(H){return o(H),H.length?P(new ik(H,RC(H))):_(u)},L=kz(t);rk(L,i,N)});return p.catch(function(_){return _}),p}var f=r.firstFields===!0?Object.keys(t):r.firstFields||[],g=Object.keys(t),y=g.length,S=0,b=[],R=new Promise(function(_,P){var N=function(D){if(b.push.apply(b,D),S++,S===y)return o(b),b.length?P(new ik(b,RC(b))):_(u)};g.length||(o(b),_(u)),g.forEach(function(L){var D=t[L];f.indexOf(L)!==-1?rk(D,i,N):_z(D,i,N)})});return R.catch(function(_){return _}),R}function Dz(t){return!!(t&&t.message!==void 0)}function Mz(t,r){for(var i=t,o=0;o<r.length;o++){if(i==null)return i;i=i[r[o]]}return i}function ak(t,r){return function(i){var o;return t.fullFields?o=Mz(r,t.fullFields):o=r[i.field||t.fullField],Dz(i)?(i.field=i.field||t.fullField,i.fieldValue=o,i):{message:typeof i=="function"?i():i,fieldValue:o,field:i.field||t.fullField}}}function ok(t,r){if(r){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];un(o)==="object"&&un(t[i])==="object"?t[i]=ke(ke({},t[i]),o):t[i]=o}}return t}var kd="enum",Pz=function(r,i,o,u,p){r[kd]=Array.isArray(r[kd])?r[kd]:[],r[kd].indexOf(i)===-1&&u.push(ko(p.messages[kd],r.fullField,r[kd].join(", ")))},Az=function(r,i,o,u,p){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(i)||u.push(ko(p.messages.pattern.mismatch,r.fullField,i,r.pattern));else if(typeof r.pattern=="string"){var f=new RegExp(r.pattern);f.test(i)||u.push(ko(p.messages.pattern.mismatch,r.fullField,i,r.pattern))}}},$z=function(r,i,o,u,p){var f=typeof r.len=="number",g=typeof r.min=="number",y=typeof r.max=="number",S=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=i,R=null,_=typeof i=="number",P=typeof i=="string",N=Array.isArray(i);if(_?R="number":P?R="string":N&&(R="array"),!R)return!1;N&&(b=i.length),P&&(b=i.replace(S,"_").length),f?b!==r.len&&u.push(ko(p.messages[R].len,r.fullField,r.len)):g&&!y&&b<r.min?u.push(ko(p.messages[R].min,r.fullField,r.min)):y&&!g&&b>r.max?u.push(ko(p.messages[R].max,r.fullField,r.max)):g&&y&&(b<r.min||b>r.max)&&u.push(ko(p.messages[R].range,r.fullField,r.min,r.max))},lk=function(r,i,o,u,p,f){r.required&&(!o.hasOwnProperty(r.field)||Ni(i,f||r.type))&&u.push(ko(p.messages.required,r.fullField))},Ty;const Lz=function(){if(Ty)return Ty;var t="[a-fA-F\\d:]",r=function(W){return W&&W.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(t,")|(?<=").concat(t,")(?=\\s|$))"):""},i="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",u=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(i,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(i,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(i,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(i,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(i,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(i,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(i,"|(?::").concat(o,"){1,7}|:))")],p="(?:%[0-9a-zA-Z]{1,})?",f="(?:".concat(u.join("|"),")").concat(p),g=new RegExp("(?:^".concat(i,"$)|(?:^").concat(f,"$)")),y=new RegExp("^".concat(i,"$")),S=new RegExp("^".concat(f,"$")),b=function(W){return W&&W.exact?g:new RegExp("(?:".concat(r(W)).concat(i).concat(r(W),")|(?:").concat(r(W)).concat(f).concat(r(W),")"),"g")};b.v4=function(B){return B&&B.exact?y:new RegExp("".concat(r(B)).concat(i).concat(r(B)),"g")},b.v6=function(B){return B&&B.exact?S:new RegExp("".concat(r(B)).concat(f).concat(r(B)),"g")};var R="(?:(?:[a-z]+:)?//)",_="(?:\\S+(?::\\S*)?@)?",P=b.v4().source,N=b.v6().source,L="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",D="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",H="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",I="(?::\\d{2,5})?",z='(?:[/?#][^\\s"]*)?',V="(?:".concat(R,"|www\\.)").concat(_,"(?:localhost|").concat(P,"|").concat(N,"|").concat(L).concat(D).concat(H,")").concat(I).concat(z);return Ty=new RegExp("(?:^".concat(V,"$)"),"i"),Ty};var uk={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ch={integer:function(r){return ch.number(r)&&parseInt(r,10)===r},float:function(r){return ch.number(r)&&!ch.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return un(r)==="object"&&!ch.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(uk.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(Lz())},hex:function(r){return typeof r=="string"&&!!r.match(uk.hex)}},Fz=function(r,i,o,u,p){if(r.required&&i===void 0){lk(r,i,o,u,p);return}var f=["integer","float","array","regexp","object","method","email","number","date","url","hex"],g=r.type;f.indexOf(g)>-1?ch[g](i)||u.push(ko(p.messages.types[g],r.fullField,r.type)):g&&un(i)!==r.type&&u.push(ko(p.messages.types[g],r.fullField,r.type))},Iz=function(r,i,o,u,p){(/^\s+$/.test(i)||i==="")&&u.push(ko(p.messages.whitespace,r.fullField))};const zn={required:lk,whitespace:Iz,type:Fz,range:$z,enum:Pz,pattern:Az};var zz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i)&&!r.required)return o();zn.required(r,i,u,f,p)}o(f)},jz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(i==null&&!r.required)return o();zn.required(r,i,u,f,p,"array"),i!=null&&(zn.type(r,i,u,f,p),zn.range(r,i,u,f,p))}o(f)},Uz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i)&&!r.required)return o();zn.required(r,i,u,f,p),i!==void 0&&zn.type(r,i,u,f,p)}o(f)},Bz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i,"date")&&!r.required)return o();if(zn.required(r,i,u,f,p),!Ni(i,"date")){var y;i instanceof Date?y=i:y=new Date(i),zn.type(r,y,u,f,p),y&&zn.range(r,y.getTime(),u,f,p)}}o(f)},Vz="enum",Hz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i)&&!r.required)return o();zn.required(r,i,u,f,p),i!==void 0&&zn[Vz](r,i,u,f,p)}o(f)},Wz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i)&&!r.required)return o();zn.required(r,i,u,f,p),i!==void 0&&(zn.type(r,i,u,f,p),zn.range(r,i,u,f,p))}o(f)},qz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i)&&!r.required)return o();zn.required(r,i,u,f,p),i!==void 0&&(zn.type(r,i,u,f,p),zn.range(r,i,u,f,p))}o(f)},Kz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i)&&!r.required)return o();zn.required(r,i,u,f,p),i!==void 0&&zn.type(r,i,u,f,p)}o(f)},Yz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(i===""&&(i=void 0),Ni(i)&&!r.required)return o();zn.required(r,i,u,f,p),i!==void 0&&(zn.type(r,i,u,f,p),zn.range(r,i,u,f,p))}o(f)},Gz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i)&&!r.required)return o();zn.required(r,i,u,f,p),i!==void 0&&zn.type(r,i,u,f,p)}o(f)},Xz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i,"string")&&!r.required)return o();zn.required(r,i,u,f,p),Ni(i,"string")||zn.pattern(r,i,u,f,p)}o(f)},Qz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i)&&!r.required)return o();zn.required(r,i,u,f,p),Ni(i)||zn.type(r,i,u,f,p)}o(f)},Jz=function(r,i,o,u,p){var f=[],g=Array.isArray(i)?"array":un(i);zn.required(r,i,u,f,p,g),o(f)},Zz=function(r,i,o,u,p){var f=[],g=r.required||!r.required&&u.hasOwnProperty(r.field);if(g){if(Ni(i,"string")&&!r.required)return o();zn.required(r,i,u,f,p,"string"),Ni(i,"string")||(zn.type(r,i,u,f,p),zn.range(r,i,u,f,p),zn.pattern(r,i,u,f,p),r.whitespace===!0&&zn.whitespace(r,i,u,f,p))}o(f)},TC=function(r,i,o,u,p){var f=r.type,g=[],y=r.required||!r.required&&u.hasOwnProperty(r.field);if(y){if(Ni(i,f)&&!r.required)return o();zn.required(r,i,u,g,p,f),Ni(i,f)||zn.type(r,i,u,g,p)}o(g)};const fh={string:Zz,method:Kz,number:Yz,boolean:Uz,regexp:Qz,integer:qz,float:Wz,array:jz,object:Gz,enum:Hz,pattern:Xz,date:Bz,url:TC,hex:TC,email:TC,required:Jz,any:zz};var dh=function(){function t(r){ea(this,t),he(this,"rules",null),he(this,"_messages",wC),this.define(r)}return ta(t,[{key:"define",value:function(i){var o=this;if(!i)throw new Error("Cannot configure a schema with no rules");if(un(i)!=="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(function(u){var p=i[u];o.rules[u]=Array.isArray(p)?p:[p]})}},{key:"messages",value:function(i){return i&&(this._messages=ok(CC(),i)),this._messages}},{key:"validate",value:function(i){var o=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},f=i,g=u,y=p;if(typeof g=="function"&&(y=g,g={}),!this.rules||Object.keys(this.rules).length===0)return y&&y(null,f),Promise.resolve(f);function S(N){var L=[],D={};function H(z){if(Array.isArray(z)){var V;L=(V=L).concat.apply(V,Lt(z))}else L.push(z)}for(var I=0;I<N.length;I++)H(N[I]);L.length?(D=RC(L),y(L,D)):y(null,f)}if(g.messages){var b=this.messages();b===wC&&(b=CC()),ok(b,g.messages),g.messages=b}else g.messages=this.messages();var R={},_=g.keys||Object.keys(this.rules);_.forEach(function(N){var L=o.rules[N],D=f[N];L.forEach(function(H){var I=H;typeof I.transform=="function"&&(f===i&&(f=ke({},f)),D=f[N]=I.transform(D),D!=null&&(I.type=I.type||(Array.isArray(D)?"array":un(D)))),typeof I=="function"?I={validator:I}:I=ke({},I),I.validator=o.getValidationMethod(I),I.validator&&(I.field=N,I.fullField=I.fullField||N,I.type=o.getType(I),R[N]=R[N]||[],R[N].push({rule:I,value:D,source:f,field:N}))})});var P={};return Nz(R,g,function(N,L){var D=N.rule,H=(D.type==="object"||D.type==="array")&&(un(D.fields)==="object"||un(D.defaultField)==="object");H=H&&(D.required||!D.required&&N.value),D.field=N.field;function I(K,Z){return ke(ke({},Z),{},{fullField:"".concat(D.fullField,".").concat(K),fullFields:D.fullFields?[].concat(Lt(D.fullFields),[K]):[K]})}function z(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Z=Array.isArray(K)?K:[K];!g.suppressWarning&&Z.length&&t.warning("async-validator:",Z),Z.length&&D.message!==void 0&&(Z=[].concat(D.message));var ie=Z.map(ak(D,f));if(g.first&&ie.length)return P[D.field]=1,L(ie);if(!H)L(ie);else{if(D.required&&!N.value)return D.message!==void 0?ie=[].concat(D.message).map(ak(D,f)):g.error&&(ie=[g.error(D,ko(g.messages.required,D.field))]),L(ie);var Y={};D.defaultField&&Object.keys(N.value).map(function(X){Y[X]=D.defaultField}),Y=ke(ke({},Y),N.rule.fields);var J={};Object.keys(Y).forEach(function(X){var ne=Y[X],de=Array.isArray(ne)?ne:[ne];J[X]=de.map(I.bind(null,X))});var oe=new t(J);oe.messages(g.messages),N.rule.options&&(N.rule.options.messages=g.messages,N.rule.options.error=g.error),oe.validate(N.value,N.rule.options||g,function(X){var ne=[];ie&&ie.length&&ne.push.apply(ne,Lt(ie)),X&&X.length&&ne.push.apply(ne,Lt(X)),L(ne.length?ne:null)})}}var V;if(D.asyncValidator)V=D.asyncValidator(D,N.value,z,N.source,g);else if(D.validator){try{V=D.validator(D,N.value,z,N.source,g)}catch(K){var B,W;(B=(W=console).error)===null||B===void 0||B.call(W,K),g.suppressValidatorError||setTimeout(function(){throw K},0),z(K.message)}V===!0?z():V===!1?z(typeof D.message=="function"?D.message(D.fullField||D.field):D.message||"".concat(D.fullField||D.field," fails")):V instanceof Array?z(V):V instanceof Error&&z(V.message)}V&&V.then&&V.then(function(){return z()},function(K){return z(K)})},function(N){S(N)},f)}},{key:"getType",value:function(i){if(i.type===void 0&&i.pattern instanceof RegExp&&(i.type="pattern"),typeof i.validator!="function"&&i.type&&!fh.hasOwnProperty(i.type))throw new Error(ko("Unknown rule type %s",i.type));return i.type||"string"}},{key:"getValidationMethod",value:function(i){if(typeof i.validator=="function")return i.validator;var o=Object.keys(i),u=o.indexOf("message");return u!==-1&&o.splice(u,1),o.length===1&&o[0]==="required"?fh.required:fh[this.getType(i)]||void 0}}]),t}();he(dh,"register",function(r,i){if(typeof i!="function")throw new Error("Cannot register a validator by type, validator is not a function");fh[r]=i}),he(dh,"warning",nk),he(dh,"messages",wC),he(dh,"validators",fh);var No="'${name}' is not a valid ${type}",sk={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:No,method:No,array:No,object:No,number:No,date:No,boolean:No,integer:No,float:No,regexp:No,email:No,url:No,hex:No},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},ck=dh;function ej(t,r){return t.replace(/\$\{\w+\}/g,function(i){var o=i.slice(2,-1);return r[o]})}var fk="CODE_LOGIC_ERROR";function OC(t,r,i,o,u){return _C.apply(this,arguments)}function _C(){return _C=sh(xl().mark(function t(r,i,o,u,p){var f,g,y,S,b,R,_,P,N;return xl().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return f=ke({},o),delete f.ruleIndex,ck.warning=function(){},f.validator&&(g=f.validator,f.validator=function(){try{return g.apply(void 0,arguments)}catch(H){return console.error(H),Promise.reject(fk)}}),y=null,f&&f.type==="array"&&f.defaultField&&(y=f.defaultField,delete f.defaultField),S=new ck(he({},r,[f])),b=wd(sk,u.validateMessages),S.messages(b),R=[],D.prev=10,D.next=13,Promise.resolve(S.validate(he({},r,i),ke({},u)));case 13:D.next=18;break;case 15:D.prev=15,D.t0=D.catch(10),D.t0.errors&&(R=D.t0.errors.map(function(H,I){var z=H.message,V=z===fk?b.default:z;return x.isValidElement(V)?x.cloneElement(V,{key:"error_".concat(I)}):V}));case 18:if(!(!R.length&&y)){D.next=23;break}return D.next=21,Promise.all(i.map(function(H,I){return OC("".concat(r,".").concat(I),H,y,u,p)}));case 21:return _=D.sent,D.abrupt("return",_.reduce(function(H,I){return[].concat(Lt(H),Lt(I))},[]));case 23:return P=ke(ke({},o),{},{name:r,enum:(o.enum||[]).join(", ")},p),N=R.map(function(H){return typeof H=="string"?ej(H,P):H}),D.abrupt("return",N);case 26:case"end":return D.stop()}},t,null,[[10,15]])})),_C.apply(this,arguments)}function tj(t,r,i,o,u,p){var f=t.join("."),g=i.map(function(b,R){var _=b.validator,P=ke(ke({},b),{},{ruleIndex:R});return _&&(P.validator=function(N,L,D){var H=!1,I=function(){for(var B=arguments.length,W=new Array(B),K=0;K<B;K++)W[K]=arguments[K];Promise.resolve().then(function(){ur(!H,"Your validator function has already return a promise. `callback` will be ignored."),H||D.apply(void 0,W)})},z=_(N,L,I);H=z&&typeof z.then=="function"&&typeof z.catch=="function",ur(H,"`callback` is deprecated. Please return a promise instead."),H&&z.then(function(){D()}).catch(function(V){D(V||" ")})}),P}).sort(function(b,R){var _=b.warningOnly,P=b.ruleIndex,N=R.warningOnly,L=R.ruleIndex;return!!_==!!N?P-L:_?1:-1}),y;if(u===!0)y=new Promise(function(){var b=sh(xl().mark(function R(_,P){var N,L,D;return xl().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:N=0;case 1:if(!(N<g.length)){I.next=12;break}return L=g[N],I.next=5,OC(f,r,L,o,p);case 5:if(D=I.sent,!D.length){I.next=9;break}return P([{errors:D,rule:L}]),I.abrupt("return");case 9:N+=1,I.next=1;break;case 12:_([]);case 13:case"end":return I.stop()}},R)}));return function(R,_){return b.apply(this,arguments)}}());else{var S=g.map(function(b){return OC(f,r,b,o,p).then(function(R){return{errors:R,rule:b}})});y=(u?rj(S):nj(S)).then(function(b){return Promise.reject(b)})}return y.catch(function(b){return b}),y}function nj(t){return kC.apply(this,arguments)}function kC(){return kC=sh(xl().mark(function t(r){return xl().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.all(r).then(function(u){var p,f=(p=[]).concat.apply(p,Lt(u));return f}));case 1:case"end":return o.stop()}},t)})),kC.apply(this,arguments)}function rj(t){return NC.apply(this,arguments)}function NC(){return NC=sh(xl().mark(function t(r){var i;return xl().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return i=0,u.abrupt("return",new Promise(function(p){r.forEach(function(f){f.then(function(g){g.errors.length&&p([g]),i+=1,i===r.length&&p([])})})}));case 2:case"end":return u.stop()}},t)})),NC.apply(this,arguments)}function si(t){return EC(t)}function dk(t,r){var i={};return r.forEach(function(o){var u=Zl(t,o);i=bl(i,o,u)}),i}function Nd(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return t&&t.some(function(o){return pk(r,o,i)})}function pk(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t||!r||!i&&t.length!==r.length?!1:r.every(function(o,u){return t[u]===o})}function ij(t,r){if(t===r)return!0;if(!t&&r||t&&!r||!t||!r||un(t)!=="object"||un(r)!=="object")return!1;var i=Object.keys(t),o=Object.keys(r),u=new Set([].concat(i,o));return Lt(u).every(function(p){var f=t[p],g=r[p];return typeof f=="function"&&typeof g=="function"?!0:f===g})}function aj(t){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&un(r.target)==="object"&&t in r.target?r.target[t]:r}function vk(t,r,i){var o=t.length;if(r<0||r>=o||i<0||i>=o)return t;var u=t[r],p=r-i;return p>0?[].concat(Lt(t.slice(0,i)),[u],Lt(t.slice(i,r)),Lt(t.slice(r+1,o))):p<0?[].concat(Lt(t.slice(0,r)),Lt(t.slice(r+1,i+1)),[u],Lt(t.slice(i+1,o))):t}var oj=["name"],Vo=[];function hk(t,r,i,o,u,p){return typeof t=="function"?t(r,i,"source"in p?{source:p.source}:{}):o!==u}var DC=function(t){Ls(i,t);var r=Fs(i);function i(o){var u;if(ea(this,i),u=r.call(this,o),he(xn(u),"state",{resetCount:0}),he(xn(u),"cancelRegisterFunc",null),he(xn(u),"mounted",!1),he(xn(u),"touched",!1),he(xn(u),"dirty",!1),he(xn(u),"validatePromise",void 0),he(xn(u),"prevValidating",void 0),he(xn(u),"errors",Vo),he(xn(u),"warnings",Vo),he(xn(u),"cancelRegister",function(){var y=u.props,S=y.preserve,b=y.isListField,R=y.name;u.cancelRegisterFunc&&u.cancelRegisterFunc(b,S,si(R)),u.cancelRegisterFunc=null}),he(xn(u),"getNamePath",function(){var y=u.props,S=y.name,b=y.fieldContext,R=b.prefixName,_=R===void 0?[]:R;return S!==void 0?[].concat(Lt(_),Lt(S)):[]}),he(xn(u),"getRules",function(){var y=u.props,S=y.rules,b=S===void 0?[]:S,R=y.fieldContext;return b.map(function(_){return typeof _=="function"?_(R):_})}),he(xn(u),"refresh",function(){u.mounted&&u.setState(function(y){var S=y.resetCount;return{resetCount:S+1}})}),he(xn(u),"metaCache",null),he(xn(u),"triggerMetaEvent",function(y){var S=u.props.onMetaChange;if(S){var b=ke(ke({},u.getMeta()),{},{destroy:y});Kv(u.metaCache,b)||S(b),u.metaCache=b}else u.metaCache=null}),he(xn(u),"onStoreChange",function(y,S,b){var R=u.props,_=R.shouldUpdate,P=R.dependencies,N=P===void 0?[]:P,L=R.onReset,D=b.store,H=u.getNamePath(),I=u.getValue(y),z=u.getValue(D),V=S&&Nd(S,H);switch(b.type==="valueUpdate"&&b.source==="external"&&!Kv(I,z)&&(u.touched=!0,u.dirty=!0,u.validatePromise=null,u.errors=Vo,u.warnings=Vo,u.triggerMetaEvent()),b.type){case"reset":if(!S||V){u.touched=!1,u.dirty=!1,u.validatePromise=void 0,u.errors=Vo,u.warnings=Vo,u.triggerMetaEvent(),L?.(),u.refresh();return}break;case"remove":{if(_){u.reRender();return}break}case"setField":{var B=b.data;if(V){"touched"in B&&(u.touched=B.touched),"validating"in B&&!("originRCField"in B)&&(u.validatePromise=B.validating?Promise.resolve([]):null),"errors"in B&&(u.errors=B.errors||Vo),"warnings"in B&&(u.warnings=B.warnings||Vo),u.dirty=!0,u.triggerMetaEvent(),u.reRender();return}else if("value"in B&&Nd(S,H,!0)){u.reRender();return}if(_&&!H.length&&hk(_,y,D,I,z,b)){u.reRender();return}break}case"dependenciesUpdate":{var W=N.map(si);if(W.some(function(K){return Nd(b.relatedFields,K)})){u.reRender();return}break}default:if(V||(!N.length||H.length||_)&&hk(_,y,D,I,z,b)){u.reRender();return}break}_===!0&&u.reRender()}),he(xn(u),"validateRules",function(y){var S=u.getNamePath(),b=u.getValue(),R=y||{},_=R.triggerName,P=R.validateOnly,N=P===void 0?!1:P,L=Promise.resolve().then(sh(xl().mark(function D(){var H,I,z,V,B,W,K;return xl().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(u.mounted){ie.next=2;break}return ie.abrupt("return",[]);case 2:if(H=u.props,I=H.validateFirst,z=I===void 0?!1:I,V=H.messageVariables,B=H.validateDebounce,W=u.getRules(),_&&(W=W.filter(function(Y){return Y}).filter(function(Y){var J=Y.validateTrigger;if(!J)return!0;var oe=EC(J);return oe.includes(_)})),!(B&&_)){ie.next=10;break}return ie.next=8,new Promise(function(Y){setTimeout(Y,B)});case 8:if(u.validatePromise===L){ie.next=10;break}return ie.abrupt("return",[]);case 10:return K=tj(S,b,W,y,z,V),K.catch(function(Y){return Y}).then(function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vo;if(u.validatePromise===L){var J;u.validatePromise=null;var oe=[],X=[];(J=Y.forEach)===null||J===void 0||J.call(Y,function(ne){var de=ne.rule.warningOnly,we=ne.errors,ge=we===void 0?Vo:we;de?X.push.apply(X,Lt(ge)):oe.push.apply(oe,Lt(ge))}),u.errors=oe,u.warnings=X,u.triggerMetaEvent(),u.reRender()}}),ie.abrupt("return",K);case 13:case"end":return ie.stop()}},D)})));return N||(u.validatePromise=L,u.dirty=!0,u.errors=Vo,u.warnings=Vo,u.triggerMetaEvent(),u.reRender()),L}),he(xn(u),"isFieldValidating",function(){return!!u.validatePromise}),he(xn(u),"isFieldTouched",function(){return u.touched}),he(xn(u),"isFieldDirty",function(){if(u.dirty||u.props.initialValue!==void 0)return!0;var y=u.props.fieldContext,S=y.getInternalHooks(Gc),b=S.getInitialValue;return b(u.getNamePath())!==void 0}),he(xn(u),"getErrors",function(){return u.errors}),he(xn(u),"getWarnings",function(){return u.warnings}),he(xn(u),"isListField",function(){return u.props.isListField}),he(xn(u),"isList",function(){return u.props.isList}),he(xn(u),"isPreserve",function(){return u.props.preserve}),he(xn(u),"getMeta",function(){u.prevValidating=u.isFieldValidating();var y={touched:u.isFieldTouched(),validating:u.prevValidating,errors:u.errors,warnings:u.warnings,name:u.getNamePath(),validated:u.validatePromise===null};return y}),he(xn(u),"getOnlyChild",function(y){if(typeof y=="function"){var S=u.getMeta();return ke(ke({},u.getOnlyChild(y(u.getControlled(),S,u.props.fieldContext))),{},{isFunction:!0})}var b=Iu(y);return b.length!==1||!x.isValidElement(b[0])?{child:b,isFunction:!1}:{child:b[0],isFunction:!1}}),he(xn(u),"getValue",function(y){var S=u.props.fieldContext.getFieldsValue,b=u.getNamePath();return Zl(y||S(!0),b)}),he(xn(u),"getControlled",function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=u.props,b=S.name,R=S.trigger,_=S.validateTrigger,P=S.getValueFromEvent,N=S.normalize,L=S.valuePropName,D=S.getValueProps,H=S.fieldContext,I=_!==void 0?_:H.validateTrigger,z=u.getNamePath(),V=H.getInternalHooks,B=H.getFieldsValue,W=V(Gc),K=W.dispatch,Z=u.getValue(),ie=D||function(ne){return he({},L,ne)},Y=y[R],J=b!==void 0?ie(Z):{};me.env.NODE_ENV!=="production"&&J&&Object.keys(J).forEach(function(ne){ur(typeof J[ne]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(ne,")"))});var oe=ke(ke({},y),J);oe[R]=function(){u.touched=!0,u.dirty=!0,u.triggerMetaEvent();for(var ne,de=arguments.length,we=new Array(de),ge=0;ge<de;ge++)we[ge]=arguments[ge];P?ne=P.apply(void 0,we):ne=aj.apply(void 0,[L].concat(we)),N&&(ne=N(ne,Z,B(!0))),K({type:"updateValue",namePath:z,value:ne}),Y&&Y.apply(void 0,we)};var X=EC(I||[]);return X.forEach(function(ne){var de=oe[ne];oe[ne]=function(){de&&de.apply(void 0,arguments);var we=u.props.rules;we&&we.length&&K({type:"validateField",namePath:z,triggerName:ne})}}),oe}),o.fieldContext){var p=o.fieldContext.getInternalHooks,f=p(Gc),g=f.initEntityValue;g(xn(u))}return u}return ta(i,[{key:"componentDidMount",value:function(){var u=this.props,p=u.shouldUpdate,f=u.fieldContext;if(this.mounted=!0,f){var g=f.getInternalHooks,y=g(Gc),S=y.registerField;this.cancelRegisterFunc=S(this)}p===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var u=this.state.resetCount,p=this.props.children,f=this.getOnlyChild(p),g=f.child,y=f.isFunction,S;return y?S=g:x.isValidElement(g)?S=x.cloneElement(g,this.getControlled(g.props)):(ur(!g,"`children` of Field is not validate ReactElement."),S=g),x.createElement(x.Fragment,{key:u},S)}}]),i}(x.Component);he(DC,"contextType",_d),he(DC,"defaultProps",{trigger:"onChange",valuePropName:"value"});function mk(t){var r=t.name,i=Rr(t,oj),o=x.useContext(_d),u=x.useContext(Ry),p=r!==void 0?si(r):void 0,f="keep";return i.isListField||(f="_".concat((p||[]).join("_"))),me.env.NODE_ENV!=="production"&&i.preserve===!1&&i.isListField&&p.length<=1&&ur(!1,"`preserve` should not apply on Form.List fields."),x.createElement(DC,wn({key:f,name:p,isListField:!!u},i,{fieldContext:o}))}function lj(t){var r=t.name,i=t.initialValue,o=t.children,u=t.rules,p=t.validateTrigger,f=t.isListField,g=x.useContext(_d),y=x.useContext(Ry),S=x.useRef({keys:[],id:0}),b=S.current,R=x.useMemo(function(){var L=si(g.prefixName)||[];return[].concat(Lt(L),Lt(si(r)))},[g.prefixName,r]),_=x.useMemo(function(){return ke(ke({},g),{},{prefixName:R})},[g,R]),P=x.useMemo(function(){return{getKey:function(D){var H=R.length,I=D[H];return[b.keys[I],D.slice(H+1)]}}},[R]);if(typeof o!="function")return ur(!1,"Form.List only accepts function as children."),null;var N=function(D,H,I){var z=I.source;return z==="internal"?!1:D!==H};return x.createElement(Ry.Provider,{value:P},x.createElement(_d.Provider,{value:_},x.createElement(mk,{name:[],shouldUpdate:N,rules:u,validateTrigger:p,initialValue:i,isList:!0,isListField:f??!!y},function(L,D){var H=L.value,I=H===void 0?[]:H,z=L.onChange,V=g.getFieldValue,B=function(){var ie=V(R||[]);return ie||[]},W={add:function(ie,Y){var J=B();Y>=0&&Y<=J.length?(b.keys=[].concat(Lt(b.keys.slice(0,Y)),[b.id],Lt(b.keys.slice(Y))),z([].concat(Lt(J.slice(0,Y)),[ie],Lt(J.slice(Y))))):(me.env.NODE_ENV!=="production"&&(Y<0||Y>J.length)&&ur(!1,"The second parameter of the add function should be a valid positive number."),b.keys=[].concat(Lt(b.keys),[b.id]),z([].concat(Lt(J),[ie]))),b.id+=1},remove:function(ie){var Y=B(),J=new Set(Array.isArray(ie)?ie:[ie]);J.size<=0||(b.keys=b.keys.filter(function(oe,X){return!J.has(X)}),z(Y.filter(function(oe,X){return!J.has(X)})))},move:function(ie,Y){if(ie!==Y){var J=B();ie<0||ie>=J.length||Y<0||Y>=J.length||(b.keys=vk(b.keys,ie,Y),z(vk(J,ie,Y)))}}},K=I||[];return Array.isArray(K)||(K=[],me.env.NODE_ENV!=="production"&&ur(!1,"Current value of '".concat(R.join(" > "),"' is not an array type."))),o(K.map(function(Z,ie){var Y=b.keys[ie];return Y===void 0&&(b.keys[ie]=b.id,Y=b.keys[ie],b.id+=1),{name:ie,key:Y,isListField:!0}}),W,D)})))}function uj(t){var r=!1,i=t.length,o=[];return t.length?new Promise(function(u,p){t.forEach(function(f,g){f.catch(function(y){return r=!0,y}).then(function(y){i-=1,o[g]=y,!(i>0)&&(r&&p(o),u(o))})})}):Promise.resolve([])}var gk="__@field_split__";function MC(t){return t.map(function(r){return"".concat(un(r),":").concat(r)}).join(gk)}var Dd=function(){function t(){ea(this,t),he(this,"kvs",new Map)}return ta(t,[{key:"set",value:function(i,o){this.kvs.set(MC(i),o)}},{key:"get",value:function(i){return this.kvs.get(MC(i))}},{key:"update",value:function(i,o){var u=this.get(i),p=o(u);p?this.set(i,p):this.delete(i)}},{key:"delete",value:function(i){this.kvs.delete(MC(i))}},{key:"map",value:function(i){return Lt(this.kvs.entries()).map(function(o){var u=Ge(o,2),p=u[0],f=u[1],g=p.split(gk);return i({key:g.map(function(y){var S=y.match(/^([^:]*):(.*)$/),b=Ge(S,3),R=b[1],_=b[2];return R==="number"?Number(_):_}),value:f})})}},{key:"toJSON",value:function(){var i={};return this.map(function(o){var u=o.key,p=o.value;return i[u.join(".")]=p,null}),i}}]),t}(),sj=["name"],cj=ta(function t(r){var i=this;ea(this,t),he(this,"formHooked",!1),he(this,"forceRootUpdate",void 0),he(this,"subscribable",!0),he(this,"store",{}),he(this,"fieldEntities",[]),he(this,"initialValues",{}),he(this,"callbacks",{}),he(this,"validateMessages",null),he(this,"preserve",null),he(this,"lastValidatePromise",null),he(this,"getForm",function(){return{getFieldValue:i.getFieldValue,getFieldsValue:i.getFieldsValue,getFieldError:i.getFieldError,getFieldWarning:i.getFieldWarning,getFieldsError:i.getFieldsError,isFieldsTouched:i.isFieldsTouched,isFieldTouched:i.isFieldTouched,isFieldValidating:i.isFieldValidating,isFieldsValidating:i.isFieldsValidating,resetFields:i.resetFields,setFields:i.setFields,setFieldValue:i.setFieldValue,setFieldsValue:i.setFieldsValue,validateFields:i.validateFields,submit:i.submit,_init:!0,getInternalHooks:i.getInternalHooks}}),he(this,"getInternalHooks",function(o){return o===Gc?(i.formHooked=!0,{dispatch:i.dispatch,initEntityValue:i.initEntityValue,registerField:i.registerField,useSubscribe:i.useSubscribe,setInitialValues:i.setInitialValues,destroyForm:i.destroyForm,setCallbacks:i.setCallbacks,setValidateMessages:i.setValidateMessages,getFields:i.getFields,setPreserve:i.setPreserve,getInitialValue:i.getInitialValue,registerWatch:i.registerWatch}):(ur(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),he(this,"useSubscribe",function(o){i.subscribable=o}),he(this,"prevWithoutPreserves",null),he(this,"setInitialValues",function(o,u){if(i.initialValues=o||{},u){var p,f=wd(o,i.store);(p=i.prevWithoutPreserves)===null||p===void 0||p.map(function(g){var y=g.key;f=bl(f,y,Zl(o,y))}),i.prevWithoutPreserves=null,i.updateStore(f)}}),he(this,"destroyForm",function(o){if(o)i.updateStore({});else{var u=new Dd;i.getFieldEntities(!0).forEach(function(p){i.isMergedPreserve(p.isPreserve())||u.set(p.getNamePath(),!0)}),i.prevWithoutPreserves=u}}),he(this,"getInitialValue",function(o){var u=Zl(i.initialValues,o);return o.length?wd(u):u}),he(this,"setCallbacks",function(o){i.callbacks=o}),he(this,"setValidateMessages",function(o){i.validateMessages=o}),he(this,"setPreserve",function(o){i.preserve=o}),he(this,"watchList",[]),he(this,"registerWatch",function(o){return i.watchList.push(o),function(){i.watchList=i.watchList.filter(function(u){return u!==o})}}),he(this,"notifyWatch",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.watchList.length){var u=i.getFieldsValue(),p=i.getFieldsValue(!0);i.watchList.forEach(function(f){f(u,p,o)})}}),he(this,"timeoutId",null),he(this,"warningUnhooked",function(){me.env.NODE_ENV!=="production"&&!i.timeoutId&&typeof window<"u"&&(i.timeoutId=setTimeout(function(){i.timeoutId=null,i.formHooked||ur(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),he(this,"updateStore",function(o){i.store=o}),he(this,"getFieldEntities",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return o?i.fieldEntities.filter(function(u){return u.getNamePath().length}):i.fieldEntities}),he(this,"getFieldsMap",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,u=new Dd;return i.getFieldEntities(o).forEach(function(p){var f=p.getNamePath();u.set(f,p)}),u}),he(this,"getFieldEntitiesForNamePathList",function(o){if(!o)return i.getFieldEntities(!0);var u=i.getFieldsMap(!0);return o.map(function(p){var f=si(p);return u.get(f)||{INVALIDATE_NAME_PATH:si(p)}})}),he(this,"getFieldsValue",function(o,u){i.warningUnhooked();var p,f,g;if(o===!0||Array.isArray(o)?(p=o,f=u):o&&un(o)==="object"&&(g=o.strict,f=o.filter),p===!0&&!f)return i.store;var y=i.getFieldEntitiesForNamePathList(Array.isArray(p)?p:null),S=[];return y.forEach(function(b){var R,_,P="INVALIDATE_NAME_PATH"in b?b.INVALIDATE_NAME_PATH:b.getNamePath();if(g){var N,L;if((N=(L=b).isList)!==null&&N!==void 0&&N.call(L))return}else if(!p&&(R=(_=b).isListField)!==null&&R!==void 0&&R.call(_))return;if(!f)S.push(P);else{var D="getMeta"in b?b.getMeta():null;f(D)&&S.push(P)}}),dk(i.store,S.map(si))}),he(this,"getFieldValue",function(o){i.warningUnhooked();var u=si(o);return Zl(i.store,u)}),he(this,"getFieldsError",function(o){i.warningUnhooked();var u=i.getFieldEntitiesForNamePathList(o);return u.map(function(p,f){return p&&!("INVALIDATE_NAME_PATH"in p)?{name:p.getNamePath(),errors:p.getErrors(),warnings:p.getWarnings()}:{name:si(o[f]),errors:[],warnings:[]}})}),he(this,"getFieldError",function(o){i.warningUnhooked();var u=si(o),p=i.getFieldsError([u])[0];return p.errors}),he(this,"getFieldWarning",function(o){i.warningUnhooked();var u=si(o),p=i.getFieldsError([u])[0];return p.warnings}),he(this,"isFieldsTouched",function(){i.warningUnhooked();for(var o=arguments.length,u=new Array(o),p=0;p<o;p++)u[p]=arguments[p];var f=u[0],g=u[1],y,S=!1;u.length===0?y=null:u.length===1?Array.isArray(f)?(y=f.map(si),S=!1):(y=null,S=f):(y=f.map(si),S=g);var b=i.getFieldEntities(!0),R=function(D){return D.isFieldTouched()};if(!y)return S?b.every(function(L){return R(L)||L.isList()}):b.some(R);var _=new Dd;y.forEach(function(L){_.set(L,[])}),b.forEach(function(L){var D=L.getNamePath();y.forEach(function(H){H.every(function(I,z){return D[z]===I})&&_.update(H,function(I){return[].concat(Lt(I),[L])})})});var P=function(D){return D.some(R)},N=_.map(function(L){var D=L.value;return D});return S?N.every(P):N.some(P)}),he(this,"isFieldTouched",function(o){return i.warningUnhooked(),i.isFieldsTouched([o])}),he(this,"isFieldsValidating",function(o){i.warningUnhooked();var u=i.getFieldEntities();if(!o)return u.some(function(f){return f.isFieldValidating()});var p=o.map(si);return u.some(function(f){var g=f.getNamePath();return Nd(p,g)&&f.isFieldValidating()})}),he(this,"isFieldValidating",function(o){return i.warningUnhooked(),i.isFieldsValidating([o])}),he(this,"resetWithFieldInitialValue",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=new Dd,p=i.getFieldEntities(!0);p.forEach(function(y){var S=y.props.initialValue,b=y.getNamePath();if(S!==void 0){var R=u.get(b)||new Set;R.add({entity:y,value:S}),u.set(b,R)}});var f=function(S){S.forEach(function(b){var R=b.props.initialValue;if(R!==void 0){var _=b.getNamePath(),P=i.getInitialValue(_);if(P!==void 0)ur(!1,"Form already set 'initialValues' with path '".concat(_.join("."),"'. Field can not overwrite it."));else{var N=u.get(_);if(N&&N.size>1)ur(!1,"Multiple Field with path '".concat(_.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(N){var L=i.getFieldValue(_),D=b.isListField();!D&&(!o.skipExist||L===void 0)&&i.updateStore(bl(i.store,_,Lt(N)[0].value))}}}})},g;o.entities?g=o.entities:o.namePathList?(g=[],o.namePathList.forEach(function(y){var S=u.get(y);if(S){var b;(b=g).push.apply(b,Lt(Lt(S).map(function(R){return R.entity})))}})):g=p,f(g)}),he(this,"resetFields",function(o){i.warningUnhooked();var u=i.store;if(!o){i.updateStore(wd(i.initialValues)),i.resetWithFieldInitialValue(),i.notifyObservers(u,null,{type:"reset"}),i.notifyWatch();return}var p=o.map(si);p.forEach(function(f){var g=i.getInitialValue(f);i.updateStore(bl(i.store,f,g))}),i.resetWithFieldInitialValue({namePathList:p}),i.notifyObservers(u,p,{type:"reset"}),i.notifyWatch(p)}),he(this,"setFields",function(o){i.warningUnhooked();var u=i.store,p=[];o.forEach(function(f){var g=f.name,y=Rr(f,sj),S=si(g);p.push(S),"value"in y&&i.updateStore(bl(i.store,S,y.value)),i.notifyObservers(u,[S],{type:"setField",data:f})}),i.notifyWatch(p)}),he(this,"getFields",function(){var o=i.getFieldEntities(!0),u=o.map(function(p){var f=p.getNamePath(),g=p.getMeta(),y=ke(ke({},g),{},{name:f,value:i.getFieldValue(f)});return Object.defineProperty(y,"originRCField",{value:!0}),y});return u}),he(this,"initEntityValue",function(o){var u=o.props.initialValue;if(u!==void 0){var p=o.getNamePath(),f=Zl(i.store,p);f===void 0&&i.updateStore(bl(i.store,p,u))}}),he(this,"isMergedPreserve",function(o){var u=o!==void 0?o:i.preserve;return u??!0}),he(this,"registerField",function(o){i.fieldEntities.push(o);var u=o.getNamePath();if(i.notifyWatch([u]),o.props.initialValue!==void 0){var p=i.store;i.resetWithFieldInitialValue({entities:[o],skipExist:!0}),i.notifyObservers(p,[o.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(f,g){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(i.fieldEntities=i.fieldEntities.filter(function(R){return R!==o}),!i.isMergedPreserve(g)&&(!f||y.length>1)){var S=f?void 0:i.getInitialValue(u);if(u.length&&i.getFieldValue(u)!==S&&i.fieldEntities.every(function(R){return!pk(R.getNamePath(),u)})){var b=i.store;i.updateStore(bl(b,u,S,!0)),i.notifyObservers(b,[u],{type:"remove"}),i.triggerDependenciesUpdate(b,u)}}i.notifyWatch([u])}}),he(this,"dispatch",function(o){switch(o.type){case"updateValue":{var u=o.namePath,p=o.value;i.updateValue(u,p);break}case"validateField":{var f=o.namePath,g=o.triggerName;i.validateFields([f],{triggerName:g});break}}}),he(this,"notifyObservers",function(o,u,p){if(i.subscribable){var f=ke(ke({},p),{},{store:i.getFieldsValue(!0)});i.getFieldEntities().forEach(function(g){var y=g.onStoreChange;y(o,u,f)})}else i.forceRootUpdate()}),he(this,"triggerDependenciesUpdate",function(o,u){var p=i.getDependencyChildrenFields(u);return p.length&&i.validateFields(p),i.notifyObservers(o,p,{type:"dependenciesUpdate",relatedFields:[u].concat(Lt(p))}),p}),he(this,"updateValue",function(o,u){var p=si(o),f=i.store;i.updateStore(bl(i.store,p,u)),i.notifyObservers(f,[p],{type:"valueUpdate",source:"internal"}),i.notifyWatch([p]);var g=i.triggerDependenciesUpdate(f,p),y=i.callbacks.onValuesChange;if(y){var S=dk(i.store,[p]);y(S,i.getFieldsValue())}i.triggerOnFieldsChange([p].concat(Lt(g)))}),he(this,"setFieldsValue",function(o){i.warningUnhooked();var u=i.store;if(o){var p=wd(i.store,o);i.updateStore(p)}i.notifyObservers(u,null,{type:"valueUpdate",source:"external"}),i.notifyWatch()}),he(this,"setFieldValue",function(o,u){i.setFields([{name:o,value:u}])}),he(this,"getDependencyChildrenFields",function(o){var u=new Set,p=[],f=new Dd;i.getFieldEntities().forEach(function(y){var S=y.props.dependencies;(S||[]).forEach(function(b){var R=si(b);f.update(R,function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return _.add(y),_})})});var g=function y(S){var b=f.get(S)||new Set;b.forEach(function(R){if(!u.has(R)){u.add(R);var _=R.getNamePath();R.isFieldDirty()&&_.length&&(p.push(_),y(_))}})};return g(o),p}),he(this,"triggerOnFieldsChange",function(o,u){var p=i.callbacks.onFieldsChange;if(p){var f=i.getFields();if(u){var g=new Dd;u.forEach(function(S){var b=S.name,R=S.errors;g.set(b,R)}),f.forEach(function(S){S.errors=g.get(S.name)||S.errors})}var y=f.filter(function(S){var b=S.name;return Nd(o,b)});y.length&&p(y,f)}}),he(this,"validateFields",function(o,u){i.warningUnhooked();var p,f;Array.isArray(o)||typeof o=="string"||typeof u=="string"?(p=o,f=u):f=o;var g=!!p,y=g?p.map(si):[],S=[],b=String(Date.now()),R=new Set,_=f||{},P=_.recursive,N=_.dirty;i.getFieldEntities(!0).forEach(function(I){if(g||y.push(I.getNamePath()),!(!I.props.rules||!I.props.rules.length)&&!(N&&!I.isFieldDirty())){var z=I.getNamePath();if(R.add(z.join(b)),!g||Nd(y,z,P)){var V=I.validateRules(ke({validateMessages:ke(ke({},sk),i.validateMessages)},f));S.push(V.then(function(){return{name:z,errors:[],warnings:[]}}).catch(function(B){var W,K=[],Z=[];return(W=B.forEach)===null||W===void 0||W.call(B,function(ie){var Y=ie.rule.warningOnly,J=ie.errors;Y?Z.push.apply(Z,Lt(J)):K.push.apply(K,Lt(J))}),K.length?Promise.reject({name:z,errors:K,warnings:Z}):{name:z,errors:K,warnings:Z}}))}}});var L=uj(S);i.lastValidatePromise=L,L.catch(function(I){return I}).then(function(I){var z=I.map(function(V){var B=V.name;return B});i.notifyObservers(i.store,z,{type:"validateFinish"}),i.triggerOnFieldsChange(z,I)});var D=L.then(function(){return i.lastValidatePromise===L?Promise.resolve(i.getFieldsValue(y)):Promise.reject([])}).catch(function(I){var z=I.filter(function(V){return V&&V.errors.length});return Promise.reject({values:i.getFieldsValue(y),errorFields:z,outOfDate:i.lastValidatePromise!==L})});D.catch(function(I){return I});var H=y.filter(function(I){return R.has(I.join(b))});return i.triggerOnFieldsChange(H),D}),he(this,"submit",function(){i.warningUnhooked(),i.validateFields().then(function(o){var u=i.callbacks.onFinish;if(u)try{u(o)}catch(p){console.error(p)}}).catch(function(o){var u=i.callbacks.onFinishFailed;u&&u(o)})}),this.forceRootUpdate=r});function yk(t){var r=x.useRef(),i=x.useState({}),o=Ge(i,2),u=o[1];if(!r.current)if(t)r.current=t;else{var p=function(){u({})},f=new cj(p);r.current=f.getForm()}return[r.current]}var PC=x.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),fj=function(r){var i=r.validateMessages,o=r.onFormChange,u=r.onFormFinish,p=r.children,f=x.useContext(PC),g=x.useRef({});return x.createElement(PC.Provider,{value:ke(ke({},f),{},{validateMessages:ke(ke({},f.validateMessages),i),triggerFormChange:function(S,b){o&&o(S,{changedFields:b,forms:g.current}),f.triggerFormChange(S,b)},triggerFormFinish:function(S,b){u&&u(S,{values:b,forms:g.current}),f.triggerFormFinish(S,b)},registerForm:function(S,b){S&&(g.current=ke(ke({},g.current),{},he({},S,b))),f.registerForm(S,b)},unregisterForm:function(S){var b=ke({},g.current);delete b[S],g.current=b,f.unregisterForm(S)}})},p)},dj=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],pj=function(r,i){var o=r.name,u=r.initialValues,p=r.fields,f=r.form,g=r.preserve,y=r.children,S=r.component,b=S===void 0?"form":S,R=r.validateMessages,_=r.validateTrigger,P=_===void 0?"onChange":_,N=r.onValuesChange,L=r.onFieldsChange,D=r.onFinish,H=r.onFinishFailed,I=r.clearOnDestroy,z=Rr(r,dj),V=x.useRef(null),B=x.useContext(PC),W=yk(f),K=Ge(W,1),Z=K[0],ie=Z.getInternalHooks(Gc),Y=ie.useSubscribe,J=ie.setInitialValues,oe=ie.setCallbacks,X=ie.setValidateMessages,ne=ie.setPreserve,de=ie.destroyForm;x.useImperativeHandle(i,function(){return ke(ke({},Z),{},{nativeElement:V.current})}),x.useEffect(function(){return B.registerForm(o,Z),function(){B.unregisterForm(o)}},[B,Z,o]),X(ke(ke({},B.validateMessages),R)),oe({onValuesChange:N,onFieldsChange:function(ye){if(B.triggerFormChange(o,ye),L){for(var Le=arguments.length,We=new Array(Le>1?Le-1:0),Ue=1;Ue<Le;Ue++)We[Ue-1]=arguments[Ue];L.apply(void 0,[ye].concat(We))}},onFinish:function(ye){B.triggerFormFinish(o,ye),D&&D(ye)},onFinishFailed:H}),ne(g);var we=x.useRef(null);J(u,!we.current),we.current||(we.current=!0),x.useEffect(function(){return function(){return de(I)}},[]);var ge,le=typeof y=="function";if(le){var Re=Z.getFieldsValue(!0);ge=y(Re,Z)}else ge=y;Y(!le);var pe=x.useRef();x.useEffect(function(){ij(pe.current||[],p||[])||Z.setFields(p||[]),pe.current=p},[p,Z]);var G=x.useMemo(function(){return ke(ke({},Z),{},{validateTrigger:P})},[Z,P]),ue=x.createElement(Ry.Provider,{value:null},x.createElement(_d.Provider,{value:G},ge));return b===!1?ue:x.createElement(b,wn({},z,{ref:V,onSubmit:function(ye){ye.preventDefault(),ye.stopPropagation(),Z.submit()},onReset:function(ye){var Le;ye.preventDefault(),Z.resetFields(),(Le=z.onReset)===null||Le===void 0||Le.call(z,ye)}}),ue)};function bk(t){try{return JSON.stringify(t)}catch{return Math.random()}}var vj=me.env.NODE_ENV!=="production"?function(t){var r=t.join("__RC_FIELD_FORM_SPLIT__"),i=x.useRef(r);ur(i.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function hj(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=r[0],u=r[1],p=u===void 0?{}:u,f=wz(p)?{form:p}:p,g=f.form,y=x.useState(),S=Ge(y,2),b=S[0],R=S[1],_=x.useMemo(function(){return bk(b)},[b]),P=x.useRef(_);P.current=_;var N=x.useContext(_d),L=g||N,D=L&&L._init;me.env.NODE_ENV!=="production"&&ur(r.length===2?g?D:!0:D,"useWatch requires a form instance since it can not auto detect from context.");var H=si(o),I=x.useRef(H);return I.current=H,vj(H),x.useEffect(function(){if(D){var z=L.getFieldsValue,V=L.getInternalHooks,B=V(Gc),W=B.registerWatch,K=function(J,oe){var X=f.preserve?oe:J;return typeof o=="function"?o(X):Zl(X,I.current)},Z=W(function(Y,J){var oe=K(Y,J),X=bk(oe);P.current!==X&&(P.current=X,R(oe))}),ie=K(z(),z(!0));return b!==ie&&R(ie),Z}},[D]),b}var mj=x.forwardRef(pj),ph=mj;ph.FormProvider=fj,ph.Field=mk,ph.List=lj,ph.useForm=yk,ph.useWatch=hj;const AC=x.createContext({});me.env.NODE_ENV!=="production"&&(AC.displayName="FormItemInputContext");const gj=t=>{let{children:r,status:i,override:o}=t;const u=x.useContext(AC),p=x.useMemo(()=>{const f=Object.assign({},u);return o&&delete f.isFormItemInput,i&&(delete f.status,delete f.hasFeedback,delete f.feedbackIcon),f},[i,o,u]);return x.createElement(AC.Provider,{value:p},r)},Sk=t=>{const{space:r,form:i,children:o}=t;if(o==null)return null;let u=o;return i&&(u=_n.createElement(gj,{override:!0,status:!0},u)),r&&(u=_n.createElement(dz,null,u)),u},yj=t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},
|
|
347
|
-
opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},
|
|
348
|
-
opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}}),bj=t=>({animationDuration:t,animationFillMode:"both"}),Sj=t=>({animationDuration:t,animationFillMode:"both"}),$C=function(t,r,i,o){const p=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
349
|
-
${p}${t}-enter,
|
|
350
|
-
${p}${t}-appear
|
|
351
|
-
`]:Object.assign(Object.assign({},bj(o)),{animationPlayState:"paused"}),[`${p}${t}-leave`]:Object.assign(Object.assign({},Sj(o)),{animationPlayState:"paused"}),[`
|
|
352
|
-
${p}${t}-enter${t}-enter-active,
|
|
353
|
-
${p}${t}-appear${t}-appear-active
|
|
354
|
-
`]:{animationName:r,animationPlayState:"running"},[`${p}${t}-leave${t}-leave-active`]:{animationName:i,animationPlayState:"running",pointerEvents:"none"}}},Ej=new fr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Cj=new fr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),wj=new fr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xj=new fr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Rj=new fr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Tj=new fr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Oj=new fr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_j=new fr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),kj={"move-up":{inKeyframes:Oj,outKeyframes:_j},"move-down":{inKeyframes:Ej,outKeyframes:Cj},"move-left":{inKeyframes:wj,outKeyframes:xj},"move-right":{inKeyframes:Rj,outKeyframes:Tj}},Ek=(t,r)=>{const{antCls:i}=t,o=`${i}-${r}`,{inKeyframes:u,outKeyframes:p}=kj[r];return[$C(o,u,p,t.motionDurationMid),{[`
|
|
355
|
-
${o}-enter,
|
|
356
|
-
${o}-appear
|
|
357
|
-
`]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},Ck=new fr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),wk=new fr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),xk=new fr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Rk=new fr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Nj=new fr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Dj=new fr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mj=new fr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Pj=new fr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Aj={"slide-up":{inKeyframes:Ck,outKeyframes:wk},"slide-down":{inKeyframes:xk,outKeyframes:Rk},"slide-left":{inKeyframes:Nj,outKeyframes:Dj},"slide-right":{inKeyframes:Mj,outKeyframes:Pj}},Oy=(t,r)=>{const{antCls:i}=t,o=`${i}-${r}`,{inKeyframes:u,outKeyframes:p}=Aj[r];return[$C(o,u,p,t.motionDurationMid),{[`
|
|
358
|
-
${o}-enter,
|
|
359
|
-
${o}-appear
|
|
360
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]},$j=new fr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Lj=new fr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Tk=new fr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ok=new fr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Fj=new fr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Ij=new fr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),zj=new fr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),jj=new fr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Uj=new fr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Bj=new fr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Vj=new fr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Hj=new fr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Wj={zoom:{inKeyframes:$j,outKeyframes:Lj},"zoom-big":{inKeyframes:Tk,outKeyframes:Ok},"zoom-big-fast":{inKeyframes:Tk,outKeyframes:Ok},"zoom-left":{inKeyframes:zj,outKeyframes:jj},"zoom-right":{inKeyframes:Uj,outKeyframes:Bj},"zoom-up":{inKeyframes:Fj,outKeyframes:Ij},"zoom-down":{inKeyframes:Vj,outKeyframes:Hj}},LC=(t,r)=>{const{antCls:i}=t,o=`${i}-${r}`,{inKeyframes:u,outKeyframes:p}=Wj[r];return[$C(o,u,p,r==="zoom-big-fast"?t.motionDurationFast:t.motionDurationMid),{[`
|
|
361
|
-
${o}-enter,
|
|
362
|
-
${o}-appear
|
|
363
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]};function qj(t){return r=>x.createElement(qc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},x.createElement(t,Object.assign({},r)))}const Kj=(t,r,i,o)=>qj(p=>{const{prefixCls:f,style:g}=p,y=x.useRef(null),[S,b]=x.useState(0),[R,_]=x.useState(0),[P,N]=Hc(!1,{value:p.open}),{getPrefixCls:L}=x.useContext(ia),D=L(r,f);x.useEffect(()=>{if(N(!0),typeof ResizeObserver<"u"){const z=new ResizeObserver(B=>{const W=B[0].target;b(W.offsetHeight+8),_(W.offsetWidth)}),V=setInterval(()=>{var B;const W=i?`.${i(D)}`:`.${D}-dropdown`,K=(B=y.current)===null||B===void 0?void 0:B.querySelector(W);K&&(clearInterval(V),z.observe(K))},10);return()=>{clearInterval(V),z.disconnect()}}},[]);let H=Object.assign(Object.assign({},p),{style:Object.assign(Object.assign({},g),{margin:0}),open:P,visible:P,getPopupContainer:()=>y.current});o&&(H=o(H));const I={paddingBottom:S,position:"relative",minWidth:R};return x.createElement("div",{ref:y,style:I},x.createElement(t,Object.assign({},H)))}),Yj=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t?.substr(0,4))};var Gj=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Md=void 0;function Xj(t,r){var i=t.prefixCls,o=t.invalidate,u=t.item,p=t.renderItem,f=t.responsive,g=t.responsiveDisabled,y=t.registerSize,S=t.itemKey,b=t.className,R=t.style,_=t.children,P=t.display,N=t.order,L=t.component,D=L===void 0?"div":L,H=Rr(t,Gj),I=f&&!P;function z(Z){y(S,Z)}x.useEffect(function(){return function(){z(null)}},[]);var V=p&&u!==Md?p(u,{index:N}):_,B;o||(B={opacity:I?0:1,height:I?0:Md,overflowY:I?"hidden":Md,order:f?N:Md,pointerEvents:I?"none":Md,position:I?"absolute":Md});var W={};I&&(W["aria-hidden"]=!0);var K=x.createElement(D,wn({className:Zt(!o&&i,b),style:ke(ke({},B),R)},W,H,{ref:r}),V);return f&&(K=x.createElement(gd,{onResize:function(ie){var Y=ie.offsetWidth;z(Y)},disabled:g},K)),K}var vh=x.forwardRef(Xj);vh.displayName="Item";function Qj(t){if(typeof MessageChannel>"u")hl(t);else{var r=new MessageChannel;r.port1.onmessage=function(){return t()},r.port2.postMessage(void 0)}}function Jj(){var t=x.useRef(null),r=function(o){t.current||(t.current=[],Qj(function(){jg.unstable_batchedUpdates(function(){t.current.forEach(function(u){u()}),t.current=null})})),t.current.push(o)};return r}function hh(t,r){var i=x.useState(r),o=Ge(i,2),u=o[0],p=o[1],f=Ua(function(g){t(function(){p(g)})});return[u,f]}var _y=_n.createContext(null),Zj=["component"],eU=["className"],tU=["className"],nU=function(r,i){var o=x.useContext(_y);if(!o){var u=r.component,p=u===void 0?"div":u,f=Rr(r,Zj);return x.createElement(p,wn({},f,{ref:i}))}var g=o.className,y=Rr(o,eU),S=r.className,b=Rr(r,tU);return x.createElement(_y.Provider,{value:null},x.createElement(vh,wn({ref:i,className:Zt(g,S)},y,b)))},_k=x.forwardRef(nU);_k.displayName="RawItem";var rU=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],kk="responsive",Nk="invalidate";function iU(t){return"+ ".concat(t.length," ...")}function aU(t,r){var i=t.prefixCls,o=i===void 0?"rc-overflow":i,u=t.data,p=u===void 0?[]:u,f=t.renderItem,g=t.renderRawItem,y=t.itemKey,S=t.itemWidth,b=S===void 0?10:S,R=t.ssr,_=t.style,P=t.className,N=t.maxCount,L=t.renderRest,D=t.renderRawRest,H=t.suffix,I=t.component,z=I===void 0?"div":I,V=t.itemComponent,B=t.onVisibleChange,W=Rr(t,rU),K=R==="full",Z=Jj(),ie=hh(Z,null),Y=Ge(ie,2),J=Y[0],oe=Y[1],X=J||0,ne=hh(Z,new Map),de=Ge(ne,2),we=de[0],ge=de[1],le=hh(Z,0),Re=Ge(le,2),pe=Re[0],G=Re[1],ue=hh(Z,0),De=Ge(ue,2),ye=De[0],Le=De[1],We=hh(Z,0),Ue=Ge(We,2),qe=Ue[0],Qe=Ue[1],ft=x.useState(null),rt=Ge(ft,2),Tt=rt[0],_t=rt[1],$e=x.useState(null),yt=Ge($e,2),st=yt[0],sn=yt[1],cn=x.useMemo(function(){return st===null&&K?Number.MAX_SAFE_INTEGER:st||0},[st,J]),pn=x.useState(!1),rn=Ge(pn,2),bt=rn[0],Ut=rn[1],tt="".concat(o,"-item"),an=Math.max(pe,ye),St=N===kk,Pt=p.length&&St,Un=N===Nk,Cn=Pt||typeof N=="number"&&p.length>N,Jn=x.useMemo(function(){var Ot=p;return Pt?J===null&&K?Ot=p:Ot=p.slice(0,Math.min(p.length,X/b)):typeof N=="number"&&(Ot=p.slice(0,N)),Ot},[p,b,J,N,Pt]),A=x.useMemo(function(){return Pt?p.slice(cn+1):p.slice(Jn.length)},[p,Jn,Pt,cn]),w=x.useCallback(function(Ot,et){var At;return typeof y=="function"?y(Ot):(At=y&&Ot?.[y])!==null&&At!==void 0?At:et},[y]),O=x.useCallback(f||function(Ot){return Ot},[f]);function U(Ot,et,At){st===Ot&&(et===void 0||et===Tt)||(sn(Ot),At||(Ut(Ot<p.length-1),B?.(Ot)),et!==void 0&&_t(et))}function ee(Ot,et){oe(et.clientWidth)}function ve(Ot,et){ge(function(At){var dn=new Map(At);return et===null?dn.delete(Ot):dn.set(Ot,et),dn})}function Se(Ot,et){Le(et),G(ye)}function Xe(Ot,et){Qe(et)}function mt(Ot){return we.get(w(Jn[Ot],Ot))}na(function(){if(X&&typeof an=="number"&&Jn){var Ot=qe,et=Jn.length,At=et-1;if(!et){U(0,null);return}for(var dn=0;dn<et;dn+=1){var qt=mt(dn);if(K&&(qt=qt||0),qt===void 0){U(dn-1,void 0,!0);break}if(Ot+=qt,At===0&&Ot<=X||dn===At-1&&Ot+mt(At)<=X){U(At,null);break}else if(Ot+an>X){U(dn-1,Ot-qt-qe+ye);break}}H&&mt(0)+qe>X&&_t(null)}},[X,we,ye,qe,w,Jn]);var gt=bt&&!!A.length,Ct={};Tt!==null&&Pt&&(Ct={position:"absolute",left:Tt,top:0});var Dt={prefixCls:tt,responsive:Pt,component:V,invalidate:Un},or=g?function(Ot,et){var At=w(Ot,et);return x.createElement(_y.Provider,{key:At,value:ke(ke({},Dt),{},{order:et,item:Ot,itemKey:At,registerSize:ve,display:et<=cn})},g(Ot,et))}:function(Ot,et){var At=w(Ot,et);return x.createElement(vh,wn({},Dt,{order:et,key:At,item:Ot,renderItem:O,itemKey:At,registerSize:ve,display:et<=cn}))},Bn={order:gt?cn:Number.MAX_SAFE_INTEGER,className:"".concat(tt,"-rest"),registerSize:Se,display:gt},Mn=L||iU,kr=D?x.createElement(_y.Provider,{value:ke(ke({},Dt),Bn)},D(A)):x.createElement(vh,wn({},Dt,Bn),typeof Mn=="function"?Mn(A):Mn),kn=x.createElement(z,wn({className:Zt(!Un&&o,P),style:_,ref:r},W),Jn.map(or),Cn?kr:null,H&&x.createElement(vh,wn({},Dt,{responsive:St,responsiveDisabled:!Pt,order:cn,className:"".concat(tt,"-suffix"),registerSize:Xe,display:!0,style:Ct}),H));return St?x.createElement(gd,{onResize:ee,disabled:!Pt},kn):kn}var qu=x.forwardRef(aU);qu.displayName="Overflow",qu.Item=_k,qu.RESPONSIVE=kk,qu.INVALIDATE=Nk;function oU(t){var r=t.prefixCls,i=t.align,o=t.arrow,u=t.arrowPos,p=o||{},f=p.className,g=p.content,y=u.x,S=y===void 0?0:y,b=u.y,R=b===void 0?0:b,_=x.useRef();if(!i||!i.points)return null;var P={position:"absolute"};if(i.autoArrow!==!1){var N=i.points[0],L=i.points[1],D=N[0],H=N[1],I=L[0],z=L[1];D===I||!["t","b"].includes(D)?P.top=R:D==="t"?P.top=0:P.bottom=0,H===z||!["l","r"].includes(H)?P.left=S:H==="l"?P.left=0:P.right=0}return x.createElement("div",{ref:_,className:Zt("".concat(r,"-arrow"),f),style:P},g)}function lU(t){var r=t.prefixCls,i=t.open,o=t.zIndex,u=t.mask,p=t.motion;return u?x.createElement(Cy,wn({},p,{motionAppear:!0,visible:i,removeOnLeave:!0}),function(f){var g=f.className;return x.createElement("div",{style:{zIndex:o},className:Zt("".concat(r,"-mask"),g)})}):null}var Dk=x.memo(function(t){var r=t.children;return r},function(t,r){return r.cache});me.env.NODE_ENV!=="production"&&(Dk.displayName="PopupContent");var Mk=x.forwardRef(function(t,r){var i=t.popup,o=t.className,u=t.prefixCls,p=t.style,f=t.target,g=t.onVisibleChanged,y=t.open,S=t.keepDom,b=t.fresh,R=t.onClick,_=t.mask,P=t.arrow,N=t.arrowPos,L=t.align,D=t.motion,H=t.maskMotion,I=t.forceRender,z=t.getPopupContainer,V=t.autoDestroy,B=t.portal,W=t.zIndex,K=t.onMouseEnter,Z=t.onMouseLeave,ie=t.onPointerEnter,Y=t.onPointerDownCapture,J=t.ready,oe=t.offsetX,X=t.offsetY,ne=t.offsetR,de=t.offsetB,we=t.onAlign,ge=t.onPrepare,le=t.stretch,Re=t.targetWidth,pe=t.targetHeight,G=typeof i=="function"?i():i,ue=y||S,De=z?.length>0,ye=x.useState(!z||!De),Le=Ge(ye,2),We=Le[0],Ue=Le[1];if(na(function(){!We&&De&&f&&Ue(!0)},[We,De,f]),!We)return null;var qe="auto",Qe={left:"-1000vw",top:"-1000vh",right:qe,bottom:qe};if(J||!y){var ft,rt=L.points,Tt=L.dynamicInset||((ft=L._experimental)===null||ft===void 0?void 0:ft.dynamicInset),_t=Tt&&rt[0][1]==="r",$e=Tt&&rt[0][0]==="b";_t?(Qe.right=ne,Qe.left=qe):(Qe.left=oe,Qe.right=qe),$e?(Qe.bottom=de,Qe.top=qe):(Qe.top=X,Qe.bottom=qe)}var yt={};return le&&(le.includes("height")&&pe?yt.height=pe:le.includes("minHeight")&&pe&&(yt.minHeight=pe),le.includes("width")&&Re?yt.width=Re:le.includes("minWidth")&&Re&&(yt.minWidth=Re)),y||(yt.pointerEvents="none"),x.createElement(B,{open:I||ue,getContainer:z&&function(){return z(f)},autoDestroy:V},x.createElement(lU,{prefixCls:u,open:y,zIndex:W,mask:_,motion:H}),x.createElement(gd,{onResize:we,disabled:!y},function(st){return x.createElement(Cy,wn({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:I,leavedClassName:"".concat(u,"-hidden")},D,{onAppearPrepare:ge,onEnterPrepare:ge,visible:y,onVisibleChanged:function(cn){var pn;D==null||(pn=D.onVisibleChanged)===null||pn===void 0||pn.call(D,cn),g(cn)}}),function(sn,cn){var pn=sn.className,rn=sn.style,bt=Zt(u,pn,o);return x.createElement("div",{ref:Vg(st,r,cn),className:bt,style:ke(ke(ke(ke({"--arrow-x":"".concat(N.x||0,"px"),"--arrow-y":"".concat(N.y||0,"px")},Qe),yt),rn),{},{boxSizing:"border-box",zIndex:W},p),onMouseEnter:K,onMouseLeave:Z,onPointerEnter:ie,onClick:R,onPointerDownCapture:Y},P&&x.createElement(oU,{prefixCls:u,arrow:P,arrowPos:N,align:L}),x.createElement(Dk,{cache:!y&&!b},G))})}))});me.env.NODE_ENV!=="production"&&(Mk.displayName="Popup");var Pk=x.forwardRef(function(t,r){var i=t.children,o=t.getTriggerDOMNode,u=Ic(i),p=x.useCallback(function(g){dE(r,o?o(g):g)},[o]),f=Uv(p,Bv(i));return u?x.cloneElement(i,{ref:f}):i});me.env.NODE_ENV!=="production"&&(Pk.displayName="TriggerWrapper");var Ak=x.createContext(null);function $k(t){return t?Array.isArray(t)?t:[t]:[]}function uU(t,r,i,o){return x.useMemo(function(){var u=$k(i??r),p=$k(o??r),f=new Set(u),g=new Set(p);return t&&(f.has("hover")&&(f.delete("hover"),f.add("click")),g.has("hover")&&(g.delete("hover"),g.add("click"))),[f,g]},[t,r,i,o])}function sU(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return i?t[0]===r[0]:t[0]===r[0]&&t[1]===r[1]}function cU(t,r,i,o){for(var u=i.points,p=Object.keys(t),f=0;f<p.length;f+=1){var g,y=p[f];if(sU((g=t[y])===null||g===void 0?void 0:g.points,u,o))return"".concat(r,"-placement-").concat(y)}return""}function Lk(t,r,i,o){return r||(i?{motionName:"".concat(t,"-").concat(i)}:o?{motionName:o}:null)}function mh(t){return t.ownerDocument.defaultView}function FC(t){for(var r=[],i=t?.parentElement,o=["hidden","scroll","clip","auto"];i;){var u=mh(i).getComputedStyle(i),p=u.overflowX,f=u.overflowY,g=u.overflow;[p,f,g].some(function(y){return o.includes(y)})&&r.push(i),i=i.parentElement}return r}function gh(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?r:t}function yh(t){return gh(parseFloat(t),0)}function Fk(t,r){var i=ke({},t);return(r||[]).forEach(function(o){if(!(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)){var u=mh(o).getComputedStyle(o),p=u.overflow,f=u.overflowClipMargin,g=u.borderTopWidth,y=u.borderBottomWidth,S=u.borderLeftWidth,b=u.borderRightWidth,R=o.getBoundingClientRect(),_=o.offsetHeight,P=o.clientHeight,N=o.offsetWidth,L=o.clientWidth,D=yh(g),H=yh(y),I=yh(S),z=yh(b),V=gh(Math.round(R.width/N*1e3)/1e3),B=gh(Math.round(R.height/_*1e3)/1e3),W=(N-L-I-z)*V,K=(_-P-D-H)*B,Z=D*B,ie=H*B,Y=I*V,J=z*V,oe=0,X=0;if(p==="clip"){var ne=yh(f);oe=ne*V,X=ne*B}var de=R.x+Y-oe,we=R.y+Z-X,ge=de+R.width+2*oe-Y-J-W,le=we+R.height+2*X-Z-ie-K;i.left=Math.max(i.left,de),i.top=Math.max(i.top,we),i.right=Math.min(i.right,ge),i.bottom=Math.min(i.bottom,le)}}),i}function Ik(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i="".concat(r),o=i.match(/^(.*)\%$/);return o?t*(parseFloat(o[1])/100):parseFloat(i)}function zk(t,r){var i=r||[],o=Ge(i,2),u=o[0],p=o[1];return[Ik(t.width,u),Ik(t.height,p)]}function jk(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}function Pd(t,r){var i=r[0],o=r[1],u,p;return i==="t"?p=t.y:i==="b"?p=t.y+t.height:p=t.y+t.height/2,o==="l"?u=t.x:o==="r"?u=t.x+t.width:u=t.x+t.width/2,{x:u,y:p}}function Hs(t,r){var i={t:"b",b:"t",l:"r",r:"l"};return t.map(function(o,u){return u===r?i[o]||"c":o}).join("")}function fU(t,r,i,o,u,p,f){var g=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:u[o]||{}}),y=Ge(g,2),S=y[0],b=y[1],R=x.useRef(0),_=x.useMemo(function(){return r?FC(r):[]},[r]),P=x.useRef({}),N=function(){P.current={}};t||N();var L=Ua(function(){if(r&&i&&t){let Hr=function(Li,Dr){var di=arguments.length>2&&arguments[2]!==void 0?arguments[2]:an,er=ye.x+Li,Hn=ye.y+Dr,uo=er+_t,Lr=Hn+Tt,pi=Math.max(er,di.left),at=Math.max(Hn,di.top),Ft=Math.min(uo,di.right),nr=Math.min(Lr,di.bottom);return Math.max(0,(Ft-pi)*(nr-at))},Ur=function(){Nt=ye.y+At,Et=Nt+Tt,Kt=ye.x+et,Zn=Kt+_t};var I,z,V,B,W=r,K=W.ownerDocument,Z=mh(W),ie=Z.getComputedStyle(W),Y=ie.width,J=ie.height,oe=ie.position,X=W.style.left,ne=W.style.top,de=W.style.right,we=W.style.bottom,ge=W.style.overflow,le=ke(ke({},u[o]),p),Re=K.createElement("div");(I=W.parentElement)===null||I===void 0||I.appendChild(Re),Re.style.left="".concat(W.offsetLeft,"px"),Re.style.top="".concat(W.offsetTop,"px"),Re.style.position=oe,Re.style.height="".concat(W.offsetHeight,"px"),Re.style.width="".concat(W.offsetWidth,"px"),W.style.left="0",W.style.top="0",W.style.right="auto",W.style.bottom="auto",W.style.overflow="hidden";var pe;if(Array.isArray(i))pe={x:i[0],y:i[1],width:0,height:0};else{var G,ue,De=i.getBoundingClientRect();De.x=(G=De.x)!==null&&G!==void 0?G:De.left,De.y=(ue=De.y)!==null&&ue!==void 0?ue:De.top,pe={x:De.x,y:De.y,width:De.width,height:De.height}}var ye=W.getBoundingClientRect();ye.x=(z=ye.x)!==null&&z!==void 0?z:ye.left,ye.y=(V=ye.y)!==null&&V!==void 0?V:ye.top;var Le=K.documentElement,We=Le.clientWidth,Ue=Le.clientHeight,qe=Le.scrollWidth,Qe=Le.scrollHeight,ft=Le.scrollTop,rt=Le.scrollLeft,Tt=ye.height,_t=ye.width,$e=pe.height,yt=pe.width,st={left:0,top:0,right:We,bottom:Ue},sn={left:-rt,top:-ft,right:qe-rt,bottom:Qe-ft},cn=le.htmlRegion,pn="visible",rn="visibleFirst";cn!=="scroll"&&cn!==rn&&(cn=pn);var bt=cn===rn,Ut=Fk(sn,_),tt=Fk(st,_),an=cn===pn?tt:Ut,St=bt?tt:an;W.style.left="auto",W.style.top="auto",W.style.right="0",W.style.bottom="0";var Pt=W.getBoundingClientRect();W.style.left=X,W.style.top=ne,W.style.right=de,W.style.bottom=we,W.style.overflow=ge,(B=W.parentElement)===null||B===void 0||B.removeChild(Re);var Un=gh(Math.round(_t/parseFloat(Y)*1e3)/1e3),Cn=gh(Math.round(Tt/parseFloat(J)*1e3)/1e3);if(Un===0||Cn===0||jv(i)&&!G_(i))return;var Jn=le.offset,A=le.targetOffset,w=zk(ye,Jn),O=Ge(w,2),U=O[0],ee=O[1],ve=zk(pe,A),Se=Ge(ve,2),Xe=Se[0],mt=Se[1];pe.x-=Xe,pe.y-=mt;var gt=le.points||[],Ct=Ge(gt,2),Dt=Ct[0],or=Ct[1],Bn=jk(or),Mn=jk(Dt),kr=Pd(pe,Bn),kn=Pd(ye,Mn),Ot=ke({},le),et=kr.x-kn.x+U,At=kr.y-kn.y+ee,dn=Hr(et,At),qt=Hr(et,At,tt),Qt=Pd(pe,["t","l"]),Nn=Pd(ye,["t","l"]),lr=Pd(pe,["b","r"]),Nr=Pd(ye,["b","r"]),$r=le.overflow||{},te=$r.adjustX,ze=$r.adjustY,Ze=$r.shiftX,nt=$r.shiftY,Bt=function(Dr){return typeof Dr=="boolean"?Dr:Dr>=0},Nt,Et,Kt,Zn;Ur();var Dn=Bt(ze),Vn=Mn[0]===Bn[0];if(Dn&&Mn[0]==="t"&&(Et>St.bottom||P.current.bt)){var Rn=At;Vn?Rn-=Tt-$e:Rn=Qt.y-Nr.y-ee;var fi=Hr(et,Rn),Di=Hr(et,Rn,tt);fi>dn||fi===dn&&(!bt||Di>=qt)?(P.current.bt=!0,At=Rn,ee=-ee,Ot.points=[Hs(Mn,0),Hs(Bn,0)]):P.current.bt=!1}if(Dn&&Mn[0]==="b"&&(Nt<St.top||P.current.tb)){var Vt=At;Vn?Vt+=Tt-$e:Vt=lr.y-Nn.y-ee;var en=Hr(et,Vt),Mi=Hr(et,Vt,tt);en>dn||en===dn&&(!bt||Mi>=qt)?(P.current.tb=!0,At=Vt,ee=-ee,Ot.points=[Hs(Mn,0),Hs(Bn,0)]):P.current.tb=!1}var aa=Bt(te),Si=Mn[1]===Bn[1];if(aa&&Mn[1]==="l"&&(Zn>St.right||P.current.rl)){var Jr=et;Si?Jr-=_t-yt:Jr=Qt.x-Nr.x-U;var Ba=Hr(Jr,At),Pi=Hr(Jr,At,tt);Ba>dn||Ba===dn&&(!bt||Pi>=qt)?(P.current.rl=!0,et=Jr,U=-U,Ot.points=[Hs(Mn,1),Hs(Bn,1)]):P.current.rl=!1}if(aa&&Mn[1]==="r"&&(Kt<St.left||P.current.lr)){var Er=et;Si?Er+=_t-yt:Er=lr.x-Nn.x-U;var Va=Hr(Er,At),Tr=Hr(Er,At,tt);Va>dn||Va===dn&&(!bt||Tr>=qt)?(P.current.lr=!0,et=Er,U=-U,Ot.points=[Hs(Mn,1),Hs(Bn,1)]):P.current.lr=!1}Ur();var Ai=Ze===!0?0:Ze;typeof Ai=="number"&&(Kt<tt.left&&(et-=Kt-tt.left-U,pe.x+yt<tt.left+Ai&&(et+=pe.x-tt.left+yt-Ai)),Zn>tt.right&&(et-=Zn-tt.right-U,pe.x>tt.right-Ai&&(et+=pe.x-tt.right+Ai)));var Ei=nt===!0?0:nt;typeof Ei=="number"&&(Nt<tt.top&&(At-=Nt-tt.top-ee,pe.y+$e<tt.top+Ei&&(At+=pe.y-tt.top+$e-Ei)),Et>tt.bottom&&(At-=Et-tt.bottom-ee,pe.y>tt.bottom-Ei&&(At+=pe.y-tt.bottom+Ei)));var oa=ye.x+et,Ci=oa+_t,Cr=ye.y+At,$i=Cr+Tt,wi=pe.x,oo=wi+yt,la=pe.y,Pn=la+$e,bn=Math.max(oa,wi),An=Math.min(Ci,oo),dr=(bn+An)/2,Vr=dr-oa,xi=Math.max(Cr,la),vn=Math.min($i,Pn),lo=(xi+vn)/2,hn=lo-Cr;f?.(r,Ot);var wa=Pt.right-ye.x-(et+ye.width),yr=Pt.bottom-ye.y-(At+ye.height);Un===1&&(et=Math.round(et),wa=Math.round(wa)),Cn===1&&(At=Math.round(At),yr=Math.round(yr));var jt={ready:!0,offsetX:et/Un,offsetY:At/Cn,offsetR:wa/Un,offsetB:yr/Cn,arrowX:Vr/Un,arrowY:hn/Cn,scaleX:Un,scaleY:Cn,align:Ot};b(jt)}}),D=function(){R.current+=1;var z=R.current;Promise.resolve().then(function(){R.current===z&&L()})},H=function(){b(function(z){return ke(ke({},z),{},{ready:!1})})};return na(H,[o]),na(function(){t||H()},[t]),[S.ready,S.offsetX,S.offsetY,S.offsetR,S.offsetB,S.arrowX,S.arrowY,S.scaleX,S.scaleY,S.align,D]}function dU(t,r,i,o,u){na(function(){if(t&&r&&i){let R=function(){o(),u()};var p=r,f=i,g=FC(p),y=FC(f),S=mh(f),b=new Set([S].concat(Lt(g),Lt(y)));return b.forEach(function(_){_.addEventListener("scroll",R,{passive:!0})}),S.addEventListener("resize",R,{passive:!0}),o(),function(){b.forEach(function(_){_.removeEventListener("scroll",R),S.removeEventListener("resize",R)})}}},[t,r,i])}function pU(t,r,i,o,u,p,f,g){var y=x.useRef(t);y.current=t;var S=x.useRef(!1);x.useEffect(function(){if(r&&o&&(!u||p)){var R=function(){S.current=!1},_=function(V){var B;y.current&&!f(((B=V.composedPath)===null||B===void 0||(B=B.call(V))===null||B===void 0?void 0:B[0])||V.target)&&!S.current&&g(!1)},P=mh(o);P.addEventListener("pointerdown",R,!0),P.addEventListener("mousedown",_,!0),P.addEventListener("contextmenu",_,!0);var N=wy(i);if(N&&(N.addEventListener("mousedown",_,!0),N.addEventListener("contextmenu",_,!0)),me.env.NODE_ENV!=="production"){var L,D,H=i==null||(L=i.getRootNode)===null||L===void 0?void 0:L.call(i),I=(D=o.getRootNode)===null||D===void 0?void 0:D.call(o);hd(H===I,"trigger element and popup element should in same shadow root.")}return function(){P.removeEventListener("pointerdown",R,!0),P.removeEventListener("mousedown",_,!0),P.removeEventListener("contextmenu",_,!0),N&&(N.removeEventListener("mousedown",_,!0),N.removeEventListener("contextmenu",_,!0))}}},[r,i,o,u,p]);function b(){S.current=!0}return b}var vU=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function hU(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SC,r=x.forwardRef(function(i,o){var u=i.prefixCls,p=u===void 0?"rc-trigger-popup":u,f=i.children,g=i.action,y=g===void 0?"hover":g,S=i.showAction,b=i.hideAction,R=i.popupVisible,_=i.defaultPopupVisible,P=i.onPopupVisibleChange,N=i.afterPopupVisibleChange,L=i.mouseEnterDelay,D=i.mouseLeaveDelay,H=D===void 0?.1:D,I=i.focusDelay,z=i.blurDelay,V=i.mask,B=i.maskClosable,W=B===void 0?!0:B,K=i.getPopupContainer,Z=i.forceRender,ie=i.autoDestroy,Y=i.destroyPopupOnHide,J=i.popup,oe=i.popupClassName,X=i.popupStyle,ne=i.popupPlacement,de=i.builtinPlacements,we=de===void 0?{}:de,ge=i.popupAlign,le=i.zIndex,Re=i.stretch,pe=i.getPopupClassNameFromAlign,G=i.fresh,ue=i.alignPoint,De=i.onPopupClick,ye=i.onPopupAlign,Le=i.arrow,We=i.popupMotion,Ue=i.maskMotion,qe=i.popupTransitionName,Qe=i.popupAnimation,ft=i.maskTransitionName,rt=i.maskAnimation,Tt=i.className,_t=i.getTriggerDOMNode,$e=Rr(i,vU),yt=ie||Y||!1,st=x.useState(!1),sn=Ge(st,2),cn=sn[0],pn=sn[1];na(function(){pn(Yj())},[]);var rn=x.useRef({}),bt=x.useContext(Ak),Ut=x.useMemo(function(){return{registerSubPopup:function(Ft,nr){rn.current[Ft]=nr,bt?.registerSubPopup(Ft,nr)}}},[bt]),tt=Cz(),an=x.useState(null),St=Ge(an,2),Pt=St[0],Un=St[1],Cn=x.useRef(null),Jn=Ua(function(at){Cn.current=at,jv(at)&&Pt!==at&&Un(at),bt?.registerSubPopup(tt,at)}),A=x.useState(null),w=Ge(A,2),O=w[0],U=w[1],ee=x.useRef(null),ve=Ua(function(at){jv(at)&&O!==at&&(U(at),ee.current=at)}),Se=x.Children.only(f),Xe=Se?.props||{},mt={},gt=Ua(function(at){var Ft,nr,Or=O;return Or?.contains(at)||((Ft=wy(Or))===null||Ft===void 0?void 0:Ft.host)===at||at===Or||Pt?.contains(at)||((nr=wy(Pt))===null||nr===void 0?void 0:nr.host)===at||at===Pt||Object.values(rn.current).some(function(tr){return tr?.contains(at)||at===tr})}),Ct=Lk(p,We,Qe,qe),Dt=Lk(p,Ue,rt,ft),or=x.useState(_||!1),Bn=Ge(or,2),Mn=Bn[0],kr=Bn[1],kn=R??Mn,Ot=Ua(function(at){R===void 0&&kr(at)});na(function(){kr(R||!1)},[R]);var et=x.useRef(kn);et.current=kn;var At=x.useRef([]);At.current=[];var dn=Ua(function(at){var Ft;Ot(at),((Ft=At.current[At.current.length-1])!==null&&Ft!==void 0?Ft:kn)!==at&&(At.current.push(at),P?.(at))}),qt=x.useRef(),Qt=function(){clearTimeout(qt.current)},Nn=function(Ft){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Qt(),nr===0?dn(Ft):qt.current=setTimeout(function(){dn(Ft)},nr*1e3)};x.useEffect(function(){return Qt},[]);var lr=x.useState(!1),Nr=Ge(lr,2),$r=Nr[0],te=Nr[1];na(function(at){(!at||kn)&&te(!0)},[kn]);var ze=x.useState(null),Ze=Ge(ze,2),nt=Ze[0],Bt=Ze[1],Nt=x.useState(null),Et=Ge(Nt,2),Kt=Et[0],Zn=Et[1],Dn=function(Ft){Zn([Ft.clientX,Ft.clientY])},Vn=fU(kn,Pt,ue&&Kt!==null?Kt:O,ne,we,ge,ye),Rn=Ge(Vn,11),fi=Rn[0],Di=Rn[1],Vt=Rn[2],en=Rn[3],Mi=Rn[4],aa=Rn[5],Si=Rn[6],Jr=Rn[7],Ba=Rn[8],Pi=Rn[9],Er=Rn[10],Va=uU(cn,y,S,b),Tr=Ge(Va,2),Ai=Tr[0],Ei=Tr[1],oa=Ai.has("click"),Ci=Ei.has("click")||Ei.has("contextMenu"),Cr=Ua(function(){$r||Er()}),$i=function(){et.current&&ue&&Ci&&Nn(!1)};dU(kn,O,Pt,Cr,$i),na(function(){Cr()},[Kt,ne]),na(function(){kn&&!(we!=null&&we[ne])&&Cr()},[JSON.stringify(ge)]);var wi=x.useMemo(function(){var at=cU(we,p,Pi,ue);return Zt(at,pe?.(Pi))},[Pi,pe,we,p,ue]);x.useImperativeHandle(o,function(){return{nativeElement:ee.current,popupElement:Cn.current,forceAlign:Cr}});var oo=x.useState(0),la=Ge(oo,2),Pn=la[0],bn=la[1],An=x.useState(0),dr=Ge(An,2),Vr=dr[0],xi=dr[1],vn=function(){if(Re&&O){var Ft=O.getBoundingClientRect();bn(Ft.width),xi(Ft.height)}},lo=function(){vn(),Cr()},hn=function(Ft){te(!1),Er(),N?.(Ft)},wa=function(){return new Promise(function(Ft){vn(),Bt(function(){return Ft})})};na(function(){nt&&(Er(),nt(),Bt(null))},[nt]);function yr(at,Ft,nr,Or){mt[at]=function(tr){var so;Or?.(tr),Nn(Ft,nr);for(var Yu=arguments.length,ua=new Array(Yu>1?Yu-1:0),Xi=1;Xi<Yu;Xi++)ua[Xi-1]=arguments[Xi];(so=Xe[at])===null||so===void 0||so.call.apply(so,[Xe,tr].concat(ua))}}(oa||Ci)&&(mt.onClick=function(at){var Ft;et.current&&Ci?Nn(!1):!et.current&&oa&&(Dn(at),Nn(!0));for(var nr=arguments.length,Or=new Array(nr>1?nr-1:0),tr=1;tr<nr;tr++)Or[tr-1]=arguments[tr];(Ft=Xe.onClick)===null||Ft===void 0||Ft.call.apply(Ft,[Xe,at].concat(Or))});var jt=pU(kn,Ci,O,Pt,V,W,gt,Nn),Hr=Ai.has("hover"),Ur=Ei.has("hover"),Li,Dr;Hr&&(yr("onMouseEnter",!0,L,function(at){Dn(at)}),yr("onPointerEnter",!0,L,function(at){Dn(at)}),Li=function(Ft){(kn||$r)&&Pt!==null&&Pt!==void 0&&Pt.contains(Ft.target)&&Nn(!0,L)},ue&&(mt.onMouseMove=function(at){var Ft;(Ft=Xe.onMouseMove)===null||Ft===void 0||Ft.call(Xe,at)})),Ur&&(yr("onMouseLeave",!1,H),yr("onPointerLeave",!1,H),Dr=function(){Nn(!1,H)}),Ai.has("focus")&&yr("onFocus",!0,I),Ei.has("focus")&&yr("onBlur",!1,z),Ai.has("contextMenu")&&(mt.onContextMenu=function(at){var Ft;et.current&&Ei.has("contextMenu")?Nn(!1):(Dn(at),Nn(!0)),at.preventDefault();for(var nr=arguments.length,Or=new Array(nr>1?nr-1:0),tr=1;tr<nr;tr++)Or[tr-1]=arguments[tr];(Ft=Xe.onContextMenu)===null||Ft===void 0||Ft.call.apply(Ft,[Xe,at].concat(Or))}),Tt&&(mt.className=Zt(Xe.className,Tt));var di=ke(ke({},Xe),mt),er={},Hn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Hn.forEach(function(at){$e[at]&&(er[at]=function(){for(var Ft,nr=arguments.length,Or=new Array(nr),tr=0;tr<nr;tr++)Or[tr]=arguments[tr];(Ft=di[at])===null||Ft===void 0||Ft.call.apply(Ft,[di].concat(Or)),$e[at].apply($e,Or)})});var uo=x.cloneElement(Se,ke(ke({},di),er)),Lr={x:aa,y:Si},pi=Le?ke({},Le!==!0?Le:{}):null;return x.createElement(x.Fragment,null,x.createElement(gd,{disabled:!kn,ref:ve,onResize:lo},x.createElement(Pk,{getTriggerDOMNode:_t},uo)),x.createElement(Ak.Provider,{value:Ut},x.createElement(Mk,{portal:t,ref:Jn,prefixCls:p,popup:J,className:Zt(oe,wi),style:X,target:O,onMouseEnter:Li,onMouseLeave:Dr,onPointerEnter:Li,zIndex:le,open:kn,keepDom:$r,fresh:G,onClick:De,onPointerDownCapture:jt,mask:V,motion:Ct,maskMotion:Dt,onVisibleChanged:hn,onPrepare:wa,forceRender:Z,autoDestroy:yt,getPopupContainer:K,align:Pi,arrow:pi,arrowPos:Lr,ready:fi,offsetX:Di,offsetY:Vt,offsetR:en,offsetB:Mi,onAlign:Cr,stretch:Re,targetWidth:Pn/Jr,targetHeight:Vr/Ba})))});return me.env.NODE_ENV!=="production"&&(r.displayName="Trigger"),r}const IC=hU(SC);var mU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},gU=function(r,i){return x.createElement(Vs,wn({},r,{ref:i,icon:mU}))},Uk=x.forwardRef(gU);me.env.NODE_ENV!=="production"&&(Uk.displayName="DownOutlined");function Bk(t){var r=t.children,i=t.prefixCls,o=t.id,u=t.overlayInnerStyle,p=t.className,f=t.style;return x.createElement("div",{className:Zt("".concat(i,"-content"),p),style:f},x.createElement("div",{className:"".concat(i,"-inner"),id:o,role:"tooltip",style:u},typeof r=="function"?r():r))}var Ad={shiftX:64,adjustY:1},$d={adjustX:1,shiftY:!0},Ho=[0,0],yU={left:{points:["cr","cl"],overflow:$d,offset:[-4,0],targetOffset:Ho},right:{points:["cl","cr"],overflow:$d,offset:[4,0],targetOffset:Ho},top:{points:["bc","tc"],overflow:Ad,offset:[0,-4],targetOffset:Ho},bottom:{points:["tc","bc"],overflow:Ad,offset:[0,4],targetOffset:Ho},topLeft:{points:["bl","tl"],overflow:Ad,offset:[0,-4],targetOffset:Ho},leftTop:{points:["tr","tl"],overflow:$d,offset:[-4,0],targetOffset:Ho},topRight:{points:["br","tr"],overflow:Ad,offset:[0,-4],targetOffset:Ho},rightTop:{points:["tl","tr"],overflow:$d,offset:[4,0],targetOffset:Ho},bottomRight:{points:["tr","br"],overflow:Ad,offset:[0,4],targetOffset:Ho},rightBottom:{points:["bl","br"],overflow:$d,offset:[4,0],targetOffset:Ho},bottomLeft:{points:["tl","bl"],overflow:Ad,offset:[0,4],targetOffset:Ho},leftBottom:{points:["br","bl"],overflow:$d,offset:[-4,0],targetOffset:Ho}},bU=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],SU=function(r,i){var o=r.overlayClassName,u=r.trigger,p=u===void 0?["hover"]:u,f=r.mouseEnterDelay,g=f===void 0?0:f,y=r.mouseLeaveDelay,S=y===void 0?.1:y,b=r.overlayStyle,R=r.prefixCls,_=R===void 0?"rc-tooltip":R,P=r.children,N=r.onVisibleChange,L=r.afterVisibleChange,D=r.transitionName,H=r.animation,I=r.motion,z=r.placement,V=z===void 0?"right":z,B=r.align,W=B===void 0?{}:B,K=r.destroyTooltipOnHide,Z=K===void 0?!1:K,ie=r.defaultVisible,Y=r.getTooltipContainer,J=r.overlayInnerStyle;r.arrowContent;var oe=r.overlay,X=r.id,ne=r.showArrow,de=ne===void 0?!0:ne,we=Rr(r,bU),ge=x.useRef(null);x.useImperativeHandle(i,function(){return ge.current});var le=ke({},we);"visible"in r&&(le.popupVisible=r.visible);var Re=function(){return x.createElement(Bk,{key:"content",prefixCls:_,id:X,overlayInnerStyle:J},oe)};return x.createElement(IC,wn({popupClassName:o,prefixCls:_,popup:Re,action:p,builtinPlacements:yU,popupPlacement:V,ref:ge,popupAlign:W,getPopupContainer:Y,onPopupVisibleChange:N,afterPopupVisibleChange:L,popupTransitionName:D,popupAnimation:H,popupMotion:I,defaultPopupVisible:ie,autoDestroy:Z,mouseLeaveDelay:S,popupStyle:b,mouseEnterDelay:g,arrow:de},le),P)};const EU=x.forwardRef(SU);function Vk(t){const{sizePopupArrow:r,borderRadiusXS:i,borderRadiusOuter:o}=t,u=r/2,p=0,f=u,g=o*1/Math.sqrt(2),y=u-o*(1-1/Math.sqrt(2)),S=u-i*(1/Math.sqrt(2)),b=o*(Math.sqrt(2)-1)+i*(1/Math.sqrt(2)),R=2*u-S,_=b,P=2*u-g,N=y,L=2*u-p,D=f,H=u*Math.sqrt(2)+o*(Math.sqrt(2)-2),I=o*(Math.sqrt(2)-1),z=`polygon(${I}px 100%, 50% ${I}px, ${2*u-I}px 100%, ${I}px 100%)`,V=`path('M ${p} ${f} A ${o} ${o} 0 0 0 ${g} ${y} L ${S} ${b} A ${i} ${i} 0 0 1 ${R} ${_} L ${P} ${N} A ${o} ${o} 0 0 0 ${L} ${D} Z')`;return{arrowShadowWidth:H,arrowPath:V,arrowPolygon:z}}const CU=(t,r,i)=>{const{sizePopupArrow:o,arrowPolygon:u,arrowPath:p,arrowShadowWidth:f,borderRadiusXS:g,calc:y}=t;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:y(o).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[u,p]},content:'""'},"&::after":{content:'""',position:"absolute",width:f,height:f,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${gn(g)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"}}},Hk=8;function zC(t){const{contentRadius:r,limitVerticalRadius:i}=t,o=r>12?r+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:i?Hk:o}}function ky(t,r){return t?r:{}}function Wk(t,r,i){const{componentCls:o,boxShadowPopoverArrow:u,arrowOffsetVertical:p,arrowOffsetHorizontal:f}=t,{arrowDistance:g=0,arrowPlacement:y={left:!0,right:!0,top:!0,bottom:!0}}=i||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},CU(t,r,u)),{"&:before":{background:r}})]},ky(!!y.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:g,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":f,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:f}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${gn(f)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:f}}}})),ky(!!y.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:g,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":f,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:f}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${gn(f)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:f}}}})),ky(!!y.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:g},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:p},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:p}})),ky(!!y.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:g},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:p},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:p}}))}}function wU(t,r,i,o){if(o===!1)return{adjustX:!1,adjustY:!1};const u=o&&typeof o=="object"?o:{},p={};switch(t){case"top":case"bottom":p.shiftX=r.arrowOffsetHorizontal*2+i,p.shiftY=!0,p.adjustY=!0;break;case"left":case"right":p.shiftY=r.arrowOffsetVertical*2+i,p.shiftX=!0,p.adjustX=!0;break}const f=Object.assign(Object.assign({},p),u);return f.shiftX||(f.adjustX=!0),f.shiftY||(f.adjustY=!0),f}const qk={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},xU={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},RU=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Kk(t){const{arrowWidth:r,autoAdjustOverflow:i,arrowPointAtCenter:o,offset:u,borderRadius:p,visibleFirst:f}=t,g=r/2,y={};return Object.keys(qk).forEach(S=>{const b=o&&xU[S]||qk[S],R=Object.assign(Object.assign({},b),{offset:[0,0],dynamicInset:!0});switch(y[S]=R,RU.has(S)&&(R.autoArrow=!1),S){case"top":case"topLeft":case"topRight":R.offset[1]=-g-u;break;case"bottom":case"bottomLeft":case"bottomRight":R.offset[1]=g+u;break;case"left":case"leftTop":case"leftBottom":R.offset[0]=-g-u;break;case"right":case"rightTop":case"rightBottom":R.offset[0]=g+u;break}const _=zC({contentRadius:p,limitVerticalRadius:!0});if(o)switch(S){case"topLeft":case"bottomLeft":R.offset[0]=-_.arrowOffsetHorizontal-g;break;case"topRight":case"bottomRight":R.offset[0]=_.arrowOffsetHorizontal+g;break;case"leftTop":case"rightTop":R.offset[1]=-_.arrowOffsetHorizontal-g;break;case"leftBottom":case"rightBottom":R.offset[1]=_.arrowOffsetHorizontal+g;break}R.overflow=wU(S,_,r,i),f&&(R.htmlRegion="visibleFirst")}),y}const TU=t=>{const{componentCls:r,tooltipMaxWidth:i,tooltipColor:o,tooltipBg:u,tooltipBorderRadius:p,zIndexPopup:f,controlHeight:g,boxShadowSecondary:y,paddingSM:S,paddingXS:b}=t;return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},oh(t)),{position:"absolute",zIndex:f,display:"block",width:"max-content",maxWidth:i,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":u,[`${r}-inner`]:{minWidth:"1em",minHeight:g,padding:`${gn(t.calc(S).div(2).equal())} ${gn(b)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:u,borderRadius:p,boxShadow:y,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:t.min(p,Hk)}},[`${r}-content`]:{position:"relative"}}),sI(t,(R,_)=>{let{darkColor:P}=_;return{[`&${r}-${R}`]:{[`${r}-inner`]:{backgroundColor:P},[`${r}-arrow`]:{"--antd-arrow-background-color":P}}}})),{"&-rtl":{direction:"rtl"}})},Wk(t,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]},OU=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70},zC({contentRadius:t.borderRadius,limitVerticalRadius:!0})),Vk(Wu(t,{borderRadiusOuter:Math.min(t.borderRadiusOuter,4)}))),Yk=function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return lh("Tooltip",o=>{const{borderRadius:u,colorTextLightSolid:p,colorBgSpotlight:f}=o,g=Wu(o,{tooltipMaxWidth:250,tooltipColor:p,tooltipBorderRadius:u,tooltipBg:f});return[TU(g),LC(o,"zoom-big-fast")]},OU,{resetStyle:!1,injectStyle:r})(t)},_U=my.map(t=>`${t}-inverse`);function kU(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Lt(_U),Lt(my)).includes(t):my.includes(t)}function Gk(t,r){const i=kU(r),o=Zt({[`${t}-${r}`]:r&&i}),u={},p={};return r&&!i&&(u.background=r,p["--antd-arrow-background-color"]=r),{className:o,overlayStyle:u,arrowStyle:p}}const NU=t=>{const{prefixCls:r,className:i,placement:o="top",title:u,color:p,overlayInnerStyle:f}=t,{getPrefixCls:g}=x.useContext(ia),y=g("tooltip",r),[S,b,R]=Yk(y),_=Gk(y,p),P=_.arrowStyle,N=Object.assign(Object.assign({},f),_.overlayStyle),L=Zt(b,R,y,`${y}-pure`,`${y}-placement-${o}`,i,_.className);return S(x.createElement("div",{className:L,style:P},x.createElement("div",{className:`${y}-arrow`}),x.createElement(Bk,Object.assign({},t,{className:b,prefixCls:y,overlayInnerStyle:N}),u)))};var DU=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};const jC=x.forwardRef((t,r)=>{var i,o;const{prefixCls:u,openClassName:p,getTooltipContainer:f,overlayClassName:g,color:y,overlayInnerStyle:S,children:b,afterOpenChange:R,afterVisibleChange:_,destroyTooltipOnHide:P,arrow:N=!0,title:L,overlay:D,builtinPlacements:H,arrowPointAtCenter:I=!1,autoAdjustOverflow:z=!0}=t,V=!!N,[,B]=Wc(),{getPopupContainer:W,getPrefixCls:K,direction:Z}=x.useContext(ia),ie=Sl("Tooltip"),Y=x.useRef(null),J=()=>{var tt;(tt=Y.current)===null||tt===void 0||tt.forceAlign()};x.useImperativeHandle(r,()=>{var tt;return{forceAlign:J,forcePopupAlign:()=>{ie.deprecated(!1,"forcePopupAlign","forceAlign"),J()},nativeElement:(tt=Y.current)===null||tt===void 0?void 0:tt.nativeElement}}),me.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(tt=>{let[an,St]=tt;ie.deprecated(!(an in t),an,St)}),me.env.NODE_ENV!=="production"&&ie(!P||typeof P=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),me.env.NODE_ENV!=="production"&&ie(!N||typeof N=="boolean"||!("arrowPointAtCenter"in N),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[oe,X]=Hc(!1,{value:(i=t.open)!==null&&i!==void 0?i:t.visible,defaultValue:(o=t.defaultOpen)!==null&&o!==void 0?o:t.defaultVisible}),ne=!L&&!D&&L!==0,de=tt=>{var an,St;X(ne?!1:tt),ne||((an=t.onOpenChange)===null||an===void 0||an.call(t,tt),(St=t.onVisibleChange)===null||St===void 0||St.call(t,tt))},we=x.useMemo(()=>{var tt,an;let St=I;return typeof N=="object"&&(St=(an=(tt=N.pointAtCenter)!==null&&tt!==void 0?tt:N.arrowPointAtCenter)!==null&&an!==void 0?an:I),H||Kk({arrowPointAtCenter:St,autoAdjustOverflow:z,arrowWidth:V?B.sizePopupArrow:0,borderRadius:B.borderRadius,offset:B.marginXXS,visibleFirst:!0})},[I,N,H,B]),ge=x.useMemo(()=>L===0?L:D||L||"",[D,L]),le=x.createElement(Sk,{space:!0},typeof ge=="function"?ge():ge),{getPopupContainer:Re,placement:pe="top",mouseEnterDelay:G=.1,mouseLeaveDelay:ue=.1,overlayStyle:De,rootClassName:ye}=t,Le=DU(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),We=K("tooltip",u),Ue=K(),qe=t["data-popover-inject"];let Qe=oe;!("open"in t)&&!("visible"in t)&&ne&&(Qe=!1);const ft=x.isValidElement(b)&&!rz(b)?b:x.createElement("span",null,b),rt=ft.props,Tt=!rt.className||typeof rt.className=="string"?Zt(rt.className,p||`${We}-open`):rt.className,[_t,$e,yt]=Yk(We,!qe),st=Gk(We,y),sn=st.arrowStyle,cn=Object.assign(Object.assign({},S),st.overlayStyle),pn=Zt(g,{[`${We}-rtl`]:Z==="rtl"},st.className,ye,$e,yt),[rn,bt]=gC("Tooltip",Le.zIndex),Ut=x.createElement(EU,Object.assign({},Le,{zIndex:rn,showArrow:V,placement:pe,mouseEnterDelay:G,mouseLeaveDelay:ue,prefixCls:We,overlayClassName:pn,overlayStyle:Object.assign(Object.assign({},sn),De),getTooltipContainer:Re||f||W,ref:Y,builtinPlacements:we,overlay:le,visible:Qe,onVisibleChange:de,afterVisibleChange:R??_,overlayInnerStyle:cn,arrowContent:x.createElement("span",{className:`${We}-arrow-content`}),motion:{motionName:cz(Ue,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!P}),Qe?Kc(ft,{className:Tt}):ft);return _t(x.createElement(xy.Provider,{value:bt},Ut))});me.env.NODE_ENV!=="production"&&(jC.displayName="Tooltip"),jC._InternalPanelDoNotUseOrYouWillBeFired=NU;var MU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},PU=function(r,i){return x.createElement(Vs,wn({},r,{ref:i,icon:MU}))},Ny=x.forwardRef(PU);me.env.NODE_ENV!=="production"&&(Ny.displayName="RightOutlined");var AU=wl.ESC,$U=wl.TAB;function LU(t){var r=t.visible,i=t.triggerRef,o=t.onVisibleChange,u=t.autoFocus,p=t.overlayRef,f=x.useRef(!1),g=function(){if(r){var R,_;(R=i.current)===null||R===void 0||(_=R.focus)===null||_===void 0||_.call(R),o?.(!1)}},y=function(){var R;return(R=p.current)!==null&&R!==void 0&&R.focus?(p.current.focus(),f.current=!0,!0):!1},S=function(R){switch(R.keyCode){case AU:g();break;case $U:{var _=!1;f.current||(_=y()),_?R.preventDefault():g();break}}};x.useEffect(function(){return r?(window.addEventListener("keydown",S),u&&hl(y,3),function(){window.removeEventListener("keydown",S),f.current=!1}):function(){f.current=!1}},[r])}var FU=x.forwardRef(function(t,r){var i=t.overlay,o=t.arrow,u=t.prefixCls,p=x.useMemo(function(){var g;return typeof i=="function"?g=i():g=i,g},[i]),f=Vg(r,Bv(p));return _n.createElement(_n.Fragment,null,o&&_n.createElement("div",{className:"".concat(u,"-arrow")}),_n.cloneElement(p,{ref:Ic(p)?f:void 0}))}),Ld={adjustX:1,adjustY:1},Fd=[0,0],IU={topLeft:{points:["bl","tl"],overflow:Ld,offset:[0,-4],targetOffset:Fd},top:{points:["bc","tc"],overflow:Ld,offset:[0,-4],targetOffset:Fd},topRight:{points:["br","tr"],overflow:Ld,offset:[0,-4],targetOffset:Fd},bottomLeft:{points:["tl","bl"],overflow:Ld,offset:[0,4],targetOffset:Fd},bottom:{points:["tc","bc"],overflow:Ld,offset:[0,4],targetOffset:Fd},bottomRight:{points:["tr","br"],overflow:Ld,offset:[0,4],targetOffset:Fd}},zU=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function jU(t,r){var i,o=t.arrow,u=o===void 0?!1:o,p=t.prefixCls,f=p===void 0?"rc-dropdown":p,g=t.transitionName,y=t.animation,S=t.align,b=t.placement,R=b===void 0?"bottomLeft":b,_=t.placements,P=_===void 0?IU:_,N=t.getPopupContainer,L=t.showAction,D=t.hideAction,H=t.overlayClassName,I=t.overlayStyle,z=t.visible,V=t.trigger,B=V===void 0?["hover"]:V,W=t.autoFocus,K=t.overlay,Z=t.children,ie=t.onVisibleChange,Y=Rr(t,zU),J=_n.useState(),oe=Ge(J,2),X=oe[0],ne=oe[1],de="visible"in t?z:X,we=_n.useRef(null),ge=_n.useRef(null),le=_n.useRef(null);_n.useImperativeHandle(r,function(){return we.current});var Re=function(qe){ne(qe),ie?.(qe)};LU({visible:de,triggerRef:le,onVisibleChange:Re,autoFocus:W,overlayRef:ge});var pe=function(qe){var Qe=t.onOverlayClick;ne(!1),Qe&&Qe(qe)},G=function(){return _n.createElement(FU,{ref:ge,overlay:K,prefixCls:f,arrow:u})},ue=function(){return typeof K=="function"?G:G()},De=function(){var qe=t.minOverlayWidthMatchTrigger,Qe=t.alignPoint;return"minOverlayWidthMatchTrigger"in t?qe:!Qe},ye=function(){var qe=t.openClassName;return qe!==void 0?qe:"".concat(f,"-open")},Le=_n.cloneElement(Z,{className:Zt((i=Z.props)===null||i===void 0?void 0:i.className,de&&ye()),ref:Ic(Z)?Vg(le,Bv(Z)):void 0}),We=D;return!We&&B.indexOf("contextMenu")!==-1&&(We=["click"]),_n.createElement(IC,wn({builtinPlacements:P},Y,{prefixCls:f,ref:we,popupClassName:Zt(H,he({},"".concat(f,"-show-arrow"),u)),popupStyle:I,action:B,showAction:L,hideAction:We,popupPlacement:R,popupAlign:S,popupTransitionName:g,popupAnimation:y,popupVisible:de,stretch:De()?"minWidth":"",popup:ue(),onPopupVisibleChange:Re,onPopupClick:pe,getPopupContainer:N}),Le)}const UU=_n.forwardRef(jU);var Xk=x.createContext(null);function Qk(t,r){return t===void 0?null:"".concat(t,"-").concat(r)}function Jk(t){var r=x.useContext(Xk);return Qk(r,t)}var BU=["children","locked"],Rl=x.createContext(null);function VU(t,r){var i=ke({},t);return Object.keys(r).forEach(function(o){var u=r[o];u!==void 0&&(i[o]=u)}),i}function bh(t){var r=t.children,i=t.locked,o=Rr(t,BU),u=x.useContext(Rl),p=Bg(function(){return VU(u,o)},[u,o],function(f,g){return!i&&(f[0]!==g[0]||!Kv(f[1],g[1],!0))});return x.createElement(Rl.Provider,{value:p},r)}var HU=[],Zk=x.createContext(null);function Dy(){return x.useContext(Zk)}var eN=x.createContext(HU);function Id(t){var r=x.useContext(eN);return x.useMemo(function(){return t!==void 0?[].concat(Lt(r),[t]):r},[r,t])}var tN=x.createContext(null),UC=x.createContext({});function nN(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(G_(t)){var i=t.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(i)||t.isContentEditable||i==="a"&&!!t.getAttribute("href"),u=t.getAttribute("tabindex"),p=Number(u),f=null;return u&&!Number.isNaN(p)?f=p:o&&f===null&&(f=0),o&&t.disabled&&(f=null),f!==null&&(f>=0||r&&f<0)}return!1}function WU(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=Lt(t.querySelectorAll("*")).filter(function(o){return nN(o,r)});return nN(t,r)&&i.unshift(t),i}var BC=wl.LEFT,VC=wl.RIGHT,HC=wl.UP,My=wl.DOWN,Py=wl.ENTER,rN=wl.ESC,Sh=wl.HOME,Eh=wl.END,iN=[HC,My,BC,VC];function qU(t,r,i,o){var u,p,f,g,y="prev",S="next",b="children",R="parent";if(t==="inline"&&o===Py)return{inlineTrigger:!0};var _=(u={},he(u,HC,y),he(u,My,S),u),P=(p={},he(p,BC,i?S:y),he(p,VC,i?y:S),he(p,My,b),he(p,Py,b),p),N=(f={},he(f,HC,y),he(f,My,S),he(f,Py,b),he(f,rN,R),he(f,BC,i?b:R),he(f,VC,i?R:b),f),L={inline:_,horizontal:P,vertical:N,inlineSub:_,horizontalSub:N,verticalSub:N},D=(g=L["".concat(t).concat(r?"":"Sub")])===null||g===void 0?void 0:g[o];switch(D){case y:return{offset:-1,sibling:!0};case S:return{offset:1,sibling:!0};case R:return{offset:-1,sibling:!1};case b:return{offset:1,sibling:!1};default:return null}}function KU(t){for(var r=t;r;){if(r.getAttribute("data-menu-list"))return r;r=r.parentElement}return null}function YU(t,r){for(var i=t||document.activeElement;i;){if(r.has(i))return i;i=i.parentElement}return null}function WC(t,r){var i=WU(t,!0);return i.filter(function(o){return r.has(o)})}function aN(t,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!t)return null;var u=WC(t,r),p=u.length,f=u.findIndex(function(g){return i===g});return o<0?f===-1?f=p-1:f-=1:o>0&&(f+=1),f=(f+p)%p,u[f]}var qC=function(r,i){var o=new Set,u=new Map,p=new Map;return r.forEach(function(f){var g=document.querySelector("[data-menu-id='".concat(Qk(i,f),"']"));g&&(o.add(g),p.set(g,f),u.set(f,g))}),{elements:o,key2element:u,element2key:p}};function GU(t,r,i,o,u,p,f,g,y,S){var b=x.useRef(),R=x.useRef();R.current=r;var _=function(){hl.cancel(b.current)};return x.useEffect(function(){return function(){_()}},[]),function(P){var N=P.which;if([].concat(iN,[Py,rN,Sh,Eh]).includes(N)){var L=p(),D=qC(L,o),H=D,I=H.elements,z=H.key2element,V=H.element2key,B=z.get(r),W=YU(B,I),K=V.get(W),Z=qU(t,f(K,!0).length===1,i,N);if(!Z&&N!==Sh&&N!==Eh)return;(iN.includes(N)||[Sh,Eh].includes(N))&&P.preventDefault();var ie=function(ge){if(ge){var le=ge,Re=ge.querySelector("a");Re!=null&&Re.getAttribute("href")&&(le=Re);var pe=V.get(ge);g(pe),_(),b.current=hl(function(){R.current===pe&&le.focus()})}};if([Sh,Eh].includes(N)||Z.sibling||!W){var Y;!W||t==="inline"?Y=u.current:Y=KU(W);var J,oe=WC(Y,I);N===Sh?J=oe[0]:N===Eh?J=oe[oe.length-1]:J=aN(Y,I,W,Z.offset),ie(J)}else if(Z.inlineTrigger)y(K);else if(Z.offset>0)y(K,!0),_(),b.current=hl(function(){D=qC(L,o);var we=W.getAttribute("aria-controls"),ge=document.getElementById(we),le=aN(ge,D.elements);ie(le)},5);else if(Z.offset<0){var X=f(K,!0),ne=X[X.length-2],de=z.get(ne);y(ne,!1),ie(de)}}S?.(P)}}function XU(t){Promise.resolve().then(t)}var KC="__RC_UTIL_PATH_SPLIT__",oN=function(r){return r.join(KC)},QU=function(r){return r.split(KC)},YC="rc-menu-more";function JU(){var t=x.useState({}),r=Ge(t,2),i=r[1],o=x.useRef(new Map),u=x.useRef(new Map),p=x.useState([]),f=Ge(p,2),g=f[0],y=f[1],S=x.useRef(0),b=x.useRef(!1),R=function(){b.current||i({})},_=x.useCallback(function(z,V){me.env.NODE_ENV!=="production"&&ur(!o.current.has(z),"Duplicated key '".concat(z,"' used in Menu by path [").concat(V.join(" > "),"]"));var B=oN(V);u.current.set(B,z),o.current.set(z,B),S.current+=1;var W=S.current;XU(function(){W===S.current&&R()})},[]),P=x.useCallback(function(z,V){var B=oN(V);u.current.delete(B),o.current.delete(z)},[]),N=x.useCallback(function(z){y(z)},[]),L=x.useCallback(function(z,V){var B=o.current.get(z)||"",W=QU(B);return V&&g.includes(W[0])&&W.unshift(YC),W},[g]),D=x.useCallback(function(z,V){return z.filter(function(B){return B!==void 0}).some(function(B){var W=L(B,!0);return W.includes(V)})},[L]),H=function(){var V=Lt(o.current.keys());return g.length&&V.push(YC),V},I=x.useCallback(function(z){var V="".concat(o.current.get(z)).concat(KC),B=new Set;return Lt(u.current.keys()).forEach(function(W){W.startsWith(V)&&B.add(u.current.get(W))}),B},[]);return x.useEffect(function(){return function(){b.current=!0}},[]),{registerPath:_,unregisterPath:P,refreshOverflowKeys:N,isSubPathKey:D,getKeyPath:L,getKeys:H,getSubPathKeys:I}}function Ch(t){var r=x.useRef(t);r.current=t;var i=x.useCallback(function(){for(var o,u=arguments.length,p=new Array(u),f=0;f<u;f++)p[f]=arguments[f];return(o=r.current)===null||o===void 0?void 0:o.call.apply(o,[r].concat(p))},[]);return t?i:void 0}var ZU=Math.random().toFixed(5).toString().slice(2),lN=0;function e3(t){var r=Hc(t,{value:t}),i=Ge(r,2),o=i[0],u=i[1];return x.useEffect(function(){lN+=1;var p=me.env.NODE_ENV==="test"?"test":"".concat(ZU,"-").concat(lN);u("rc-menu-uuid-".concat(p))},[]),o}function uN(t,r,i,o){var u=x.useContext(Rl),p=u.activeKey,f=u.onActive,g=u.onInactive,y={active:p===t};return r||(y.onMouseEnter=function(S){i?.({key:t,domEvent:S}),f(t)},y.onMouseLeave=function(S){o?.({key:t,domEvent:S}),g(t)}),y}function sN(t){var r=x.useContext(Rl),i=r.mode,o=r.rtl,u=r.inlineIndent;if(i!=="inline")return null;var p=t;return o?{paddingRight:p*u}:{paddingLeft:p*u}}function cN(t){var r=t.icon,i=t.props,o=t.children,u;return r===null||r===!1?null:(typeof r=="function"?u=x.createElement(r,ke({},i)):typeof r!="boolean"&&(u=r),u||o||null)}var t3=["item"];function Ay(t){var r=t.item,i=Rr(t,t3);return Object.defineProperty(i,"item",{get:function(){return ur(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),r}}),i}var n3=["title","attribute","elementRef"],r3=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],i3=["active"],a3=function(t){Ls(i,t);var r=Fs(i);function i(){return ea(this,i),r.apply(this,arguments)}return ta(i,[{key:"render",value:function(){var u=this.props,p=u.title,f=u.attribute,g=u.elementRef,y=Rr(u,n3),S=zc(y,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ur(!f,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),x.createElement(qu.Item,wn({},f,{title:typeof p=="string"?p:void 0},S,{ref:g}))}}]),i}(x.Component),o3=x.forwardRef(function(t,r){var i,o=t.style,u=t.className,p=t.eventKey,f=t.warnKey,g=t.disabled,y=t.itemIcon,S=t.children,b=t.role,R=t.onMouseEnter,_=t.onMouseLeave,P=t.onClick,N=t.onKeyDown,L=t.onFocus,D=Rr(t,r3),H=Jk(p),I=x.useContext(Rl),z=I.prefixCls,V=I.onItemClick,B=I.disabled,W=I.overflowDisabled,K=I.itemIcon,Z=I.selectedKeys,ie=I.onActive,Y=x.useContext(UC),J=Y._internalRenderMenuItem,oe="".concat(z,"-item"),X=x.useRef(),ne=x.useRef(),de=B||g,we=Uv(r,ne),ge=Id(p);me.env.NODE_ENV!=="production"&&f&&ur(!1,"MenuItem should not leave undefined `key`.");var le=function(rt){return{key:p,keyPath:Lt(ge).reverse(),item:X.current,domEvent:rt}},Re=y||K,pe=uN(p,de,R,_),G=pe.active,ue=Rr(pe,i3),De=Z.includes(p),ye=sN(ge.length),Le=function(rt){if(!de){var Tt=le(rt);P?.(Ay(Tt)),V(Tt)}},We=function(rt){if(N?.(rt),rt.which===wl.ENTER){var Tt=le(rt);P?.(Ay(Tt)),V(Tt)}},Ue=function(rt){ie(p),L?.(rt)},qe={};t.role==="option"&&(qe["aria-selected"]=De);var Qe=x.createElement(a3,wn({ref:X,elementRef:we,role:b===null?"none":b||"menuitem",tabIndex:g?null:-1,"data-menu-id":W&&H?null:H},D,ue,qe,{component:"li","aria-disabled":g,style:ke(ke({},ye),o),className:Zt(oe,(i={},he(i,"".concat(oe,"-active"),G),he(i,"".concat(oe,"-selected"),De),he(i,"".concat(oe,"-disabled"),de),i),u),onClick:Le,onKeyDown:We,onFocus:Ue}),S,x.createElement(cN,{props:ke(ke({},t),{},{isSelected:De}),icon:Re}));return J&&(Qe=J(Qe,t,{selected:De})),Qe});function l3(t,r){var i=t.eventKey,o=Dy(),u=Id(i);return x.useEffect(function(){if(o)return o.registerPath(i,u),function(){o.unregisterPath(i,u)}},[u]),o?null:x.createElement(o3,wn({},t,{ref:r}))}const $y=x.forwardRef(l3);var u3=["className","children"],s3=function(r,i){var o=r.className,u=r.children,p=Rr(r,u3),f=x.useContext(Rl),g=f.prefixCls,y=f.mode,S=f.rtl;return x.createElement("ul",wn({className:Zt(g,S&&"".concat(g,"-rtl"),"".concat(g,"-sub"),"".concat(g,"-").concat(y==="inline"?"inline":"vertical"),o),role:"menu"},p,{"data-menu-list":!0,ref:i}),u)},GC=x.forwardRef(s3);GC.displayName="SubMenuList";function XC(t,r){return Iu(t).map(function(i,o){if(x.isValidElement(i)){var u,p,f=i.key,g=(u=(p=i.props)===null||p===void 0?void 0:p.eventKey)!==null&&u!==void 0?u:f,y=g==null;y&&(g="tmp_key-".concat([].concat(Lt(r),[o]).join("-")));var S={key:g,eventKey:g};return me.env.NODE_ENV!=="production"&&y&&(S.warnKey=!0),x.cloneElement(i,S)}return i})}var Ca={adjustX:1,adjustY:1},c3={topLeft:{points:["bl","tl"],overflow:Ca},topRight:{points:["br","tr"],overflow:Ca},bottomLeft:{points:["tl","bl"],overflow:Ca},bottomRight:{points:["tr","br"],overflow:Ca},leftTop:{points:["tr","tl"],overflow:Ca},leftBottom:{points:["br","bl"],overflow:Ca},rightTop:{points:["tl","tr"],overflow:Ca},rightBottom:{points:["bl","br"],overflow:Ca}},f3={topLeft:{points:["bl","tl"],overflow:Ca},topRight:{points:["br","tr"],overflow:Ca},bottomLeft:{points:["tl","bl"],overflow:Ca},bottomRight:{points:["tr","br"],overflow:Ca},rightTop:{points:["tr","tl"],overflow:Ca},rightBottom:{points:["br","bl"],overflow:Ca},leftTop:{points:["tl","tr"],overflow:Ca},leftBottom:{points:["bl","br"],overflow:Ca}};function fN(t,r,i){if(r)return r;if(i)return i[t]||i.other}var d3={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function p3(t){var r=t.prefixCls,i=t.visible,o=t.children,u=t.popup,p=t.popupStyle,f=t.popupClassName,g=t.popupOffset,y=t.disabled,S=t.mode,b=t.onVisibleChange,R=x.useContext(Rl),_=R.getPopupContainer,P=R.rtl,N=R.subMenuOpenDelay,L=R.subMenuCloseDelay,D=R.builtinPlacements,H=R.triggerSubMenuAction,I=R.forceSubMenuRender,z=R.rootClassName,V=R.motion,B=R.defaultMotions,W=x.useState(!1),K=Ge(W,2),Z=K[0],ie=K[1],Y=ke(P?ke({},f3):ke({},c3),D),J=d3[S],oe=fN(S,V,B),X=x.useRef(oe);S!=="inline"&&(X.current=oe);var ne=ke(ke({},X.current),{},{leavedClassName:"".concat(r,"-hidden"),removeOnLeave:!1,motionAppear:!0}),de=x.useRef();return x.useEffect(function(){return de.current=hl(function(){ie(i)}),function(){hl.cancel(de.current)}},[i]),x.createElement(IC,{prefixCls:r,popupClassName:Zt("".concat(r,"-popup"),he({},"".concat(r,"-rtl"),P),f,z),stretch:S==="horizontal"?"minWidth":null,getPopupContainer:_,builtinPlacements:Y,popupPlacement:J,popupVisible:Z,popup:u,popupStyle:p,popupAlign:g&&{offset:g},action:y?[]:[H],mouseEnterDelay:N,mouseLeaveDelay:L,onPopupVisibleChange:b,forceRender:I,popupMotion:ne,fresh:!0},o)}function v3(t){var r=t.id,i=t.open,o=t.keyPath,u=t.children,p="inline",f=x.useContext(Rl),g=f.prefixCls,y=f.forceSubMenuRender,S=f.motion,b=f.defaultMotions,R=f.mode,_=x.useRef(!1);_.current=R===p;var P=x.useState(!_.current),N=Ge(P,2),L=N[0],D=N[1],H=_.current?i:!1;x.useEffect(function(){_.current&&D(!1)},[R]);var I=ke({},fN(p,S,b));o.length>1&&(I.motionAppear=!1);var z=I.onVisibleChanged;return I.onVisibleChanged=function(V){return!_.current&&!V&&D(!0),z?.(V)},L?null:x.createElement(bh,{mode:p,locked:!_.current},x.createElement(Cy,wn({visible:H},I,{forceRender:y,removeOnLeave:!1,leavedClassName:"".concat(g,"-hidden")}),function(V){var B=V.className,W=V.style;return x.createElement(GC,{id:r,className:B,style:W},u)}))}var h3=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],m3=["active"],g3=x.forwardRef(function(t,r){var i,o=t.style,u=t.className,p=t.title,f=t.eventKey,g=t.warnKey,y=t.disabled,S=t.internalPopupClose,b=t.children,R=t.itemIcon,_=t.expandIcon,P=t.popupClassName,N=t.popupOffset,L=t.popupStyle,D=t.onClick,H=t.onMouseEnter,I=t.onMouseLeave,z=t.onTitleClick,V=t.onTitleMouseEnter,B=t.onTitleMouseLeave,W=Rr(t,h3),K=Jk(f),Z=x.useContext(Rl),ie=Z.prefixCls,Y=Z.mode,J=Z.openKeys,oe=Z.disabled,X=Z.overflowDisabled,ne=Z.activeKey,de=Z.selectedKeys,we=Z.itemIcon,ge=Z.expandIcon,le=Z.onItemClick,Re=Z.onOpenChange,pe=Z.onActive,G=x.useContext(UC),ue=G._internalRenderSubMenuItem,De=x.useContext(tN),ye=De.isSubPathKey,Le=Id(),We="".concat(ie,"-submenu"),Ue=oe||y,qe=x.useRef(),Qe=x.useRef();me.env.NODE_ENV!=="production"&&g&&ur(!1,"SubMenu should not leave undefined `key`.");var ft=R??we,rt=_??ge,Tt=J.includes(f),_t=!X&&Tt,$e=ye(de,f),yt=uN(f,Ue,V,B),st=yt.active,sn=Rr(yt,m3),cn=x.useState(!1),pn=Ge(cn,2),rn=pn[0],bt=pn[1],Ut=function(Xe){Ue||bt(Xe)},tt=function(Xe){Ut(!0),H?.({key:f,domEvent:Xe})},an=function(Xe){Ut(!1),I?.({key:f,domEvent:Xe})},St=x.useMemo(function(){return st||(Y!=="inline"?rn||ye([ne],f):!1)},[Y,st,ne,rn,f,ye]),Pt=sN(Le.length),Un=function(Xe){Ue||(z?.({key:f,domEvent:Xe}),Y==="inline"&&Re(f,!Tt))},Cn=Ch(function(Se){D?.(Ay(Se)),le(Se)}),Jn=function(Xe){Y!=="inline"&&Re(f,Xe)},A=function(){pe(f)},w=K&&"".concat(K,"-popup"),O=x.createElement("div",wn({role:"menuitem",style:Pt,className:"".concat(We,"-title"),tabIndex:Ue?null:-1,ref:qe,title:typeof p=="string"?p:null,"data-menu-id":X&&K?null:K,"aria-expanded":_t,"aria-haspopup":!0,"aria-controls":w,"aria-disabled":Ue,onClick:Un,onFocus:A},sn),p,x.createElement(cN,{icon:Y!=="horizontal"?rt:void 0,props:ke(ke({},t),{},{isOpen:_t,isSubMenu:!0})},x.createElement("i",{className:"".concat(We,"-arrow")}))),U=x.useRef(Y);if(Y!=="inline"&&Le.length>1?U.current="vertical":U.current=Y,!X){var ee=U.current;O=x.createElement(p3,{mode:ee,prefixCls:We,visible:!S&&_t&&Y!=="inline",popupClassName:P,popupOffset:N,popupStyle:L,popup:x.createElement(bh,{mode:ee==="horizontal"?"vertical":ee},x.createElement(GC,{id:w,ref:Qe},b)),disabled:Ue,onVisibleChange:Jn},O)}var ve=x.createElement(qu.Item,wn({ref:r,role:"none"},W,{component:"li",style:o,className:Zt(We,"".concat(We,"-").concat(Y),u,(i={},he(i,"".concat(We,"-open"),_t),he(i,"".concat(We,"-active"),St),he(i,"".concat(We,"-selected"),$e),he(i,"".concat(We,"-disabled"),Ue),i)),onMouseEnter:tt,onMouseLeave:an}),O,!X&&x.createElement(v3,{id:w,open:_t,keyPath:Le},b));return ue&&(ve=ue(ve,t,{selected:$e,active:St,open:_t,disabled:Ue})),x.createElement(bh,{onItemClick:Cn,mode:Y==="horizontal"?"vertical":Y,itemIcon:ft,expandIcon:rt},ve)}),wh=x.forwardRef(function(t,r){var i=t.eventKey,o=t.children,u=Id(i),p=XC(o,u),f=Dy();x.useEffect(function(){if(f)return f.registerPath(i,u),function(){f.unregisterPath(i,u)}},[u]);var g;return f?g=p:g=x.createElement(g3,wn({ref:r},t),p),x.createElement(eN.Provider,{value:u},g)});me.env.NODE_ENV!=="production"&&(wh.displayName="SubMenu");function QC(t){var r=t.className,i=t.style,o=x.useContext(Rl),u=o.prefixCls,p=Dy();return p?null:x.createElement("li",{role:"separator",className:Zt("".concat(u,"-item-divider"),r),style:i})}var y3=["className","title","eventKey","children"],b3=x.forwardRef(function(t,r){var i=t.className,o=t.title;t.eventKey;var u=t.children,p=Rr(t,y3),f=x.useContext(Rl),g=f.prefixCls,y="".concat(g,"-item-group");return x.createElement("li",wn({ref:r,role:"presentation"},p,{onClick:function(b){return b.stopPropagation()},className:Zt(y,i)}),x.createElement("div",{role:"presentation",className:"".concat(y,"-title"),title:typeof o=="string"?o:void 0},o),x.createElement("ul",{role:"group",className:"".concat(y,"-list")},u))}),Ly=x.forwardRef(function(t,r){var i=t.eventKey,o=t.children,u=Id(i),p=XC(o,u),f=Dy();return f?p:x.createElement(b3,wn({ref:r},zc(t,["warnKey"])),p)});me.env.NODE_ENV!=="production"&&(Ly.displayName="MenuItemGroup");var S3=["label","children","key","type"];function JC(t,r){var i=r.item,o=r.group,u=r.submenu,p=r.divider;return(t||[]).map(function(f,g){if(f&&un(f)==="object"){var y=f,S=y.label,b=y.children,R=y.key,_=y.type,P=Rr(y,S3),N=R??"tmp-".concat(g);return b||_==="group"?_==="group"?x.createElement(o,wn({key:N},P,{title:S}),JC(b,r)):x.createElement(u,wn({key:N},P,{title:S}),JC(b,r)):_==="divider"?x.createElement(p,wn({key:N},P)):x.createElement(i,wn({key:N},P),S)}return null}).filter(function(f){return f})}function dN(t,r,i,o){var u=t,p=ke({divider:QC,item:$y,group:Ly,submenu:wh},o);return r&&(u=JC(r,p)),XC(u,i)}var E3=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Xc=[],C3=x.forwardRef(function(t,r){var i,o,u=t,p=u.prefixCls,f=p===void 0?"rc-menu":p,g=u.rootClassName,y=u.style,S=u.className,b=u.tabIndex,R=b===void 0?0:b,_=u.items,P=u.children,N=u.direction,L=u.id,D=u.mode,H=D===void 0?"vertical":D,I=u.inlineCollapsed,z=u.disabled,V=u.disabledOverflow,B=u.subMenuOpenDelay,W=B===void 0?.1:B,K=u.subMenuCloseDelay,Z=K===void 0?.1:K,ie=u.forceSubMenuRender,Y=u.defaultOpenKeys,J=u.openKeys,oe=u.activeKey,X=u.defaultActiveFirst,ne=u.selectable,de=ne===void 0?!0:ne,we=u.multiple,ge=we===void 0?!1:we,le=u.defaultSelectedKeys,Re=u.selectedKeys,pe=u.onSelect,G=u.onDeselect,ue=u.inlineIndent,De=ue===void 0?24:ue,ye=u.motion,Le=u.defaultMotions,We=u.triggerSubMenuAction,Ue=We===void 0?"hover":We,qe=u.builtinPlacements,Qe=u.itemIcon,ft=u.expandIcon,rt=u.overflowedIndicator,Tt=rt===void 0?"...":rt,_t=u.overflowedIndicatorPopupClassName,$e=u.getPopupContainer,yt=u.onClick,st=u.onOpenChange,sn=u.onKeyDown,cn=u.openAnimation,pn=u.openTransitionName,rn=u._internalRenderMenuItem,bt=u._internalRenderSubMenuItem,Ut=u._internalComponents,tt=Rr(u,E3),an=x.useMemo(function(){return[dN(P,_,Xc,Ut),dN(P,_,Xc,{})]},[P,_,Ut]),St=Ge(an,2),Pt=St[0],Un=St[1],Cn=x.useState(!1),Jn=Ge(Cn,2),A=Jn[0],w=Jn[1],O=x.useRef(),U=e3(L),ee=N==="rtl";me.env.NODE_ENV!=="production"&&ur(!cn&&!pn,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var ve=Hc(Y,{value:J,postState:function(bn){return bn||Xc}}),Se=Ge(ve,2),Xe=Se[0],mt=Se[1],gt=function(bn){var An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function dr(){mt(bn),st?.(bn)}An?jg.flushSync(dr):dr()},Ct=x.useState(Xe),Dt=Ge(Ct,2),or=Dt[0],Bn=Dt[1],Mn=x.useRef(!1),kr=x.useMemo(function(){return(H==="inline"||H==="vertical")&&I?["vertical",I]:[H,!1]},[H,I]),kn=Ge(kr,2),Ot=kn[0],et=kn[1],At=Ot==="inline",dn=x.useState(Ot),qt=Ge(dn,2),Qt=qt[0],Nn=qt[1],lr=x.useState(et),Nr=Ge(lr,2),$r=Nr[0],te=Nr[1];x.useEffect(function(){Nn(Ot),te(et),Mn.current&&(At?mt(or):gt(Xc))},[Ot,et]);var ze=x.useState(0),Ze=Ge(ze,2),nt=Ze[0],Bt=Ze[1],Nt=nt>=Pt.length-1||Qt!=="horizontal"||V;x.useEffect(function(){At&&Bn(Xe)},[Xe]),x.useEffect(function(){return Mn.current=!0,function(){Mn.current=!1}},[]);var Et=JU(),Kt=Et.registerPath,Zn=Et.unregisterPath,Dn=Et.refreshOverflowKeys,Vn=Et.isSubPathKey,Rn=Et.getKeyPath,fi=Et.getKeys,Di=Et.getSubPathKeys,Vt=x.useMemo(function(){return{registerPath:Kt,unregisterPath:Zn}},[Kt,Zn]),en=x.useMemo(function(){return{isSubPathKey:Vn}},[Vn]);x.useEffect(function(){Dn(Nt?Xc:Pt.slice(nt+1).map(function(Pn){return Pn.key}))},[nt,Nt]);var Mi=Hc(oe||X&&((i=Pt[0])===null||i===void 0?void 0:i.key),{value:oe}),aa=Ge(Mi,2),Si=aa[0],Jr=aa[1],Ba=Ch(function(Pn){Jr(Pn)}),Pi=Ch(function(){Jr(void 0)});x.useImperativeHandle(r,function(){return{list:O.current,focus:function(bn){var An,dr=fi(),Vr=qC(dr,U),xi=Vr.elements,vn=Vr.key2element,lo=Vr.element2key,hn=WC(O.current,xi),wa=Si??(hn[0]?lo.get(hn[0]):(An=Pt.find(function(Hr){return!Hr.props.disabled}))===null||An===void 0?void 0:An.key),yr=vn.get(wa);if(wa&&yr){var jt;yr==null||(jt=yr.focus)===null||jt===void 0||jt.call(yr,bn)}}}});var Er=Hc(le||[],{value:Re,postState:function(bn){return Array.isArray(bn)?bn:bn==null?Xc:[bn]}}),Va=Ge(Er,2),Tr=Va[0],Ai=Va[1],Ei=function(bn){if(de){var An=bn.key,dr=Tr.includes(An),Vr;ge?dr?Vr=Tr.filter(function(vn){return vn!==An}):Vr=[].concat(Lt(Tr),[An]):Vr=[An],Ai(Vr);var xi=ke(ke({},bn),{},{selectedKeys:Vr});dr?G?.(xi):pe?.(xi)}!ge&&Xe.length&&Qt!=="inline"&>(Xc)},oa=Ch(function(Pn){yt?.(Ay(Pn)),Ei(Pn)}),Ci=Ch(function(Pn,bn){var An=Xe.filter(function(Vr){return Vr!==Pn});if(bn)An.push(Pn);else if(Qt!=="inline"){var dr=Di(Pn);An=An.filter(function(Vr){return!dr.has(Vr)})}Kv(Xe,An,!0)||gt(An,!0)}),Cr=function(bn,An){var dr=An??!Xe.includes(bn);Ci(bn,dr)},$i=GU(Qt,Si,ee,U,O,fi,Rn,Jr,Cr,sn);x.useEffect(function(){w(!0)},[]);var wi=x.useMemo(function(){return{_internalRenderMenuItem:rn,_internalRenderSubMenuItem:bt}},[rn,bt]),oo=Qt!=="horizontal"||V?Pt:Pt.map(function(Pn,bn){return x.createElement(bh,{key:Pn.key,overflowDisabled:bn>nt},Pn)}),la=x.createElement(qu,wn({id:L,ref:O,prefixCls:"".concat(f,"-overflow"),component:"ul",itemComponent:$y,className:Zt(f,"".concat(f,"-root"),"".concat(f,"-").concat(Qt),S,(o={},he(o,"".concat(f,"-inline-collapsed"),$r),he(o,"".concat(f,"-rtl"),ee),o),g),dir:N,style:y,role:"menu",tabIndex:R,data:oo,renderRawItem:function(bn){return bn},renderRawRest:function(bn){var An=bn.length,dr=An?Pt.slice(-An):null;return x.createElement(wh,{eventKey:YC,title:Tt,disabled:Nt,internalPopupClose:An===0,popupClassName:_t},dr)},maxCount:Qt!=="horizontal"||V?qu.INVALIDATE:qu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(bn){Bt(bn)},onKeyDown:$i},tt));return x.createElement(UC.Provider,{value:wi},x.createElement(Xk.Provider,{value:U},x.createElement(bh,{prefixCls:f,rootClassName:g,mode:Qt,openKeys:Xe,rtl:ee,disabled:z,motion:A?ye:null,defaultMotions:A?Le:null,activeKey:Si,onActive:Ba,onInactive:Pi,selectedKeys:Tr,inlineIndent:De,subMenuOpenDelay:W,subMenuCloseDelay:Z,forceSubMenuRender:ie,builtinPlacements:qe,triggerSubMenuAction:Ue,getPopupContainer:$e,itemIcon:Qe,expandIcon:ft,onItemClick:oa,onOpenChange:Ci},x.createElement(tN.Provider,{value:en},la),x.createElement("div",{style:{display:"none"},"aria-hidden":!0},x.createElement(Zk.Provider,{value:Vt},Un)))))}),xh=C3;xh.Item=$y,xh.SubMenu=wh,xh.ItemGroup=Ly,xh.Divider=QC;var w3={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},x3=function(r,i){return x.createElement(Vs,wn({},r,{ref:i,icon:w3}))},pN=x.forwardRef(x3);me.env.NODE_ENV!=="production"&&(pN.displayName="BarsOutlined");var R3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},T3=function(r,i){return x.createElement(Vs,wn({},r,{ref:i,icon:R3}))},ZC=x.forwardRef(T3);me.env.NODE_ENV!=="production"&&(ZC.displayName="LeftOutlined");const O3=t=>!isNaN(parseFloat(t))&&isFinite(t),_3=x.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var k3=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};const vN={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ew=x.createContext({}),N3=(()=>{let t=0;return function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t+=1,`${r}${t}`}})(),D3=x.forwardRef((t,r)=>{const{prefixCls:i,className:o,trigger:u,children:p,defaultCollapsed:f=!1,theme:g="dark",style:y={},collapsible:S=!1,reverseArrow:b=!1,width:R=200,collapsedWidth:_=80,zeroWidthTriggerStyle:P,breakpoint:N,onCollapse:L,onBreakpoint:D}=t,H=k3(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:I}=x.useContext(_3),[z,V]=x.useState("collapsed"in t?t.collapsed:f),[B,W]=x.useState(!1);x.useEffect(()=>{"collapsed"in t&&V(t.collapsed)},[t.collapsed]);const K=(X,ne)=>{"collapsed"in t||V(X),L?.(X,ne)},Z=x.useRef();Z.current=X=>{W(X.matches),D?.(X.matches),z!==X.matches&&K(X.matches,"responsive")},x.useEffect(()=>{function X(de){return Z.current(de)}let ne;if(typeof window<"u"){const{matchMedia:de}=window;if(de&&N&&N in vN){ne=de(`screen and (max-width: ${vN[N]})`);try{ne.addEventListener("change",X)}catch{ne.addListener(X)}X(ne)}}return()=>{try{ne?.removeEventListener("change",X)}catch{ne?.removeListener(X)}}},[N]),x.useEffect(()=>{const X=N3("ant-sider-");return I.addSider(X),()=>I.removeSider(X)},[]);const ie=()=>{K(!z,"clickTrigger")},{getPrefixCls:Y}=x.useContext(ia),J=()=>{const X=Y("layout-sider",i),ne=zc(H,["collapsed"]),de=z?_:R,we=O3(de)?`${de}px`:String(de),ge=parseFloat(String(_||0))===0?x.createElement("span",{onClick:ie,className:Zt(`${X}-zero-width-trigger`,`${X}-zero-width-trigger-${b?"right":"left"}`),style:P},u||x.createElement(pN,null)):null,pe={expanded:b?x.createElement(Ny,null):x.createElement(ZC,null),collapsed:b?x.createElement(ZC,null):x.createElement(Ny,null)}[z?"collapsed":"expanded"],G=u!==null?ge||x.createElement("div",{className:`${X}-trigger`,onClick:ie,style:{width:we}},u||pe):null,ue=Object.assign(Object.assign({},y),{flex:`0 0 ${we}`,maxWidth:we,minWidth:we,width:we}),De=Zt(X,`${X}-${g}`,{[`${X}-collapsed`]:!!z,[`${X}-has-trigger`]:S&&u!==null&&!ge,[`${X}-below`]:!!B,[`${X}-zero-width`]:parseFloat(we)===0},o);return x.createElement("aside",Object.assign({className:De},ne,{style:ue,ref:r}),x.createElement("div",{className:`${X}-children`},p),S||B&&ge?G:null)},oe=x.useMemo(()=>({siderCollapsed:z}),[z]);return x.createElement(ew.Provider,{value:oe},J())});me.env.NODE_ENV!=="production"&&(D3.displayName="Sider");var M3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},P3=function(r,i){return x.createElement(Vs,wn({},r,{ref:i,icon:M3}))},hN=x.forwardRef(P3);me.env.NODE_ENV!=="production"&&(hN.displayName="EllipsisOutlined");const Fy=x.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var A3=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};const mN=t=>{const{prefixCls:r,className:i,dashed:o}=t,u=A3(t,["prefixCls","className","dashed"]),{getPrefixCls:p}=x.useContext(ia),f=p("menu",r),g=Zt({[`${f}-item-divider-dashed`]:!!o},i);return x.createElement(QC,Object.assign({className:g},u))},gN=t=>{var r;const{className:i,children:o,icon:u,title:p,danger:f}=t,{prefixCls:g,firstLevel:y,direction:S,disableMenuItemTitleTooltip:b,inlineCollapsed:R}=x.useContext(Fy),_=I=>{const z=x.createElement("span",{className:`${g}-title-content`},o);return(!u||x.isValidElement(o)&&o.type==="span")&&o&&I&&y&&typeof o=="string"?x.createElement("div",{className:`${g}-inline-collapsed-noicon`},o.charAt(0)):z},{siderCollapsed:P}=x.useContext(ew);let N=p;typeof p>"u"?N=y?o:"":p===!1&&(N="");const L={title:N};!P&&!R&&(L.title=null,L.open=!1);const D=Iu(o).length;let H=x.createElement($y,Object.assign({},zc(t,["title","icon","danger"]),{className:Zt({[`${g}-item-danger`]:f,[`${g}-item-only-child`]:(u?D+1:D)===1},i),title:typeof p=="string"?p:void 0}),Kc(u,{className:Zt(x.isValidElement(u)?(r=u.props)===null||r===void 0?void 0:r.className:"",`${g}-item-icon`)}),_(R));return b||(H=x.createElement(jC,Object.assign({},L,{placement:S==="rtl"?"left":"right",overlayClassName:`${g}-inline-collapsed-tooltip`}),H)),H};var $3=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};const Iy=x.createContext(null),L3=x.forwardRef((t,r)=>{const{children:i}=t,o=$3(t,["children"]),u=x.useContext(Iy),p=x.useMemo(()=>Object.assign(Object.assign({},u),o),[u,o.prefixCls,o.mode,o.selectable,o.rootClassName]),f=m$(i),g=Uv(r,f?i.ref:null);return x.createElement(Iy.Provider,{value:p},x.createElement(Sk,{space:!0},f?x.cloneElement(i,{ref:g}):i))}),F3=t=>{const{componentCls:r,motionDurationSlow:i,horizontalLineHeight:o,colorSplit:u,lineWidth:p,lineType:f,itemPaddingInline:g}=t;return{[`${r}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${gn(p)} ${f} ${u}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${r}-item, ${r}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:g},[`> ${r}-item:hover,
|
|
364
|
-
> ${r}-item-active,
|
|
365
|
-
> ${r}-submenu ${r}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${r}-item, ${r}-submenu-title`]:{transition:[`border-color ${i}`,`background ${i}`].join(",")},[`${r}-submenu-arrow`]:{display:"none"}}}},I3=t=>{let{componentCls:r,menuArrowOffset:i,calc:o}=t;return{[`${r}-rtl`]:{direction:"rtl"},[`${r}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${r}-rtl${r}-vertical,
|
|
366
|
-
${r}-submenu-rtl ${r}-vertical`]:{[`${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${gn(o(i).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${gn(i)})`}}}}},yN=t=>Object.assign({},g_(t)),bN=(t,r)=>{const{componentCls:i,itemColor:o,itemSelectedColor:u,groupTitleColor:p,itemBg:f,subMenuItemBg:g,itemSelectedBg:y,activeBarHeight:S,activeBarWidth:b,activeBarBorderWidth:R,motionDurationSlow:_,motionEaseInOut:P,motionEaseOut:N,itemPaddingInline:L,motionDurationMid:D,itemHoverColor:H,lineType:I,colorSplit:z,itemDisabledColor:V,dangerItemColor:B,dangerItemHoverColor:W,dangerItemSelectedColor:K,dangerItemActiveBg:Z,dangerItemSelectedBg:ie,popupBg:Y,itemHoverBg:J,itemActiveBg:oe,menuSubMenuBg:X,horizontalItemSelectedColor:ne,horizontalItemSelectedBg:de,horizontalItemBorderRadius:we,horizontalItemHoverBg:ge}=t;return{[`${i}-${r}, ${i}-${r} > ${i}`]:{color:o,background:f,[`&${i}-root:focus-visible`]:Object.assign({},yN(t)),[`${i}-item-group-title`]:{color:p},[`${i}-submenu-selected`]:{[`> ${i}-submenu-title`]:{color:u}},[`${i}-item, ${i}-submenu-title`]:{color:o,[`&:not(${i}-item-disabled):focus-visible`]:Object.assign({},yN(t))},[`${i}-item-disabled, ${i}-submenu-disabled`]:{color:`${V} !important`},[`${i}-item:not(${i}-item-selected):not(${i}-submenu-selected)`]:{[`&:hover, > ${i}-submenu-title:hover`]:{color:H}},[`&:not(${i}-horizontal)`]:{[`${i}-item:not(${i}-item-selected)`]:{"&:hover":{backgroundColor:J},"&:active":{backgroundColor:oe}},[`${i}-submenu-title`]:{"&:hover":{backgroundColor:J},"&:active":{backgroundColor:oe}}},[`${i}-item-danger`]:{color:B,[`&${i}-item:hover`]:{[`&:not(${i}-item-selected):not(${i}-submenu-selected)`]:{color:W}},[`&${i}-item:active`]:{background:Z}},[`${i}-item a`]:{"&, &:hover":{color:"inherit"}},[`${i}-item-selected`]:{color:u,[`&${i}-item-danger`]:{color:K},"a, a:hover":{color:"inherit"}},[`& ${i}-item-selected`]:{backgroundColor:y,[`&${i}-item-danger`]:{backgroundColor:ie}},[`&${i}-submenu > ${i}`]:{backgroundColor:X},[`&${i}-popup > ${i}`]:{backgroundColor:Y},[`&${i}-submenu-popup > ${i}`]:{backgroundColor:Y},[`&${i}-horizontal`]:Object.assign(Object.assign({},r==="dark"?{borderBottom:0}:{}),{[`> ${i}-item, > ${i}-submenu`]:{top:R,marginTop:t.calc(R).mul(-1).equal(),marginBottom:0,borderRadius:we,"&::after":{position:"absolute",insetInline:L,bottom:0,borderBottom:`${gn(S)} solid transparent`,transition:`border-color ${_} ${P}`,content:'""'},"&:hover, &-active, &-open":{background:ge,"&::after":{borderBottomWidth:S,borderBottomColor:ne}},"&-selected":{color:ne,backgroundColor:de,"&:hover":{backgroundColor:de},"&::after":{borderBottomWidth:S,borderBottomColor:ne}}}}),[`&${i}-root`]:{[`&${i}-inline, &${i}-vertical`]:{borderInlineEnd:`${gn(R)} ${I} ${z}`}},[`&${i}-inline`]:{[`${i}-sub${i}-inline`]:{background:g},[`${i}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${gn(b)} solid ${u}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${D} ${N}`,`opacity ${D} ${N}`].join(","),content:'""'},[`&${i}-item-danger`]:{"&::after":{borderInlineEndColor:K}}},[`${i}-selected, ${i}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${D} ${P}`,`opacity ${D} ${P}`].join(",")}}}}}},SN=t=>{const{componentCls:r,itemHeight:i,itemMarginInline:o,padding:u,menuArrowSize:p,marginXS:f,itemMarginBlock:g,itemWidth:y}=t,S=t.calc(p).add(u).add(f).equal();return{[`${r}-item`]:{position:"relative",overflow:"hidden"},[`${r}-item, ${r}-submenu-title`]:{height:i,lineHeight:gn(i),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:g,width:y},[`> ${r}-item,
|
|
367
|
-
> ${r}-submenu > ${r}-submenu-title`]:{height:i,lineHeight:gn(i)},[`${r}-item-group-list ${r}-submenu-title,
|
|
368
|
-
${r}-submenu-title`]:{paddingInlineEnd:S}}},z3=t=>{const{componentCls:r,iconCls:i,itemHeight:o,colorTextLightSolid:u,dropdownWidth:p,controlHeightLG:f,motionDurationMid:g,motionEaseOut:y,paddingXL:S,itemMarginInline:b,fontSizeLG:R,motionDurationSlow:_,paddingXS:P,boxShadowSecondary:N,collapsedWidth:L,collapsedIconSize:D}=t,H={height:o,lineHeight:gn(o),listStylePosition:"inside",listStyleType:"disc"};return[{[r]:{"&-inline, &-vertical":Object.assign({[`&${r}-root`]:{boxShadow:"none"}},SN(t))},[`${r}-submenu-popup`]:{[`${r}-vertical`]:Object.assign(Object.assign({},SN(t)),{boxShadow:N})}},{[`${r}-submenu-popup ${r}-vertical${r}-sub`]:{minWidth:p,maxHeight:`calc(100vh - ${gn(t.calc(f).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${r}-inline`]:{width:"100%",[`&${r}-root`]:{[`${r}-item, ${r}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${_}`,`background ${_}`,`padding ${g} ${y}`,`padding-inline calc(50% - ${gn(t.calc(R).div(2).equal())} - ${gn(b)})`].join(","),[`> ${r}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${r}-sub${r}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${r}-submenu > ${r}-submenu-title`]:H,[`& ${r}-item-group-title`]:{paddingInlineStart:S}},[`${r}-item`]:H}},{[`${r}-inline-collapsed`]:{width:L,[`&${r}-root`]:{[`${r}-item, ${r}-submenu ${r}-submenu-title`]:{[`> ${r}-inline-collapsed-noicon`]:{fontSize:R,textAlign:"center"}}},[`> ${r}-item,
|
|
369
|
-
> ${r}-item-group > ${r}-item-group-list > ${r}-item,
|
|
370
|
-
> ${r}-item-group > ${r}-item-group-list > ${r}-submenu > ${r}-submenu-title,
|
|
371
|
-
> ${r}-submenu > ${r}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${gn(t.calc(R).div(2).equal())} - ${gn(b)})`,textOverflow:"clip",[`
|
|
372
|
-
${r}-submenu-arrow,
|
|
373
|
-
${r}-submenu-expand-icon
|
|
374
|
-
`]:{opacity:0},[`${r}-item-icon, ${i}`]:{margin:0,fontSize:D,lineHeight:gn(o),"+ span":{display:"inline-block",opacity:0}}},[`${r}-item-icon, ${i}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${r}-item-icon, ${i}`]:{display:"none"},"a, a:hover":{color:u}},[`${r}-item-group-title`]:Object.assign(Object.assign({},oI),{paddingInline:P})}}]},EN=t=>{const{componentCls:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:u,motionEaseOut:p,iconCls:f,iconSize:g,iconMarginInlineEnd:y}=t;return{[`${r}-item, ${r}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${i}`,`background ${i}`,`padding ${i} ${u}`].join(","),[`${r}-item-icon, ${f}`]:{minWidth:g,fontSize:g,transition:[`font-size ${o} ${p}`,`margin ${i} ${u}`,`color ${i}`].join(","),"+ span":{marginInlineStart:y,opacity:1,transition:[`opacity ${i} ${u}`,`margin ${i}`,`color ${i}`].join(",")}},[`${r}-item-icon`]:Object.assign({},h_()),[`&${r}-item-only-child`]:{[`> ${f}, > ${r}-item-icon`]:{marginInlineEnd:0}}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${r}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},CN=t=>{const{componentCls:r,motionDurationSlow:i,motionEaseInOut:o,borderRadius:u,menuArrowSize:p,menuArrowOffset:f}=t;return{[`${r}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:t.margin,width:p,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${i} ${o}, opacity ${i}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:t.calc(p).mul(.6).equal(),height:t.calc(p).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:u,transition:[`background ${i} ${o}`,`transform ${i} ${o}`,`top ${i} ${o}`,`color ${i} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${gn(t.calc(f).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${gn(f)})`}}}}},j3=t=>{const{antCls:r,componentCls:i,fontSize:o,motionDurationSlow:u,motionDurationMid:p,motionEaseInOut:f,paddingXS:g,padding:y,colorSplit:S,lineWidth:b,zIndexPopup:R,borderRadiusLG:_,subMenuItemBorderRadius:P,menuArrowSize:N,menuArrowOffset:L,lineType:D,groupTitleLineHeight:H,groupTitleFontSize:I}=t;return[{"":{[`${i}`]:Object.assign(Object.assign({},m_()),{"&-hidden":{display:"none"}})},[`${i}-submenu-hidden`]:{display:"none"}},{[i]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oh(t)),m_()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${u} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${i}-item`]:{flex:"none"}},[`${i}-item, ${i}-submenu, ${i}-submenu-title`]:{borderRadius:t.itemBorderRadius},[`${i}-item-group-title`]:{padding:`${gn(g)} ${gn(y)}`,fontSize:I,lineHeight:H,transition:`all ${u}`},[`&-horizontal ${i}-submenu`]:{transition:[`border-color ${u} ${f}`,`background ${u} ${f}`].join(",")},[`${i}-submenu, ${i}-submenu-inline`]:{transition:[`border-color ${u} ${f}`,`background ${u} ${f}`,`padding ${p} ${f}`].join(",")},[`${i}-submenu ${i}-sub`]:{cursor:"initial",transition:[`background ${u} ${f}`,`padding ${u} ${f}`].join(",")},[`${i}-title-content`]:{transition:`color ${u}`,[`> ${r}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${i}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${i}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:S,borderStyle:D,borderWidth:0,borderTopWidth:b,marginBlock:b,padding:0,"&-dashed":{borderStyle:"dashed"}}}),EN(t)),{[`${i}-item-group`]:{[`${i}-item-group-list`]:{margin:0,padding:0,[`${i}-item, ${i}-submenu-title`]:{paddingInline:`${gn(t.calc(o).mul(2).equal())} ${gn(y)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:R,borderRadius:_,boxShadow:"none",transformOrigin:"0 0",[`&${i}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${i}`]:Object.assign(Object.assign(Object.assign({borderRadius:_},EN(t)),CN(t)),{[`${i}-item, ${i}-submenu > ${i}-submenu-title`]:{borderRadius:P},[`${i}-submenu-title::after`]:{transition:`transform ${u} ${f}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:t.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:t.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:t.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:t.paddingXS}}}),CN(t)),{[`&-inline-collapsed ${i}-submenu-arrow,
|
|
375
|
-
&-inline ${i}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${gn(L)})`},"&::after":{transform:`rotate(45deg) translateX(${gn(t.calc(L).mul(-1).equal())})`}},[`${i}-submenu-open${i}-submenu-inline > ${i}-submenu-title > ${i}-submenu-arrow`]:{transform:`translateY(${gn(t.calc(N).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${gn(t.calc(L).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${gn(L)})`}}})},{[`${r}-layout-header`]:{[i]:{lineHeight:"inherit"}}}]},U3=t=>{var r,i,o;const{colorPrimary:u,colorError:p,colorTextDisabled:f,colorErrorBg:g,colorText:y,colorTextDescription:S,colorBgContainer:b,colorFillAlter:R,colorFillContent:_,lineWidth:P,lineWidthBold:N,controlItemBgActive:L,colorBgTextHover:D,controlHeightLG:H,lineHeight:I,colorBgElevated:z,marginXXS:V,padding:B,fontSize:W,controlHeightSM:K,fontSizeLG:Z,colorTextLightSolid:ie,colorErrorHover:Y}=t,J=(r=t.activeBarWidth)!==null&&r!==void 0?r:0,oe=(i=t.activeBarBorderWidth)!==null&&i!==void 0?i:P,X=(o=t.itemMarginInline)!==null&&o!==void 0?o:t.marginXXS,ne=new ja(ie).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:t.zIndexPopupBase+50,radiusItem:t.borderRadiusLG,itemBorderRadius:t.borderRadiusLG,radiusSubMenuItem:t.borderRadiusSM,subMenuItemBorderRadius:t.borderRadiusSM,colorItemText:y,itemColor:y,colorItemTextHover:y,itemHoverColor:y,colorItemTextHoverHorizontal:u,horizontalItemHoverColor:u,colorGroupTitle:S,groupTitleColor:S,colorItemTextSelected:u,itemSelectedColor:u,colorItemTextSelectedHorizontal:u,horizontalItemSelectedColor:u,colorItemBg:b,itemBg:b,colorItemBgHover:D,itemHoverBg:D,colorItemBgActive:_,itemActiveBg:L,colorSubItemBg:R,subMenuItemBg:R,colorItemBgSelected:L,itemSelectedBg:L,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:J,colorActiveBarHeight:N,activeBarHeight:N,colorActiveBarBorderSize:P,activeBarBorderWidth:oe,colorItemTextDisabled:f,itemDisabledColor:f,colorDangerItemText:p,dangerItemColor:p,colorDangerItemTextHover:p,dangerItemHoverColor:p,colorDangerItemTextSelected:p,dangerItemSelectedColor:p,colorDangerItemBgActive:g,dangerItemActiveBg:g,colorDangerItemBgSelected:g,dangerItemSelectedBg:g,itemMarginInline:X,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:H,groupTitleLineHeight:I,collapsedWidth:H*2,popupBg:z,itemMarginBlock:V,itemPaddingInline:B,horizontalLineHeight:`${H*1.15}px`,iconSize:W,iconMarginInlineEnd:K-W,collapsedIconSize:Z,groupTitleFontSize:W,darkItemDisabledColor:new ja(ie).setAlpha(.25).toRgbString(),darkItemColor:ne,darkDangerItemColor:p,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ie,darkItemSelectedBg:u,darkDangerItemSelectedBg:p,darkItemHoverBg:"transparent",darkGroupTitleColor:ne,darkItemHoverColor:ie,darkDangerItemHoverColor:Y,darkDangerItemSelectedColor:ie,darkDangerItemActiveBg:p,itemWidth:J?`calc(100% + ${oe}px)`:`calc(100% - ${X*2}px)`}},B3=function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return lh("Menu",u=>{const{colorBgElevated:p,controlHeightLG:f,fontSize:g,darkItemColor:y,darkDangerItemColor:S,darkItemBg:b,darkSubMenuItemBg:R,darkItemSelectedColor:_,darkItemSelectedBg:P,darkDangerItemSelectedBg:N,darkItemHoverBg:L,darkGroupTitleColor:D,darkItemHoverColor:H,darkItemDisabledColor:I,darkDangerItemHoverColor:z,darkDangerItemSelectedColor:V,darkDangerItemActiveBg:B,popupBg:W,darkPopupBg:K}=u,Z=u.calc(g).div(7).mul(5).equal(),ie=Wu(u,{menuArrowSize:Z,menuHorizontalHeight:u.calc(f).mul(1.15).equal(),menuArrowOffset:u.calc(Z).mul(.25).equal(),menuSubMenuBg:p,calc:u.calc,popupBg:W}),Y=Wu(ie,{itemColor:y,itemHoverColor:H,groupTitleColor:D,itemSelectedColor:_,itemBg:b,popupBg:K,subMenuItemBg:R,itemActiveBg:"transparent",itemSelectedBg:P,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:L,itemDisabledColor:I,dangerItemColor:S,dangerItemHoverColor:z,dangerItemSelectedColor:V,dangerItemActiveBg:B,dangerItemSelectedBg:N,menuSubMenuBg:R,horizontalItemSelectedColor:_,horizontalItemSelectedBg:P});return[j3(ie),F3(ie),z3(ie),bN(ie,"light"),bN(Y,"dark"),I3(ie),yj(ie),Oy(ie,"slide-up"),Oy(ie,"slide-down"),LC(ie,"zoom-big")]},U3,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:i,unitless:{groupTitleLineHeight:!0}})(t,r)},wN=t=>{var r;const{popupClassName:i,icon:o,title:u,theme:p}=t,f=x.useContext(Fy),{prefixCls:g,inlineCollapsed:y,theme:S}=f,b=Id();let R;if(!o)R=y&&!b.length&&u&&typeof u=="string"?x.createElement("div",{className:`${g}-inline-collapsed-noicon`},u.charAt(0)):x.createElement("span",{className:`${g}-title-content`},u);else{const N=x.isValidElement(u)&&u.type==="span";R=x.createElement(x.Fragment,null,Kc(o,{className:Zt(x.isValidElement(o)?(r=o.props)===null||r===void 0?void 0:r.className:"",`${g}-item-icon`)}),N?u:x.createElement("span",{className:`${g}-title-content`},u))}const _=x.useMemo(()=>Object.assign(Object.assign({},f),{firstLevel:!1}),[f]),[P]=gC("Menu");return x.createElement(Fy.Provider,{value:_},x.createElement(wh,Object.assign({},zc(t,["icon"]),{title:R,popupClassName:Zt(g,i,`${g}-${p||S}`),popupStyle:{zIndex:P}})))};var V3=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};function tw(t){return t===null||t===!1}const H3={item:gN,submenu:wN,divider:mN},W3=x.forwardRef((t,r)=>{var i;const o=x.useContext(Iy),u=o||{},{getPrefixCls:p,getPopupContainer:f,direction:g,menu:y}=x.useContext(ia),S=p(),{prefixCls:b,className:R,style:_,theme:P="light",expandIcon:N,_internalDisableMenuItemTitleTooltip:L,inlineCollapsed:D,siderCollapsed:H,rootClassName:I,mode:z,selectable:V,onClick:B,overflowedIndicatorPopupClassName:W}=t,K=V3(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Z=zc(K,["collapsedWidth"]);if(me.env.NODE_ENV!=="production"){const ue=Sl("Menu");me.env.NODE_ENV!=="production"&&ue(!("inlineCollapsed"in t&&z!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),me.env.NODE_ENV!=="production"&&ue(!(t.siderCollapsed!==void 0&&"inlineCollapsed"in t),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),ue.deprecated("items"in t&&!t.children,"children","items")}(i=u.validator)===null||i===void 0||i.call(u,{mode:z});const ie=Ua(function(){var ue;B?.apply(void 0,arguments),(ue=u.onClick)===null||ue===void 0||ue.call(u)}),Y=u.mode||z,J=V??u.selectable,oe=x.useMemo(()=>H!==void 0?H:D,[D,H]),X={horizontal:{motionName:`${S}-slide-up`},inline:sz(S),other:{motionName:`${S}-zoom-big`}},ne=p("menu",b||u.prefixCls),de=W_(ne),[we,ge,le]=B3(ne,de,!o),Re=Zt(`${ne}-${P}`,y?.className,R),pe=x.useMemo(()=>{var ue,De;if(typeof N=="function"||tw(N))return N||null;if(typeof u.expandIcon=="function"||tw(u.expandIcon))return u.expandIcon||null;if(typeof y?.expandIcon=="function"||tw(y?.expandIcon))return y?.expandIcon||null;const ye=(ue=N??u?.expandIcon)!==null&&ue!==void 0?ue:y?.expandIcon;return Kc(ye,{className:Zt(`${ne}-submenu-expand-icon`,x.isValidElement(ye)?(De=ye.props)===null||De===void 0?void 0:De.className:void 0)})},[N,u?.expandIcon,y?.expandIcon,ne]),G=x.useMemo(()=>({prefixCls:ne,inlineCollapsed:oe||!1,direction:g,firstLevel:!0,theme:P,mode:Y,disableMenuItemTitleTooltip:L}),[ne,oe,g,L,P]);return we(x.createElement(Iy.Provider,{value:null},x.createElement(Fy.Provider,{value:G},x.createElement(xh,Object.assign({getPopupContainer:f,overflowedIndicator:x.createElement(hN,null),overflowedIndicatorPopupClassName:Zt(ne,`${ne}-${P}`,W),mode:Y,selectable:J,onClick:ie},Z,{inlineCollapsed:oe,style:Object.assign(Object.assign({},y?.style),_),className:Re,prefixCls:ne,direction:g,defaultMotions:X,expandIcon:pe,ref:r,rootClassName:Zt(I,ge,u.rootClassName,le,de),_internalComponents:H3})))))}),zd=x.forwardRef((t,r)=>{const i=x.useRef(null),o=x.useContext(ew);return x.useImperativeHandle(r,()=>({menu:i.current,focus:u=>{var p;(p=i.current)===null||p===void 0||p.focus(u)}})),x.createElement(W3,Object.assign({ref:i},t,o))});zd.Item=gN,zd.SubMenu=wN,zd.Divider=mN,zd.ItemGroup=Ly,me.env.NODE_ENV!=="production"&&(zd.displayName="Menu");const q3=t=>{const{componentCls:r,menuCls:i,colorError:o,colorTextLightSolid:u}=t,p=`${i}-item`;return{[`${r}, ${r}-menu-submenu`]:{[`${i} ${p}`]:{[`&${p}-danger:not(${p}-disabled)`]:{color:o,"&:hover":{color:u,backgroundColor:o}}}}}},K3=t=>{const{componentCls:r,menuCls:i,zIndexPopup:o,dropdownArrowDistance:u,sizePopupArrow:p,antCls:f,iconCls:g,motionDurationMid:y,paddingBlock:S,fontSize:b,dropdownEdgeChildPadding:R,colorTextDisabled:_,fontSizeIcon:P,controlPaddingHorizontal:N,colorBgElevated:L}=t;return[{[r]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:t.calc(p).div(2).sub(u).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${f}-btn`]:{[`& > ${g}-down, & > ${f}-btn-icon > ${g}-down`]:{fontSize:P}},[`${r}-wrap`]:{position:"relative",[`${f}-btn > ${g}-down`]:{fontSize:P},[`${g}-down::before`]:{transition:`transform ${y}`}},[`${r}-wrap-open`]:{[`${g}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${f}-slide-down-enter${f}-slide-down-enter-active${r}-placement-bottomLeft,
|
|
376
|
-
&${f}-slide-down-appear${f}-slide-down-appear-active${r}-placement-bottomLeft,
|
|
377
|
-
&${f}-slide-down-enter${f}-slide-down-enter-active${r}-placement-bottom,
|
|
378
|
-
&${f}-slide-down-appear${f}-slide-down-appear-active${r}-placement-bottom,
|
|
379
|
-
&${f}-slide-down-enter${f}-slide-down-enter-active${r}-placement-bottomRight,
|
|
380
|
-
&${f}-slide-down-appear${f}-slide-down-appear-active${r}-placement-bottomRight`]:{animationName:Ck},[`&${f}-slide-up-enter${f}-slide-up-enter-active${r}-placement-topLeft,
|
|
381
|
-
&${f}-slide-up-appear${f}-slide-up-appear-active${r}-placement-topLeft,
|
|
382
|
-
&${f}-slide-up-enter${f}-slide-up-enter-active${r}-placement-top,
|
|
383
|
-
&${f}-slide-up-appear${f}-slide-up-appear-active${r}-placement-top,
|
|
384
|
-
&${f}-slide-up-enter${f}-slide-up-enter-active${r}-placement-topRight,
|
|
385
|
-
&${f}-slide-up-appear${f}-slide-up-appear-active${r}-placement-topRight`]:{animationName:xk},[`&${f}-slide-down-leave${f}-slide-down-leave-active${r}-placement-bottomLeft,
|
|
386
|
-
&${f}-slide-down-leave${f}-slide-down-leave-active${r}-placement-bottom,
|
|
387
|
-
&${f}-slide-down-leave${f}-slide-down-leave-active${r}-placement-bottomRight`]:{animationName:wk},[`&${f}-slide-up-leave${f}-slide-up-leave-active${r}-placement-topLeft,
|
|
388
|
-
&${f}-slide-up-leave${f}-slide-up-leave-active${r}-placement-top,
|
|
389
|
-
&${f}-slide-up-leave${f}-slide-up-leave-active${r}-placement-topRight`]:{animationName:Rk}}},Wk(t,L,{arrowPlacement:{top:!0,bottom:!0}}),{[`${r} ${i}`]:{position:"relative",margin:0},[`${i}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${r}, ${r}-menu-submenu`]:Object.assign(Object.assign({},oh(t)),{[i]:Object.assign(Object.assign({padding:R,listStyleType:"none",backgroundColor:L,backgroundClip:"padding-box",borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary},uC(t)),{"&:empty":{padding:0,boxShadow:"none"},[`${i}-item-group-title`]:{padding:`${gn(S)} ${gn(N)}`,color:t.colorTextDescription,transition:`all ${y}`},[`${i}-item`]:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap"},[`${i}-item-icon`]:{minWidth:b,marginInlineEnd:t.marginXS,fontSize:t.fontSizeSM},[`${i}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${y}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${i}-item, ${i}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${gn(S)} ${gn(N)}`,color:t.colorText,fontWeight:"normal",fontSize:b,lineHeight:t.lineHeight,cursor:"pointer",transition:`all ${y}`,borderRadius:t.borderRadiusSM,"&:hover, &-active":{backgroundColor:t.controlItemBgHover}},uC(t)),{"&-selected":{color:t.colorPrimary,backgroundColor:t.controlItemBgActive,"&:hover, &-active":{backgroundColor:t.controlItemBgActiveHover}},"&-disabled":{color:_,cursor:"not-allowed","&:hover":{color:_,backgroundColor:L,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${gn(t.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:t.colorSplit},[`${r}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:t.paddingXS,[`${r}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:t.colorTextDescription,fontSize:P,fontStyle:"normal"}}}),[`${i}-item-group-list`]:{margin:`0 ${gn(t.marginXS)}`,padding:0,listStyle:"none"},[`${i}-submenu-title`]:{paddingInlineEnd:t.calc(N).add(t.fontSizeSM).equal()},[`${i}-submenu-vertical`]:{position:"relative"},[`${i}-submenu${i}-submenu-disabled ${r}-menu-submenu-title`]:{[`&, ${r}-menu-submenu-arrow-icon`]:{color:_,backgroundColor:L,cursor:"not-allowed"}},[`${i}-submenu-selected ${r}-menu-submenu-title`]:{color:t.colorPrimary}})})},[Oy(t,"slide-up"),Oy(t,"slide-down"),Ek(t,"move-up"),Ek(t,"move-down"),LC(t,"zoom-big")]]},Y3=lh("Dropdown",t=>{const{marginXXS:r,sizePopupArrow:i,paddingXXS:o,componentCls:u}=t,p=Wu(t,{menuCls:`${u}-menu`,dropdownArrowDistance:t.calc(i).div(2).add(r).equal(),dropdownEdgeChildPadding:o});return[K3(p),q3(p)]},t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+50,paddingBlock:(t.controlHeight-t.fontSize*t.lineHeight)/2},zC({contentRadius:t.borderRadiusLG,limitVerticalRadius:!0})),Vk(t)),{resetStyle:!1}),zy=t=>{var r;const{menu:i,arrow:o,prefixCls:u,children:p,trigger:f,disabled:g,dropdownRender:y,getPopupContainer:S,overlayClassName:b,rootClassName:R,overlayStyle:_,open:P,onOpenChange:N,visible:L,onVisibleChange:D,mouseEnterDelay:H=.15,mouseLeaveDelay:I=.1,autoAdjustOverflow:z=!0,placement:V="",overlay:B,transitionName:W}=t,{getPopupContainer:K,getPrefixCls:Z,direction:ie,dropdown:Y}=x.useContext(ia),J=Sl("Dropdown");me.env.NODE_ENV!=="production"&&([["visible","open"],["onVisibleChange","onOpenChange"]].forEach($e=>{let[yt,st]=$e;J.deprecated(!(yt in t),yt,st)}),J.deprecated(!("overlay"in t),"overlay","menu"));const oe=x.useMemo(()=>{const $e=Z();return W!==void 0?W:V.includes("top")?`${$e}-slide-down`:`${$e}-slide-up`},[Z,V,W]),X=x.useMemo(()=>V?V.includes("Center")?V.slice(0,V.indexOf("Center")):V:ie==="rtl"?"bottomRight":"bottomLeft",[V,ie]);if(me.env.NODE_ENV!=="production"){if(V.includes("Center")){const $e=V.slice(0,V.indexOf("Center"));me.env.NODE_ENV!=="production"&&J(!V.includes("Center"),"deprecated",`You are using '${V}' placement in Dropdown, which is deprecated. Try to use '${$e}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach($e=>{let[yt,st]=$e;J.deprecated(!(yt in t),yt,st)})}const ne=Z("dropdown",u),de=W_(ne),[we,ge,le]=Y3(ne,de),[,Re]=Wc(),pe=x.Children.only(p),G=Kc(pe,{className:Zt(`${ne}-trigger`,{[`${ne}-rtl`]:ie==="rtl"},pe.props.className),disabled:(r=pe.props.disabled)!==null&&r!==void 0?r:g}),ue=g?[]:f,De=!!ue?.includes("contextMenu"),[ye,Le]=Hc(!1,{value:P??L}),We=Ua($e=>{N?.($e,{source:"trigger"}),D?.($e),Le($e)}),Ue=Zt(b,R,ge,le,de,Y?.className,{[`${ne}-rtl`]:ie==="rtl"}),qe=Kk({arrowPointAtCenter:typeof o=="object"&&o.pointAtCenter,autoAdjustOverflow:z,offset:Re.marginXXS,arrowWidth:o?Re.sizePopupArrow:0,borderRadius:Re.borderRadius}),Qe=x.useCallback(()=>{i?.selectable&&i?.multiple||(N?.(!1,{source:"menu"}),Le(!1))},[i?.selectable,i?.multiple]),ft=()=>{let $e;return i?.items?$e=x.createElement(zd,Object.assign({},i)):typeof B=="function"?$e=B():$e=B,y&&($e=y($e)),$e=x.Children.only(typeof $e=="string"?x.createElement("span",null,$e):$e),x.createElement(L3,{prefixCls:`${ne}-menu`,rootClassName:Zt(le,de),expandIcon:x.createElement("span",{className:`${ne}-menu-submenu-arrow`},x.createElement(Ny,{className:`${ne}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Qe,validator:yt=>{let{mode:st}=yt;me.env.NODE_ENV!=="production"&&J(!st||st==="vertical","usage",`mode="${st}" is not supported for Dropdown's Menu.`)}},$e)},[rt,Tt]=gC("Dropdown",_?.zIndex);let _t=x.createElement(UU,Object.assign({alignPoint:De},zc(t,["rootClassName"]),{mouseEnterDelay:H,mouseLeaveDelay:I,visible:ye,builtinPlacements:qe,arrow:!!o,overlayClassName:Ue,prefixCls:ne,getPopupContainer:S||K,transitionName:oe,trigger:ue,overlay:ft,placement:X,onVisibleChange:We,overlayStyle:Object.assign(Object.assign(Object.assign({},Y?.style),_),{zIndex:rt})}),G);return rt&&(_t=x.createElement(xy.Provider,{value:Tt},_t)),we(_t)};function G3(t){return Object.assign(Object.assign({},t),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const X3=Kj(zy,"dropdown",t=>t,G3),Q3=t=>x.createElement(X3,Object.assign({},t),x.createElement("span",null));zy._InternalPanelDoNotUseOrYouWillBeFired=Q3,me.env.NODE_ENV!=="production"&&(zy.displayName="Dropdown");const jy=t=>{let{children:r}=t;const{getPrefixCls:i}=x.useContext(ia),o=i("breadcrumb");return x.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},r===""?r:r||"/")};jy.__ANT_BREADCRUMB_SEPARATOR=!0;var J3=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};function Z3(t,r){if(t.title===void 0||t.title===null)return null;const i=Object.keys(r).join("|");return typeof t.title=="object"?t.title:String(t.title).replace(new RegExp(`:(${i})`,"g"),(o,u)=>r[u]||o)}function xN(t,r,i,o){if(i==null)return null;const{className:u,onClick:p}=r,f=J3(r,["className","onClick"]),g=Object.assign(Object.assign({},H_(f,{data:!0,aria:!0})),{onClick:p});return o!==void 0?x.createElement("a",Object.assign({},g,{className:Zt(`${t}-link`,u),href:o}),i):x.createElement("span",Object.assign({},g,{className:Zt(`${t}-link`,u)}),i)}function eB(t,r){return(o,u,p,f,g)=>{if(r)return r(o,u,p,f);const y=Z3(o,u);return xN(t,o,y,g)}}var nw=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};const RN=t=>{const{prefixCls:r,separator:i="/",children:o,menu:u,overlay:p,dropdownProps:f,href:g}=t;me.env.NODE_ENV!=="production"&&Sl("Breadcrumb.Item").deprecated(!("overlay"in t),"overlay","menu");const S=(b=>{if(u||p){const R=Object.assign({},f);if(u){const _=u||{},{items:P}=_,N=nw(_,["items"]);R.menu=Object.assign(Object.assign({},N),{items:P?.map((L,D)=>{var{key:H,title:I,label:z,path:V}=L,B=nw(L,["key","title","label","path"]);let W=z??I;return V&&(W=x.createElement("a",{href:`${g}${V}`},W)),Object.assign(Object.assign({},B),{key:H??D,label:W})})})}else p&&(R.overlay=p);return x.createElement(zy,Object.assign({placement:"bottom"},R),x.createElement("span",{className:`${r}-overlay-link`},b,x.createElement(Uk,null)))}return b})(o);return S!=null?x.createElement(x.Fragment,null,x.createElement("li",null,S),i&&x.createElement(jy,null,i)):null},TN=t=>{const{prefixCls:r,children:i,href:o}=t,u=nw(t,["prefixCls","children","href"]),{getPrefixCls:p}=x.useContext(ia),f=p("breadcrumb",r);return x.createElement(RN,Object.assign({},u,{prefixCls:f}),xN(f,u,i,o))};TN.__ANT_BREADCRUMB_ITEM=!0;const tB=t=>{const{componentCls:r,iconCls:i,calc:o}=t;return{[r]:Object.assign(Object.assign({},oh(t)),{color:t.itemColor,fontSize:t.fontSize,[i]:{fontSize:t.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:t.linkColor,transition:`color ${t.motionDurationMid}`,padding:`0 ${gn(t.paddingXXS)}`,borderRadius:t.borderRadiusSM,height:t.fontHeight,display:"inline-block",marginInline:o(t.marginXXS).mul(-1).equal(),"&:hover":{color:t.linkHoverColor,backgroundColor:t.colorBgTextHover}},uC(t)),"li:last-child":{color:t.lastItemColor},[`${r}-separator`]:{marginInline:t.separatorMargin,color:t.separatorColor},[`${r}-link`]:{[`
|
|
390
|
-
> ${i} + span,
|
|
391
|
-
> ${i} + a
|
|
392
|
-
`]:{marginInlineStart:t.marginXXS}},[`${r}-overlay-link`]:{borderRadius:t.borderRadiusSM,height:t.fontHeight,display:"inline-block",padding:`0 ${gn(t.paddingXXS)}`,marginInline:o(t.marginXXS).mul(-1).equal(),[`> ${i}`]:{marginInlineStart:t.marginXXS,fontSize:t.fontSizeIcon},"&:hover":{color:t.linkHoverColor,backgroundColor:t.colorBgTextHover,a:{color:t.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${t.componentCls}-rtl`]:{direction:"rtl"}})}},nB=lh("Breadcrumb",t=>{const r=Wu(t,{});return tB(r)},t=>({itemColor:t.colorTextDescription,lastItemColor:t.colorText,iconFontSize:t.fontSize,linkColor:t.colorTextDescription,linkHoverColor:t.colorText,separatorColor:t.colorTextDescription,separatorMargin:t.marginXS}));var ON=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};function rB(t){const{breadcrumbName:r,children:i}=t,o=ON(t,["breadcrumbName","children"]),u=Object.assign({title:r},o);return i&&(u.menu={items:i.map(p=>{var{breadcrumbName:f}=p,g=ON(p,["breadcrumbName"]);return Object.assign(Object.assign({},g),{title:f})})}),u}function iB(t,r){return x.useMemo(()=>t||(r?r.map(rB):null),[t,r])}var aB=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};const oB=(t,r)=>{if(r===void 0)return r;let i=(r||"").replace(/^\//,"");return Object.keys(t).forEach(o=>{i=i.replace(`:${o}`,t[o])}),i},Uy=t=>{const{prefixCls:r,separator:i="/",style:o,className:u,rootClassName:p,routes:f,items:g,children:y,itemRender:S,params:b={}}=t,R=aB(t,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:_,direction:P,breadcrumb:N}=x.useContext(ia);let L;const D=_("breadcrumb",r),[H,I,z]=nB(D),V=iB(g,f);if(me.env.NODE_ENV!=="production"){const Z=Sl("Breadcrumb");if(Z.deprecated(!f,"routes","items"),!V||V.length===0){const ie=Iu(y);Z.deprecated(ie.length===0,"Breadcrumb.Item and Breadcrumb.Separator","items"),ie.forEach(Y=>{Y&&me.env.NODE_ENV!=="production"&&Z(Y.type&&(Y.type.__ANT_BREADCRUMB_ITEM===!0||Y.type.__ANT_BREADCRUMB_SEPARATOR===!0),"usage","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children")})}}const B=eB(D,S);if(V&&V.length>0){const Z=[],ie=g||f;L=V.map((Y,J)=>{const{path:oe,key:X,type:ne,menu:de,overlay:we,onClick:ge,className:le,separator:Re,dropdownProps:pe}=Y,G=oB(b,oe);G!==void 0&&Z.push(G);const ue=X??J;if(ne==="separator")return x.createElement(jy,{key:ue},Re);const De={},ye=J===V.length-1;de?De.menu=de:we&&(De.overlay=we);let{href:Le}=Y;return Z.length&&G!==void 0&&(Le=`#/${Z.join("/")}`),x.createElement(RN,Object.assign({key:ue},De,H_(Y,{data:!0,aria:!0}),{className:le,dropdownProps:pe,href:Le,separator:ye?"":i,onClick:ge,prefixCls:D}),B(Y,b,ie,Z,Le))})}else if(y){const Z=Iu(y).length;L=Iu(y).map((ie,Y)=>{if(!ie)return ie;const J=Y===Z-1;return Kc(ie,{separator:J?"":i,key:Y})})}const W=Zt(D,N?.className,{[`${D}-rtl`]:P==="rtl"},u,p,I,z),K=Object.assign(Object.assign({},N?.style),o);return H(x.createElement("nav",Object.assign({className:W,style:K},R),x.createElement("ol",null,L)))};Uy.Item=TN,Uy.Separator=jy,me.env.NODE_ENV!=="production"&&(Uy.displayName="Breadcrumb");function lB(t,r,i){var o=i||{},u=o.noTrailing,p=u===void 0?!1:u,f=o.noLeading,g=f===void 0?!1:f,y=o.debounceMode,S=y===void 0?void 0:y,b,R=!1,_=0;function P(){b&&clearTimeout(b)}function N(D){var H=D||{},I=H.upcomingOnly,z=I===void 0?!1:I;P(),R=!z}function L(){for(var D=arguments.length,H=new Array(D),I=0;I<D;I++)H[I]=arguments[I];var z=this,V=Date.now()-_;if(R)return;function B(){_=Date.now(),r.apply(z,H)}function W(){b=void 0}!g&&S&&!b&&B(),P(),S===void 0&&V>t?g?(_=Date.now(),p||(b=setTimeout(S?W:B,t))):B():p!==!0&&(b=setTimeout(S?W:B,S===void 0?t-V:t))}return L.cancel=N,L}function uB(t,r,i){var o={},u=o.atBegin,p=u===void 0?!1:u;return lB(t,r,{debounceMode:p!==!1})}function sB(t){let{percent:r,prefixCls:i}=t;const o=`${i}-dot`,u=`${o}-holder`,p=`${u}-hidden`,[f,g]=x.useState(!1);na(()=>{r!==0&&g(!0)},[r!==0]);const y=Math.max(Math.min(r,100),0),S=100,b=S/5,R=S/2-b/2,_=R*2*Math.PI,P=(N,L)=>x.createElement("circle",{className:Zt(N,`${o}-circle`),r:R,cx:"50",cy:"50",strokeWidth:b,style:L});return f?x.createElement("span",{className:Zt(u,`${o}-progress`,y<=0&&p)},x.createElement("svg",{viewBox:`0 0 ${S} ${S}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":y},P(`${o}-circle-bg`),P("",{strokeDasharray:`${_*y/100} ${_*(100-y)/100}`,strokeDashoffset:`${_/4}`}))):null}function cB(t){const{prefixCls:r,percent:i=0}=t,o=`${r}-dot`,u=`${o}-holder`,p=`${u}-hidden`;return x.createElement(x.Fragment,null,x.createElement("span",{className:Zt(u,i>0&&p)},x.createElement("span",{className:Zt(o,`${r}-dot-spin`)},[1,2,3,4].map(f=>x.createElement("i",{className:`${r}-dot-item`,key:f})))),x.createElement(sB,{prefixCls:r,percent:i}))}function fB(t){const{prefixCls:r,indicator:i,percent:o}=t,u=`${r}-dot`;return i&&x.isValidElement(i)?Kc(i,{className:Zt(i.props.className,u),percent:o}):x.createElement(cB,{prefixCls:r,percent:o})}const dB=new fr("antSpinMove",{to:{opacity:1}}),pB=new fr("antRotate",{to:{transform:"rotate(405deg)"}}),vB=t=>{const{componentCls:r,calc:i}=t;return{[`${r}`]:Object.assign(Object.assign({},oh(t)),{position:"absolute",display:"none",color:t.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${r}-text`]:{fontSize:t.fontSize,paddingTop:i(i(t.dotSize).sub(t.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:t.colorBgMask,zIndex:t.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${t.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[r]:{[`${r}-dot-holder`]:{color:t.colorWhite},[`${r}-text`]:{color:t.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${r}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:t.contentHeight,[`${r}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:i(t.dotSize).mul(-1).div(2).equal()},[`${r}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${t.colorBgContainer}`},[`&${r}-show-text ${r}-dot`]:{marginTop:i(t.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${r}-dot`]:{margin:i(t.dotSizeSM).mul(-1).div(2).equal()},[`${r}-text`]:{paddingTop:i(i(t.dotSizeSM).sub(t.fontSize)).div(2).add(2).equal()},[`&${r}-show-text ${r}-dot`]:{marginTop:i(t.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${r}-dot`]:{margin:i(t.dotSizeLG).mul(-1).div(2).equal()},[`${r}-text`]:{paddingTop:i(i(t.dotSizeLG).sub(t.fontSize)).div(2).add(2).equal()},[`&${r}-show-text ${r}-dot`]:{marginTop:i(t.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${r}-container`]:{position:"relative",transition:`opacity ${t.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:t.colorBgContainer,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${r}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:t.spinDotDefault},[`${r}-dot-holder`]:{width:"1em",height:"1em",fontSize:t.dotSize,display:"inline-block",transition:`transform ${t.motionDurationSlow} ease, opacity ${t.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:t.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${r}-dot-progress`]:{position:"absolute",top:"50%",transform:"translateY(-50%)",insetInlineStart:0},[`${r}-dot`]:{position:"relative",display:"inline-block",fontSize:t.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:i(t.dotSize).sub(i(t.marginXXS).div(2)).div(2).equal(),height:i(t.dotSize).sub(i(t.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:dB,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:pB,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(o=>`${o} ${t.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:t.colorFillSecondary}},[`&-sm ${r}-dot`]:{"&, &-holder":{fontSize:t.dotSizeSM}},[`&-sm ${r}-dot-holder`]:{i:{width:i(i(t.dotSizeSM).sub(i(t.marginXXS).div(2))).div(2).equal(),height:i(i(t.dotSizeSM).sub(i(t.marginXXS).div(2))).div(2).equal()}},[`&-lg ${r}-dot`]:{"&, &-holder":{fontSize:t.dotSizeLG}},[`&-lg ${r}-dot-holder`]:{i:{width:i(i(t.dotSizeLG).sub(t.marginXXS)).div(2).equal(),height:i(i(t.dotSizeLG).sub(t.marginXXS)).div(2).equal()}},[`&${r}-show-text ${r}-text`]:{display:"block"}})}},hB=lh("Spin",t=>{const r=Wu(t,{spinDotDefault:t.colorTextDescription});return[vB(r)]},t=>{const{controlHeightLG:r,controlHeight:i}=t;return{contentHeight:400,dotSize:r/2,dotSizeSM:r*.35,dotSizeLG:i}}),mB=200,_N=[[30,.05],[70,.03],[96,.01]];function gB(t,r){const[i,o]=x.useState(0),u=x.useRef(),p=r==="auto";return x.useEffect(()=>(p&&t&&(o(0),u.current=setInterval(()=>{o(f=>{const g=100-f;for(let y=0;y<_N.length;y+=1){const[S,b]=_N[y];if(f<=S)return f+g*b}return f})},mB)),()=>{clearInterval(u.current)}),[p,t]),p?i:r}var yB=function(t,r){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(i[o[u]]=t[o[u]]);return i};let kN;function bB(t,r){return!!t&&!!r&&!isNaN(Number(r))}const rw=t=>{var r;const{prefixCls:i,spinning:o=!0,delay:u=0,className:p,rootClassName:f,size:g="default",tip:y,wrapperClassName:S,style:b,children:R,fullscreen:_=!1,indicator:P,percent:N}=t,L=yB(t,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:D,direction:H,spin:I}=x.useContext(ia),z=D("spin",i),[V,B,W]=hB(z),[K,Z]=x.useState(()=>o&&!bB(o,u)),ie=gB(K,N);x.useEffect(()=>{if(o){const we=uB(u,()=>{Z(!0)});return we(),()=>{var ge;(ge=we?.cancel)===null||ge===void 0||ge.call(we)}}Z(!1)},[u,o]);const Y=x.useMemo(()=>typeof R<"u"&&!_,[R,_]);if(me.env.NODE_ENV!=="production"){const we=Sl("Spin");me.env.NODE_ENV!=="production"&&we(!y||Y||_,"usage","`tip` only work in nest or fullscreen pattern.")}const J=Zt(z,I?.className,{[`${z}-sm`]:g==="small",[`${z}-lg`]:g==="large",[`${z}-spinning`]:K,[`${z}-show-text`]:!!y,[`${z}-rtl`]:H==="rtl"},p,!_&&f,B,W),oe=Zt(`${z}-container`,{[`${z}-blur`]:K}),X=(r=P??I?.indicator)!==null&&r!==void 0?r:kN,ne=Object.assign(Object.assign({},I?.style),b),de=x.createElement("div",Object.assign({},L,{style:ne,className:J,"aria-live":"polite","aria-busy":K}),x.createElement(fB,{prefixCls:z,indicator:X,percent:ie}),y&&(Y||_)?x.createElement("div",{className:`${z}-text`},y):null);return V(Y?x.createElement("div",Object.assign({},L,{className:Zt(`${z}-nested-loading`,S,B,W)}),K&&x.createElement("div",{key:"loading"},de),x.createElement("div",{className:oe,key:"container"},R)):_?x.createElement("div",{className:Zt(`${z}-fullscreen`,{[`${z}-fullscreen-show`]:K},f,B,W)},de):de)};rw.setDefaultIndicator=t=>{kN=t},me.env.NODE_ENV!=="production"&&(rw.displayName="Spin");var iw=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rh=typeof window>"u"||"Deno"in globalThis;function SB(){}function NN(t){return typeof t=="number"&&t>=0&&t!==1/0}function EB(t,r){return Math.max(t+(r||0)-Date.now(),0)}function By(t,r){return typeof t=="function"?t(r):t}function eu(t,r){return typeof t=="function"?t(r):t}function aw(t,r){if(t===r)return t;const i=DN(t)&&DN(r);if(i||MN(t)&&MN(r)){const o=i?t:Object.keys(t),u=o.length,p=i?r:Object.keys(r),f=p.length,g=i?[]:{};let y=0;for(let S=0;S<f;S++){const b=i?S:p[S];(!i&&o.includes(b)||i)&&t[b]===void 0&&r[b]===void 0?(g[b]=void 0,y++):(g[b]=aw(t[b],r[b]),g[b]===t[b]&&t[b]!==void 0&&y++)}return u===f&&y===u?t:g}return r}function ow(t,r){if(!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(const i in t)if(t[i]!==r[i])return!1;return!0}function DN(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function MN(t){if(!PN(t))return!1;const r=t.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!PN(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function PN(t){return Object.prototype.toString.call(t)==="[object Object]"}function AN(t,r,i){if(typeof i.structuralSharing=="function")return i.structuralSharing(t,r);if(i.structuralSharing!==!1){if(me.env.NODE_ENV!=="production")try{return aw(t,r)}catch(o){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${i.queryHash}]: ${o}`)}return aw(t,r)}return r}var CB=class extends iw{#t;#e;#r;constructor(){super(),this.#r=t=>{if(!Rh&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#r=t,this.#e?.(),this.#e=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},wB=new CB,xB=class extends iw{#t=!0;#e;#r;constructor(){super(),this.#r=t=>{if(!Rh&&window.addEventListener){const r=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#r=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(i=>{i(t)}))}isOnline(){return this.#t}},RB=new xB;function $N(){let t,r;const i=new Promise((u,p)=>{t=u,r=p});i.status="pending",i.catch(()=>{});function o(u){Object.assign(i,u),delete i.resolve,delete i.reject}return i.resolve=u=>{o({status:"fulfilled",value:u}),t(u)},i.reject=u=>{o({status:"rejected",reason:u}),r(u)},i}function TB(t){return(t??"online")==="online"?RB.isOnline():!0}function OB(){let t=[],r=0,i=g=>{g()},o=g=>{g()},u=g=>setTimeout(g,0);const p=g=>{r?t.push(g):u(()=>{i(g)})},f=()=>{const g=t;t=[],g.length&&u(()=>{o(()=>{g.forEach(y=>{i(y)})})})};return{batch:g=>{let y;r++;try{y=g()}finally{r--,r||f()}return y},batchCalls:g=>(...y)=>{p(()=>{g(...y)})},schedule:p,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{o=g},setScheduler:g=>{u=g}}}var LN=OB();function _B(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:TB(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}var kB=class extends iw{constructor(t,r){super(),this.options=r,this.#t=t,this.#i=null,this.#a=$N(),this.options.experimental_prefetchInRender||this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}#t;#e=void 0;#r=void 0;#n=void 0;#l;#f;#a;#i;#h;#d;#p;#u;#s;#o;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),FN(this.#e,this.options)?this.#c():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lw(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lw(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#E(),this.#e.removeObserver(this)}setOptions(t,r){const i=this.options,o=this.#e;if(this.options=this.#t.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof eu(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#e.setOptions(this.options),i._defaulted&&!ow(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const u=this.hasListeners();u&&IN(this.#e,o,this.options,i)&&this.#c(),this.updateResult(r),u&&(this.#e!==o||eu(this.options.enabled,this.#e)!==eu(i.enabled,this.#e)||By(this.options.staleTime,this.#e)!==By(i.staleTime,this.#e))&&this.#m();const p=this.#g();u&&(this.#e!==o||eu(this.options.enabled,this.#e)!==eu(i.enabled,this.#e)||p!==this.#o)&&this.#y(p)}getOptimisticResult(t){const r=this.#t.getQueryCache().build(this.#t,t),i=this.createResult(r,t);return DB(this,i)&&(this.#n=i,this.#f=this.options,this.#l=this.#e.state),i}getCurrentResult(){return this.#n}trackResult(t,r){const i={};return Object.keys(t).forEach(o=>{Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),r?.(o),t[o])})}),i}trackProp(t){this.#v.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=this.#t.defaultQueryOptions(t),i=this.#t.getQueryCache().build(this.#t,r);return i.fetch().then(()=>this.createResult(i,r))}fetch(t){return this.#c({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#c(t){this.#C();let r=this.#e.fetch(this.options,t);return t?.throwOnError||(r=r.catch(SB)),r}#m(){this.#S();const t=By(this.options.staleTime,this.#e);if(Rh||this.#n.isStale||!NN(t))return;const i=EB(this.#n.dataUpdatedAt,t)+1;this.#u=setTimeout(()=>{this.#n.isStale||this.updateResult()},i)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(t){this.#E(),this.#o=t,!(Rh||eu(this.options.enabled,this.#e)===!1||!NN(this.#o)||this.#o===0)&&(this.#s=setInterval(()=>{(this.options.refetchIntervalInBackground||wB.isFocused())&&this.#c()},this.#o))}#b(){this.#m(),this.#y(this.#g())}#S(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#E(){this.#s&&(clearInterval(this.#s),this.#s=void 0)}createResult(t,r){const i=this.#e,o=this.options,u=this.#n,p=this.#l,f=this.#f,y=t!==i?t.state:this.#r,{state:S}=t;let b={...S},R=!1,_;if(r._optimisticResults){const K=this.hasListeners(),Z=!K&&FN(t,r),ie=K&&IN(t,i,r,o);(Z||ie)&&(b={...b,..._B(S.data,t.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:P,errorUpdatedAt:N,status:L}=b;if(r.select&&b.data!==void 0)if(u&&b.data===p?.data&&r.select===this.#h)_=this.#d;else try{this.#h=r.select,_=r.select(b.data),_=AN(u?.data,_,r),this.#d=_,this.#i=null}catch(K){this.#i=K}else _=b.data;if(r.placeholderData!==void 0&&_===void 0&&L==="pending"){let K;if(u?.isPlaceholderData&&r.placeholderData===f?.placeholderData)K=u.data;else if(K=typeof r.placeholderData=="function"?r.placeholderData(this.#p?.state.data,this.#p):r.placeholderData,r.select&&K!==void 0)try{K=r.select(K),this.#i=null}catch(Z){this.#i=Z}K!==void 0&&(L="success",_=AN(u?.data,K,r),R=!0)}this.#i&&(P=this.#i,_=this.#d,N=Date.now(),L="error");const D=b.fetchStatus==="fetching",H=L==="pending",I=L==="error",z=H&&D,V=_!==void 0,W={status:L,fetchStatus:b.fetchStatus,isPending:H,isSuccess:L==="success",isError:I,isInitialLoading:z,isLoading:z,data:_,dataUpdatedAt:b.dataUpdatedAt,error:P,errorUpdatedAt:N,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>y.dataUpdateCount||b.errorUpdateCount>y.errorUpdateCount,isFetching:D,isRefetching:D&&!H,isLoadingError:I&&!V,isPaused:b.fetchStatus==="paused",isPlaceholderData:R,isRefetchError:I&&V,isStale:uw(t,r),refetch:this.refetch,promise:this.#a};if(this.options.experimental_prefetchInRender){const K=Y=>{W.status==="error"?Y.reject(W.error):W.data!==void 0&&Y.resolve(W.data)},Z=()=>{const Y=this.#a=W.promise=$N();K(Y)},ie=this.#a;switch(ie.status){case"pending":t.queryHash===i.queryHash&&K(ie);break;case"fulfilled":(W.status==="error"||W.data!==ie.value)&&Z();break;case"rejected":(W.status!=="error"||W.error!==ie.reason)&&Z();break}}return W}updateResult(t){const r=this.#n,i=this.createResult(this.#e,this.options);if(this.#l=this.#e.state,this.#f=this.options,this.#l.data!==void 0&&(this.#p=this.#e),ow(i,r))return;this.#n=i;const o={},u=()=>{if(!r)return!0;const{notifyOnChangeProps:p}=this.options,f=typeof p=="function"?p():p;if(f==="all"||!f&&!this.#v.size)return!0;const g=new Set(f??this.#v);return this.options.throwOnError&&g.add("error"),Object.keys(this.#n).some(y=>{const S=y;return this.#n[S]!==r[S]&&g.has(S)})};t?.listeners!==!1&&u()&&(o.listeners=!0),this.#w({...o,...t})}#C(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;const r=this.#e;this.#e=t,this.#r=t.state,this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(t){LN.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(this.#n)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function NB(t,r){return eu(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function FN(t,r){return NB(t,r)||t.state.data!==void 0&&lw(t,r,r.refetchOnMount)}function lw(t,r,i){if(eu(r.enabled,t)!==!1){const o=typeof i=="function"?i(t):i;return o==="always"||o!==!1&&uw(t,r)}return!1}function IN(t,r,i,o){return(t!==r||eu(o.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&uw(t,i)}function uw(t,r){return eu(r.enabled,t)!==!1&&t.isStaleByTime(By(r.staleTime,t))}function DB(t,r){return!ow(t.getCurrentResult(),r)}var MB=x.createContext(void 0),PB=t=>{const r=x.useContext(MB);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},zN=x.createContext(!1),AB=()=>x.useContext(zN);zN.Provider;function $B(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var LB=x.createContext($B()),FB=()=>x.useContext(LB);function IB(t,r){return typeof t=="function"?t(...r):!!t}function jN(){}var zB=(t,r)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(r.isReset()||(t.retryOnMount=!1))},jB=t=>{x.useEffect(()=>{t.clearReset()},[t])},UB=({result:t,errorResetBoundary:r,throwOnError:i,query:o})=>t.isError&&!r.isReset()&&!t.isFetching&&o&&IB(i,[t.error,o]),BB=t=>{t.suspense&&(t.staleTime===void 0&&(t.staleTime=1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},VB=(t,r)=>t.isLoading&&t.isFetching&&!r,HB=(t,r)=>t?.suspense&&r.isPending,UN=(t,r,i)=>r.fetchOptimistic(t).catch(()=>{i.clearReset()});function WB(t,r,i){if(me.env.NODE_ENV!=="production"&&(typeof t!="object"||Array.isArray(t)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const o=PB(),u=AB(),p=FB(),f=o.defaultQueryOptions(t);o.getDefaultOptions().queries?._experimental_beforeQuery?.(f),f._optimisticResults=u?"isRestoring":"optimistic",BB(f),zB(f,p),jB(p);const g=!o.getQueryCache().get(f.queryHash),[y]=x.useState(()=>new r(o,f)),S=y.getOptimisticResult(f);if(x.useSyncExternalStore(x.useCallback(b=>{const R=u?jN:y.subscribe(LN.batchCalls(b));return y.updateResult(),R},[y,u]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),x.useEffect(()=>{y.setOptions(f,{listeners:!1})},[f,y]),HB(f,S))throw UN(f,y,p);if(UB({result:S,errorResetBoundary:p,throwOnError:f.throwOnError,query:o.getQueryCache().get(f.queryHash)}))throw S.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(f,S),f.experimental_prefetchInRender&&!Rh&&VB(S,u)&&(g?UN(f,y,p):o.getQueryCache().get(f.queryHash)?.promise)?.catch(jN).finally(()=>{y.updateResult()}),f.notifyOnChangeProps?S:y.trackResult(S)}function qB(t,r){return WB(t,kB)}function BN(t,r){return function(){return t.apply(r,arguments)}}const{toString:KB}=Object.prototype,{getPrototypeOf:sw}=Object,Vy=(t=>r=>{const i=KB.call(r);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),tu=t=>(t=t.toLowerCase(),r=>Vy(r)===t),Hy=t=>r=>typeof r===t,{isArray:jd}=Array,Th=Hy("undefined");function YB(t){return t!==null&&!Th(t)&&t.constructor!==null&&!Th(t.constructor)&&Wo(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const VN=tu("ArrayBuffer");function GB(t){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(t):r=t&&t.buffer&&VN(t.buffer),r}const XB=Hy("string"),Wo=Hy("function"),HN=Hy("number"),Wy=t=>t!==null&&typeof t=="object",QB=t=>t===!0||t===!1,qy=t=>{if(Vy(t)!=="object")return!1;const r=sw(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},JB=tu("Date"),ZB=tu("File"),eV=tu("Blob"),tV=tu("FileList"),nV=t=>Wy(t)&&Wo(t.pipe),rV=t=>{let r;return t&&(typeof FormData=="function"&&t instanceof FormData||Wo(t.append)&&((r=Vy(t))==="formdata"||r==="object"&&Wo(t.toString)&&t.toString()==="[object FormData]"))},iV=tu("URLSearchParams"),aV=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oh(t,r,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let o,u;if(typeof t!="object"&&(t=[t]),jd(t))for(o=0,u=t.length;o<u;o++)r.call(null,t[o],o,t);else{const p=i?Object.getOwnPropertyNames(t):Object.keys(t),f=p.length;let g;for(o=0;o<f;o++)g=p[o],r.call(null,t[g],g,t)}}function WN(t,r){r=r.toLowerCase();const i=Object.keys(t);let o=i.length,u;for(;o-- >0;)if(u=i[o],r===u.toLowerCase())return u;return null}const qN=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Hg,KN=t=>!Th(t)&&t!==qN;function cw(){const{caseless:t}=KN(this)&&this||{},r={},i=(o,u)=>{const p=t&&WN(r,u)||u;qy(r[p])&&qy(o)?r[p]=cw(r[p],o):qy(o)?r[p]=cw({},o):jd(o)?r[p]=o.slice():r[p]=o};for(let o=0,u=arguments.length;o<u;o++)arguments[o]&&Oh(arguments[o],i);return r}const oV=(t,r,i,{allOwnKeys:o}={})=>(Oh(r,(u,p)=>{i&&Wo(u)?t[p]=BN(u,i):t[p]=u},{allOwnKeys:o}),t),lV=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),uV=(t,r,i,o)=>{t.prototype=Object.create(r.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:r.prototype}),i&&Object.assign(t.prototype,i)},sV=(t,r,i,o)=>{let u,p,f;const g={};if(r=r||{},t==null)return r;do{for(u=Object.getOwnPropertyNames(t),p=u.length;p-- >0;)f=u[p],(!o||o(f,t,r))&&!g[f]&&(r[f]=t[f],g[f]=!0);t=i!==!1&&sw(t)}while(t&&(!i||i(t,r))&&t!==Object.prototype);return r},cV=(t,r,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=r.length;const o=t.indexOf(r,i);return o!==-1&&o===i},fV=t=>{if(!t)return null;if(jd(t))return t;let r=t.length;if(!HN(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=t[r];return i},dV=(t=>r=>t&&r instanceof t)(typeof Uint8Array<"u"&&sw(Uint8Array)),pV=(t,r)=>{const o=(t&&t[Symbol.iterator]).call(t);let u;for(;(u=o.next())&&!u.done;){const p=u.value;r.call(t,p[0],p[1])}},vV=(t,r)=>{let i;const o=[];for(;(i=t.exec(r))!==null;)o.push(i);return o},hV=tu("HTMLFormElement"),mV=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,u){return o.toUpperCase()+u}),YN=(({hasOwnProperty:t})=>(r,i)=>t.call(r,i))(Object.prototype),gV=tu("RegExp"),GN=(t,r)=>{const i=Object.getOwnPropertyDescriptors(t),o={};Oh(i,(u,p)=>{r(u,p,t)!==!1&&(o[p]=u)}),Object.defineProperties(t,o)},yV=t=>{GN(t,(r,i)=>{if(Wo(t)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const o=t[i];if(Wo(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},bV=(t,r)=>{const i={},o=u=>{u.forEach(p=>{i[p]=!0})};return jd(t)?o(t):o(String(t).split(r)),i},SV=()=>{},EV=(t,r)=>(t=+t,Number.isFinite(t)?t:r),fw="abcdefghijklmnopqrstuvwxyz",XN="0123456789",QN={DIGIT:XN,ALPHA:fw,ALPHA_DIGIT:fw+fw.toUpperCase()+XN},CV=(t=16,r=QN.ALPHA_DIGIT)=>{let i="";const{length:o}=r;for(;t--;)i+=r[Math.random()*o|0];return i};function wV(t){return!!(t&&Wo(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const xV=t=>{const r=new Array(10),i=(o,u)=>{if(Wy(o)){if(r.indexOf(o)>=0)return;if(!("toJSON"in o)){r[u]=o;const p=jd(o)?[]:{};return Oh(o,(f,g)=>{const y=i(f,u+1);!Th(y)&&(p[g]=y)}),r[u]=void 0,p}}return o};return i(t,0)},RV=tu("AsyncFunction"),Ie={isArray:jd,isArrayBuffer:VN,isBuffer:YB,isFormData:rV,isArrayBufferView:GB,isString:XB,isNumber:HN,isBoolean:QB,isObject:Wy,isPlainObject:qy,isUndefined:Th,isDate:JB,isFile:ZB,isBlob:eV,isRegExp:gV,isFunction:Wo,isStream:nV,isURLSearchParams:iV,isTypedArray:dV,isFileList:tV,forEach:Oh,merge:cw,extend:oV,trim:aV,stripBOM:lV,inherits:uV,toFlatObject:sV,kindOf:Vy,kindOfTest:tu,endsWith:cV,toArray:fV,forEachEntry:pV,matchAll:vV,isHTMLForm:hV,hasOwnProperty:YN,hasOwnProp:YN,reduceDescriptors:GN,freezeMethods:yV,toObjectSet:bV,toCamelCase:mV,noop:SV,toFiniteNumber:EV,findKey:WN,global:qN,isContextDefined:KN,ALPHABET:QN,generateString:CV,isSpecCompliantForm:wV,toJSONObject:xV,isAsyncFn:RV,isThenable:t=>t&&(Wy(t)||Wo(t))&&Wo(t.then)&&Wo(t.catch)};var JN={},Ky={};Ky.byteLength=_V,Ky.toByteArray=NV,Ky.fromByteArray=PV;for(var nu=[],qo=[],TV=typeof Uint8Array<"u"?Uint8Array:Array,dw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ud=0,OV=dw.length;Ud<OV;++Ud)nu[Ud]=dw[Ud],qo[dw.charCodeAt(Ud)]=Ud;qo[45]=62,qo[95]=63;function ZN(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");i===-1&&(i=r);var o=i===r?0:4-i%4;return[i,o]}function _V(t){var r=ZN(t),i=r[0],o=r[1];return(i+o)*3/4-o}function kV(t,r,i){return(r+i)*3/4-i}function NV(t){var r,i=ZN(t),o=i[0],u=i[1],p=new TV(kV(t,o,u)),f=0,g=u>0?o-4:o,y;for(y=0;y<g;y+=4)r=qo[t.charCodeAt(y)]<<18|qo[t.charCodeAt(y+1)]<<12|qo[t.charCodeAt(y+2)]<<6|qo[t.charCodeAt(y+3)],p[f++]=r>>16&255,p[f++]=r>>8&255,p[f++]=r&255;return u===2&&(r=qo[t.charCodeAt(y)]<<2|qo[t.charCodeAt(y+1)]>>4,p[f++]=r&255),u===1&&(r=qo[t.charCodeAt(y)]<<10|qo[t.charCodeAt(y+1)]<<4|qo[t.charCodeAt(y+2)]>>2,p[f++]=r>>8&255,p[f++]=r&255),p}function DV(t){return nu[t>>18&63]+nu[t>>12&63]+nu[t>>6&63]+nu[t&63]}function MV(t,r,i){for(var o,u=[],p=r;p<i;p+=3)o=(t[p]<<16&16711680)+(t[p+1]<<8&65280)+(t[p+2]&255),u.push(DV(o));return u.join("")}function PV(t){for(var r,i=t.length,o=i%3,u=[],p=16383,f=0,g=i-o;f<g;f+=p)u.push(MV(t,f,f+p>g?g:f+p));return o===1?(r=t[i-1],u.push(nu[r>>2]+nu[r<<4&63]+"==")):o===2&&(r=(t[i-2]<<8)+t[i-1],u.push(nu[r>>10]+nu[r>>4&63]+nu[r<<2&63]+"=")),u.join("")}var pw={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */pw.read=function(t,r,i,o,u){var p,f,g=u*8-o-1,y=(1<<g)-1,S=y>>1,b=-7,R=i?u-1:0,_=i?-1:1,P=t[r+R];for(R+=_,p=P&(1<<-b)-1,P>>=-b,b+=g;b>0;p=p*256+t[r+R],R+=_,b-=8);for(f=p&(1<<-b)-1,p>>=-b,b+=o;b>0;f=f*256+t[r+R],R+=_,b-=8);if(p===0)p=1-S;else{if(p===y)return f?NaN:(P?-1:1)*(1/0);f=f+Math.pow(2,o),p=p-S}return(P?-1:1)*f*Math.pow(2,p-o)},pw.write=function(t,r,i,o,u,p){var f,g,y,S=p*8-u-1,b=(1<<S)-1,R=b>>1,_=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=o?0:p-1,N=o?1:-1,L=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(g=isNaN(r)?1:0,f=b):(f=Math.floor(Math.log(r)/Math.LN2),r*(y=Math.pow(2,-f))<1&&(f--,y*=2),f+R>=1?r+=_/y:r+=_*Math.pow(2,1-R),r*y>=2&&(f++,y/=2),f+R>=b?(g=0,f=b):f+R>=1?(g=(r*y-1)*Math.pow(2,u),f=f+R):(g=r*Math.pow(2,R-1)*Math.pow(2,u),f=0));u>=8;t[i+P]=g&255,P+=N,g/=256,u-=8);for(f=f<<u|g,S+=u;S>0;t[i+P]=f&255,P+=N,f/=256,S-=8);t[i+P-N]|=L*128};/*!
|
|
393
|
-
* The buffer module from node.js, for the browser.
|
|
394
|
-
*
|
|
395
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
396
|
-
* @license MIT
|
|
397
|
-
*/(function(t){const r=Ky,i=pw,o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=b,t.SlowBuffer=B,t.INSPECT_MAX_BYTES=50;const u=2147483647;t.kMaxLength=u;const{Uint8Array:p,ArrayBuffer:f,SharedArrayBuffer:g}=globalThis;b.TYPED_ARRAY_SUPPORT=y(),!b.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&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 y(){try{const A=new p(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,p.prototype),Object.setPrototypeOf(A,w),A.foo()===42}catch{return!1}}Object.defineProperty(b.prototype,"parent",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.buffer}}),Object.defineProperty(b.prototype,"offset",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.byteOffset}});function S(A){if(A>u)throw new RangeError('The value "'+A+'" is invalid for option "size"');const w=new p(A);return Object.setPrototypeOf(w,b.prototype),w}function b(A,w,O){if(typeof A=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return N(A)}return R(A,w,O)}b.poolSize=8192;function R(A,w,O){if(typeof A=="string")return L(A,w);if(f.isView(A))return H(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(St(A,f)||A&&St(A.buffer,f)||typeof g<"u"&&(St(A,g)||A&&St(A.buffer,g)))return I(A,w,O);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const U=A.valueOf&&A.valueOf();if(U!=null&&U!==A)return b.from(U,w,O);const ee=z(A);if(ee)return ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return b.from(A[Symbol.toPrimitive]("string"),w,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}b.from=function(A,w,O){return R(A,w,O)},Object.setPrototypeOf(b.prototype,p.prototype),Object.setPrototypeOf(b,p);function _(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function P(A,w,O){return _(A),A<=0?S(A):w!==void 0?typeof O=="string"?S(A).fill(w,O):S(A).fill(w):S(A)}b.alloc=function(A,w,O){return P(A,w,O)};function N(A){return _(A),S(A<0?0:V(A)|0)}b.allocUnsafe=function(A){return N(A)},b.allocUnsafeSlow=function(A){return N(A)};function L(A,w){if((typeof w!="string"||w==="")&&(w="utf8"),!b.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const O=W(A,w)|0;let U=S(O);const ee=U.write(A,w);return ee!==O&&(U=U.slice(0,ee)),U}function D(A){const w=A.length<0?0:V(A.length)|0,O=S(w);for(let U=0;U<w;U+=1)O[U]=A[U]&255;return O}function H(A){if(St(A,p)){const w=new p(A);return I(w.buffer,w.byteOffset,w.byteLength)}return D(A)}function I(A,w,O){if(w<0||A.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(A.byteLength<w+(O||0))throw new RangeError('"length" is outside of buffer bounds');let U;return w===void 0&&O===void 0?U=new p(A):O===void 0?U=new p(A,w):U=new p(A,w,O),Object.setPrototypeOf(U,b.prototype),U}function z(A){if(b.isBuffer(A)){const w=V(A.length)|0,O=S(w);return O.length===0||A.copy(O,0,0,w),O}if(A.length!==void 0)return typeof A.length!="number"||Pt(A.length)?S(0):D(A);if(A.type==="Buffer"&&Array.isArray(A.data))return D(A.data)}function V(A){if(A>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return A|0}function B(A){return+A!=A&&(A=0),b.alloc(+A)}b.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==b.prototype},b.compare=function(w,O){if(St(w,p)&&(w=b.from(w,w.offset,w.byteLength)),St(O,p)&&(O=b.from(O,O.offset,O.byteLength)),!b.isBuffer(w)||!b.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===O)return 0;let U=w.length,ee=O.length;for(let ve=0,Se=Math.min(U,ee);ve<Se;++ve)if(w[ve]!==O[ve]){U=w[ve],ee=O[ve];break}return U<ee?-1:ee<U?1:0},b.isEncoding=function(w){switch(String(w).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}},b.concat=function(w,O){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return b.alloc(0);let U;if(O===void 0)for(O=0,U=0;U<w.length;++U)O+=w[U].length;const ee=b.allocUnsafe(O);let ve=0;for(U=0;U<w.length;++U){let Se=w[U];if(St(Se,p))ve+Se.length>ee.length?(b.isBuffer(Se)||(Se=b.from(Se)),Se.copy(ee,ve)):p.prototype.set.call(ee,Se,ve);else if(b.isBuffer(Se))Se.copy(ee,ve);else throw new TypeError('"list" argument must be an Array of Buffers');ve+=Se.length}return ee};function W(A,w){if(b.isBuffer(A))return A.length;if(f.isView(A)||St(A,f))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);const O=A.length,U=arguments.length>2&&arguments[2]===!0;if(!U&&O===0)return 0;let ee=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return rn(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return tt(A).length;default:if(ee)return U?-1:rn(A).length;w=(""+w).toLowerCase(),ee=!0}}b.byteLength=W;function K(A,w,O){let U=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,w>>>=0,O<=w))return"";for(A||(A="utf8");;)switch(A){case"hex":return ue(this,w,O);case"utf8":case"utf-8":return ge(this,w,O);case"ascii":return pe(this,w,O);case"latin1":case"binary":return G(this,w,O);case"base64":return we(this,w,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,w,O);default:if(U)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),U=!0}}b.prototype._isBuffer=!0;function Z(A,w,O){const U=A[w];A[w]=A[O],A[O]=U}b.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<w;O+=2)Z(this,O,O+1);return this},b.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<w;O+=4)Z(this,O,O+3),Z(this,O+1,O+2);return this},b.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<w;O+=8)Z(this,O,O+7),Z(this,O+1,O+6),Z(this,O+2,O+5),Z(this,O+3,O+4);return this},b.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?ge(this,0,w):K.apply(this,arguments)},b.prototype.toLocaleString=b.prototype.toString,b.prototype.equals=function(w){if(!b.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:b.compare(this,w)===0},b.prototype.inspect=function(){let w="";const O=t.INSPECT_MAX_BYTES;return w=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(w+=" ... "),"<Buffer "+w+">"},o&&(b.prototype[o]=b.prototype.inspect),b.prototype.compare=function(w,O,U,ee,ve){if(St(w,p)&&(w=b.from(w,w.offset,w.byteLength)),!b.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(O===void 0&&(O=0),U===void 0&&(U=w?w.length:0),ee===void 0&&(ee=0),ve===void 0&&(ve=this.length),O<0||U>w.length||ee<0||ve>this.length)throw new RangeError("out of range index");if(ee>=ve&&O>=U)return 0;if(ee>=ve)return-1;if(O>=U)return 1;if(O>>>=0,U>>>=0,ee>>>=0,ve>>>=0,this===w)return 0;let Se=ve-ee,Xe=U-O;const mt=Math.min(Se,Xe),gt=this.slice(ee,ve),Ct=w.slice(O,U);for(let Dt=0;Dt<mt;++Dt)if(gt[Dt]!==Ct[Dt]){Se=gt[Dt],Xe=Ct[Dt];break}return Se<Xe?-1:Xe<Se?1:0};function ie(A,w,O,U,ee){if(A.length===0)return-1;if(typeof O=="string"?(U=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,Pt(O)&&(O=ee?0:A.length-1),O<0&&(O=A.length+O),O>=A.length){if(ee)return-1;O=A.length-1}else if(O<0)if(ee)O=0;else return-1;if(typeof w=="string"&&(w=b.from(w,U)),b.isBuffer(w))return w.length===0?-1:Y(A,w,O,U,ee);if(typeof w=="number")return w=w&255,typeof p.prototype.indexOf=="function"?ee?p.prototype.indexOf.call(A,w,O):p.prototype.lastIndexOf.call(A,w,O):Y(A,[w],O,U,ee);throw new TypeError("val must be string, number or Buffer")}function Y(A,w,O,U,ee){let ve=1,Se=A.length,Xe=w.length;if(U!==void 0&&(U=String(U).toLowerCase(),U==="ucs2"||U==="ucs-2"||U==="utf16le"||U==="utf-16le")){if(A.length<2||w.length<2)return-1;ve=2,Se/=2,Xe/=2,O/=2}function mt(Ct,Dt){return ve===1?Ct[Dt]:Ct.readUInt16BE(Dt*ve)}let gt;if(ee){let Ct=-1;for(gt=O;gt<Se;gt++)if(mt(A,gt)===mt(w,Ct===-1?0:gt-Ct)){if(Ct===-1&&(Ct=gt),gt-Ct+1===Xe)return Ct*ve}else Ct!==-1&&(gt-=gt-Ct),Ct=-1}else for(O+Xe>Se&&(O=Se-Xe),gt=O;gt>=0;gt--){let Ct=!0;for(let Dt=0;Dt<Xe;Dt++)if(mt(A,gt+Dt)!==mt(w,Dt)){Ct=!1;break}if(Ct)return gt}return-1}b.prototype.includes=function(w,O,U){return this.indexOf(w,O,U)!==-1},b.prototype.indexOf=function(w,O,U){return ie(this,w,O,U,!0)},b.prototype.lastIndexOf=function(w,O,U){return ie(this,w,O,U,!1)};function J(A,w,O,U){O=Number(O)||0;const ee=A.length-O;U?(U=Number(U),U>ee&&(U=ee)):U=ee;const ve=w.length;U>ve/2&&(U=ve/2);let Se;for(Se=0;Se<U;++Se){const Xe=parseInt(w.substr(Se*2,2),16);if(Pt(Xe))return Se;A[O+Se]=Xe}return Se}function oe(A,w,O,U){return an(rn(w,A.length-O),A,O,U)}function X(A,w,O,U){return an(bt(w),A,O,U)}function ne(A,w,O,U){return an(tt(w),A,O,U)}function de(A,w,O,U){return an(Ut(w,A.length-O),A,O,U)}b.prototype.write=function(w,O,U,ee){if(O===void 0)ee="utf8",U=this.length,O=0;else if(U===void 0&&typeof O=="string")ee=O,U=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(U)?(U=U>>>0,ee===void 0&&(ee="utf8")):(ee=U,U=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ve=this.length-O;if((U===void 0||U>ve)&&(U=ve),w.length>0&&(U<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");let Se=!1;for(;;)switch(ee){case"hex":return J(this,w,O,U);case"utf8":case"utf-8":return oe(this,w,O,U);case"ascii":case"latin1":case"binary":return X(this,w,O,U);case"base64":return ne(this,w,O,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,w,O,U);default:if(Se)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),Se=!0}},b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function we(A,w,O){return w===0&&O===A.length?r.fromByteArray(A):r.fromByteArray(A.slice(w,O))}function ge(A,w,O){O=Math.min(A.length,O);const U=[];let ee=w;for(;ee<O;){const ve=A[ee];let Se=null,Xe=ve>239?4:ve>223?3:ve>191?2:1;if(ee+Xe<=O){let mt,gt,Ct,Dt;switch(Xe){case 1:ve<128&&(Se=ve);break;case 2:mt=A[ee+1],(mt&192)===128&&(Dt=(ve&31)<<6|mt&63,Dt>127&&(Se=Dt));break;case 3:mt=A[ee+1],gt=A[ee+2],(mt&192)===128&&(gt&192)===128&&(Dt=(ve&15)<<12|(mt&63)<<6|gt&63,Dt>2047&&(Dt<55296||Dt>57343)&&(Se=Dt));break;case 4:mt=A[ee+1],gt=A[ee+2],Ct=A[ee+3],(mt&192)===128&&(gt&192)===128&&(Ct&192)===128&&(Dt=(ve&15)<<18|(mt&63)<<12|(gt&63)<<6|Ct&63,Dt>65535&&Dt<1114112&&(Se=Dt))}}Se===null?(Se=65533,Xe=1):Se>65535&&(Se-=65536,U.push(Se>>>10&1023|55296),Se=56320|Se&1023),U.push(Se),ee+=Xe}return Re(U)}const le=4096;function Re(A){const w=A.length;if(w<=le)return String.fromCharCode.apply(String,A);let O="",U=0;for(;U<w;)O+=String.fromCharCode.apply(String,A.slice(U,U+=le));return O}function pe(A,w,O){let U="";O=Math.min(A.length,O);for(let ee=w;ee<O;++ee)U+=String.fromCharCode(A[ee]&127);return U}function G(A,w,O){let U="";O=Math.min(A.length,O);for(let ee=w;ee<O;++ee)U+=String.fromCharCode(A[ee]);return U}function ue(A,w,O){const U=A.length;(!w||w<0)&&(w=0),(!O||O<0||O>U)&&(O=U);let ee="";for(let ve=w;ve<O;++ve)ee+=Un[A[ve]];return ee}function De(A,w,O){const U=A.slice(w,O);let ee="";for(let ve=0;ve<U.length-1;ve+=2)ee+=String.fromCharCode(U[ve]+U[ve+1]*256);return ee}b.prototype.slice=function(w,O){const U=this.length;w=~~w,O=O===void 0?U:~~O,w<0?(w+=U,w<0&&(w=0)):w>U&&(w=U),O<0?(O+=U,O<0&&(O=0)):O>U&&(O=U),O<w&&(O=w);const ee=this.subarray(w,O);return Object.setPrototypeOf(ee,b.prototype),ee};function ye(A,w,O){if(A%1!==0||A<0)throw new RangeError("offset is not uint");if(A+w>O)throw new RangeError("Trying to access beyond buffer length")}b.prototype.readUintLE=b.prototype.readUIntLE=function(w,O,U){w=w>>>0,O=O>>>0,U||ye(w,O,this.length);let ee=this[w],ve=1,Se=0;for(;++Se<O&&(ve*=256);)ee+=this[w+Se]*ve;return ee},b.prototype.readUintBE=b.prototype.readUIntBE=function(w,O,U){w=w>>>0,O=O>>>0,U||ye(w,O,this.length);let ee=this[w+--O],ve=1;for(;O>0&&(ve*=256);)ee+=this[w+--O]*ve;return ee},b.prototype.readUint8=b.prototype.readUInt8=function(w,O){return w=w>>>0,O||ye(w,1,this.length),this[w]},b.prototype.readUint16LE=b.prototype.readUInt16LE=function(w,O){return w=w>>>0,O||ye(w,2,this.length),this[w]|this[w+1]<<8},b.prototype.readUint16BE=b.prototype.readUInt16BE=function(w,O){return w=w>>>0,O||ye(w,2,this.length),this[w]<<8|this[w+1]},b.prototype.readUint32LE=b.prototype.readUInt32LE=function(w,O){return w=w>>>0,O||ye(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},b.prototype.readUint32BE=b.prototype.readUInt32BE=function(w,O){return w=w>>>0,O||ye(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},b.prototype.readBigUInt64LE=Cn(function(w){w=w>>>0,st(w,"offset");const O=this[w],U=this[w+7];(O===void 0||U===void 0)&&sn(w,this.length-8);const ee=O+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,ve=this[++w]+this[++w]*2**8+this[++w]*2**16+U*2**24;return BigInt(ee)+(BigInt(ve)<<BigInt(32))}),b.prototype.readBigUInt64BE=Cn(function(w){w=w>>>0,st(w,"offset");const O=this[w],U=this[w+7];(O===void 0||U===void 0)&&sn(w,this.length-8);const ee=O*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],ve=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+U;return(BigInt(ee)<<BigInt(32))+BigInt(ve)}),b.prototype.readIntLE=function(w,O,U){w=w>>>0,O=O>>>0,U||ye(w,O,this.length);let ee=this[w],ve=1,Se=0;for(;++Se<O&&(ve*=256);)ee+=this[w+Se]*ve;return ve*=128,ee>=ve&&(ee-=Math.pow(2,8*O)),ee},b.prototype.readIntBE=function(w,O,U){w=w>>>0,O=O>>>0,U||ye(w,O,this.length);let ee=O,ve=1,Se=this[w+--ee];for(;ee>0&&(ve*=256);)Se+=this[w+--ee]*ve;return ve*=128,Se>=ve&&(Se-=Math.pow(2,8*O)),Se},b.prototype.readInt8=function(w,O){return w=w>>>0,O||ye(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},b.prototype.readInt16LE=function(w,O){w=w>>>0,O||ye(w,2,this.length);const U=this[w]|this[w+1]<<8;return U&32768?U|4294901760:U},b.prototype.readInt16BE=function(w,O){w=w>>>0,O||ye(w,2,this.length);const U=this[w+1]|this[w]<<8;return U&32768?U|4294901760:U},b.prototype.readInt32LE=function(w,O){return w=w>>>0,O||ye(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},b.prototype.readInt32BE=function(w,O){return w=w>>>0,O||ye(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},b.prototype.readBigInt64LE=Cn(function(w){w=w>>>0,st(w,"offset");const O=this[w],U=this[w+7];(O===void 0||U===void 0)&&sn(w,this.length-8);const ee=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(U<<24);return(BigInt(ee)<<BigInt(32))+BigInt(O+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),b.prototype.readBigInt64BE=Cn(function(w){w=w>>>0,st(w,"offset");const O=this[w],U=this[w+7];(O===void 0||U===void 0)&&sn(w,this.length-8);const ee=(O<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(ee)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+U)}),b.prototype.readFloatLE=function(w,O){return w=w>>>0,O||ye(w,4,this.length),i.read(this,w,!0,23,4)},b.prototype.readFloatBE=function(w,O){return w=w>>>0,O||ye(w,4,this.length),i.read(this,w,!1,23,4)},b.prototype.readDoubleLE=function(w,O){return w=w>>>0,O||ye(w,8,this.length),i.read(this,w,!0,52,8)},b.prototype.readDoubleBE=function(w,O){return w=w>>>0,O||ye(w,8,this.length),i.read(this,w,!1,52,8)};function Le(A,w,O,U,ee,ve){if(!b.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>ee||w<ve)throw new RangeError('"value" argument is out of bounds');if(O+U>A.length)throw new RangeError("Index out of range")}b.prototype.writeUintLE=b.prototype.writeUIntLE=function(w,O,U,ee){if(w=+w,O=O>>>0,U=U>>>0,!ee){const Xe=Math.pow(2,8*U)-1;Le(this,w,O,U,Xe,0)}let ve=1,Se=0;for(this[O]=w&255;++Se<U&&(ve*=256);)this[O+Se]=w/ve&255;return O+U},b.prototype.writeUintBE=b.prototype.writeUIntBE=function(w,O,U,ee){if(w=+w,O=O>>>0,U=U>>>0,!ee){const Xe=Math.pow(2,8*U)-1;Le(this,w,O,U,Xe,0)}let ve=U-1,Se=1;for(this[O+ve]=w&255;--ve>=0&&(Se*=256);)this[O+ve]=w/Se&255;return O+U},b.prototype.writeUint8=b.prototype.writeUInt8=function(w,O,U){return w=+w,O=O>>>0,U||Le(this,w,O,1,255,0),this[O]=w&255,O+1},b.prototype.writeUint16LE=b.prototype.writeUInt16LE=function(w,O,U){return w=+w,O=O>>>0,U||Le(this,w,O,2,65535,0),this[O]=w&255,this[O+1]=w>>>8,O+2},b.prototype.writeUint16BE=b.prototype.writeUInt16BE=function(w,O,U){return w=+w,O=O>>>0,U||Le(this,w,O,2,65535,0),this[O]=w>>>8,this[O+1]=w&255,O+2},b.prototype.writeUint32LE=b.prototype.writeUInt32LE=function(w,O,U){return w=+w,O=O>>>0,U||Le(this,w,O,4,4294967295,0),this[O+3]=w>>>24,this[O+2]=w>>>16,this[O+1]=w>>>8,this[O]=w&255,O+4},b.prototype.writeUint32BE=b.prototype.writeUInt32BE=function(w,O,U){return w=+w,O=O>>>0,U||Le(this,w,O,4,4294967295,0),this[O]=w>>>24,this[O+1]=w>>>16,this[O+2]=w>>>8,this[O+3]=w&255,O+4};function We(A,w,O,U,ee){yt(w,U,ee,A,O,7);let ve=Number(w&BigInt(4294967295));A[O++]=ve,ve=ve>>8,A[O++]=ve,ve=ve>>8,A[O++]=ve,ve=ve>>8,A[O++]=ve;let Se=Number(w>>BigInt(32)&BigInt(4294967295));return A[O++]=Se,Se=Se>>8,A[O++]=Se,Se=Se>>8,A[O++]=Se,Se=Se>>8,A[O++]=Se,O}function Ue(A,w,O,U,ee){yt(w,U,ee,A,O,7);let ve=Number(w&BigInt(4294967295));A[O+7]=ve,ve=ve>>8,A[O+6]=ve,ve=ve>>8,A[O+5]=ve,ve=ve>>8,A[O+4]=ve;let Se=Number(w>>BigInt(32)&BigInt(4294967295));return A[O+3]=Se,Se=Se>>8,A[O+2]=Se,Se=Se>>8,A[O+1]=Se,Se=Se>>8,A[O]=Se,O+8}b.prototype.writeBigUInt64LE=Cn(function(w,O=0){return We(this,w,O,BigInt(0),BigInt("0xffffffffffffffff"))}),b.prototype.writeBigUInt64BE=Cn(function(w,O=0){return Ue(this,w,O,BigInt(0),BigInt("0xffffffffffffffff"))}),b.prototype.writeIntLE=function(w,O,U,ee){if(w=+w,O=O>>>0,!ee){const mt=Math.pow(2,8*U-1);Le(this,w,O,U,mt-1,-mt)}let ve=0,Se=1,Xe=0;for(this[O]=w&255;++ve<U&&(Se*=256);)w<0&&Xe===0&&this[O+ve-1]!==0&&(Xe=1),this[O+ve]=(w/Se>>0)-Xe&255;return O+U},b.prototype.writeIntBE=function(w,O,U,ee){if(w=+w,O=O>>>0,!ee){const mt=Math.pow(2,8*U-1);Le(this,w,O,U,mt-1,-mt)}let ve=U-1,Se=1,Xe=0;for(this[O+ve]=w&255;--ve>=0&&(Se*=256);)w<0&&Xe===0&&this[O+ve+1]!==0&&(Xe=1),this[O+ve]=(w/Se>>0)-Xe&255;return O+U},b.prototype.writeInt8=function(w,O,U){return w=+w,O=O>>>0,U||Le(this,w,O,1,127,-128),w<0&&(w=255+w+1),this[O]=w&255,O+1},b.prototype.writeInt16LE=function(w,O,U){return w=+w,O=O>>>0,U||Le(this,w,O,2,32767,-32768),this[O]=w&255,this[O+1]=w>>>8,O+2},b.prototype.writeInt16BE=function(w,O,U){return w=+w,O=O>>>0,U||Le(this,w,O,2,32767,-32768),this[O]=w>>>8,this[O+1]=w&255,O+2},b.prototype.writeInt32LE=function(w,O,U){return w=+w,O=O>>>0,U||Le(this,w,O,4,2147483647,-2147483648),this[O]=w&255,this[O+1]=w>>>8,this[O+2]=w>>>16,this[O+3]=w>>>24,O+4},b.prototype.writeInt32BE=function(w,O,U){return w=+w,O=O>>>0,U||Le(this,w,O,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[O]=w>>>24,this[O+1]=w>>>16,this[O+2]=w>>>8,this[O+3]=w&255,O+4},b.prototype.writeBigInt64LE=Cn(function(w,O=0){return We(this,w,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),b.prototype.writeBigInt64BE=Cn(function(w,O=0){return Ue(this,w,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(A,w,O,U,ee,ve){if(O+U>A.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function Qe(A,w,O,U,ee){return w=+w,O=O>>>0,ee||qe(A,w,O,4),i.write(A,w,O,U,23,4),O+4}b.prototype.writeFloatLE=function(w,O,U){return Qe(this,w,O,!0,U)},b.prototype.writeFloatBE=function(w,O,U){return Qe(this,w,O,!1,U)};function ft(A,w,O,U,ee){return w=+w,O=O>>>0,ee||qe(A,w,O,8),i.write(A,w,O,U,52,8),O+8}b.prototype.writeDoubleLE=function(w,O,U){return ft(this,w,O,!0,U)},b.prototype.writeDoubleBE=function(w,O,U){return ft(this,w,O,!1,U)},b.prototype.copy=function(w,O,U,ee){if(!b.isBuffer(w))throw new TypeError("argument should be a Buffer");if(U||(U=0),!ee&&ee!==0&&(ee=this.length),O>=w.length&&(O=w.length),O||(O=0),ee>0&&ee<U&&(ee=U),ee===U||w.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),w.length-O<ee-U&&(ee=w.length-O+U);const ve=ee-U;return this===w&&typeof p.prototype.copyWithin=="function"?this.copyWithin(O,U,ee):p.prototype.set.call(w,this.subarray(U,ee),O),ve},b.prototype.fill=function(w,O,U,ee){if(typeof w=="string"){if(typeof O=="string"?(ee=O,O=0,U=this.length):typeof U=="string"&&(ee=U,U=this.length),ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!b.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(w.length===1){const Se=w.charCodeAt(0);(ee==="utf8"&&Se<128||ee==="latin1")&&(w=Se)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(O<0||this.length<O||this.length<U)throw new RangeError("Out of range index");if(U<=O)return this;O=O>>>0,U=U===void 0?this.length:U>>>0,w||(w=0);let ve;if(typeof w=="number")for(ve=O;ve<U;++ve)this[ve]=w;else{const Se=b.isBuffer(w)?w:b.from(w,ee),Xe=Se.length;if(Xe===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(ve=0;ve<U-O;++ve)this[ve+O]=Se[ve%Xe]}return this};const rt={};function Tt(A,w,O){rt[A]=class extends O{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${A}]`,this.stack,delete this.name}get code(){return A}set code(ee){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ee,writable:!0})}toString(){return`${this.name} [${A}]: ${this.message}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(A,w){return`The "${A}" argument must be of type number. Received type ${typeof w}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(A,w,O){let U=`The value of "${A}" is out of range.`,ee=O;return Number.isInteger(O)&&Math.abs(O)>2**32?ee=_t(String(O)):typeof O=="bigint"&&(ee=String(O),(O>BigInt(2)**BigInt(32)||O<-(BigInt(2)**BigInt(32)))&&(ee=_t(ee)),ee+="n"),U+=` It must be ${w}. Received ${ee}`,U},RangeError);function _t(A){let w="",O=A.length;const U=A[0]==="-"?1:0;for(;O>=U+4;O-=3)w=`_${A.slice(O-3,O)}${w}`;return`${A.slice(0,O)}${w}`}function $e(A,w,O){st(w,"offset"),(A[w]===void 0||A[w+O]===void 0)&&sn(w,A.length-(O+1))}function yt(A,w,O,U,ee,ve){if(A>O||A<w){const Se=typeof w=="bigint"?"n":"";let Xe;throw w===0||w===BigInt(0)?Xe=`>= 0${Se} and < 2${Se} ** ${(ve+1)*8}${Se}`:Xe=`>= -(2${Se} ** ${(ve+1)*8-1}${Se}) and < 2 ** ${(ve+1)*8-1}${Se}`,new rt.ERR_OUT_OF_RANGE("value",Xe,A)}$e(U,ee,ve)}function st(A,w){if(typeof A!="number")throw new rt.ERR_INVALID_ARG_TYPE(w,"number",A)}function sn(A,w,O){throw Math.floor(A)!==A?(st(A,O),new rt.ERR_OUT_OF_RANGE("offset","an integer",A)):w<0?new rt.ERR_BUFFER_OUT_OF_BOUNDS:new rt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,A)}const cn=/[^+/0-9A-Za-z-_]/g;function pn(A){if(A=A.split("=")[0],A=A.trim().replace(cn,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function rn(A,w){w=w||1/0;let O;const U=A.length;let ee=null;const ve=[];for(let Se=0;Se<U;++Se){if(O=A.charCodeAt(Se),O>55295&&O<57344){if(!ee){if(O>56319){(w-=3)>-1&&ve.push(239,191,189);continue}else if(Se+1===U){(w-=3)>-1&&ve.push(239,191,189);continue}ee=O;continue}if(O<56320){(w-=3)>-1&&ve.push(239,191,189),ee=O;continue}O=(ee-55296<<10|O-56320)+65536}else ee&&(w-=3)>-1&&ve.push(239,191,189);if(ee=null,O<128){if((w-=1)<0)break;ve.push(O)}else if(O<2048){if((w-=2)<0)break;ve.push(O>>6|192,O&63|128)}else if(O<65536){if((w-=3)<0)break;ve.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((w-=4)<0)break;ve.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return ve}function bt(A){const w=[];for(let O=0;O<A.length;++O)w.push(A.charCodeAt(O)&255);return w}function Ut(A,w){let O,U,ee;const ve=[];for(let Se=0;Se<A.length&&!((w-=2)<0);++Se)O=A.charCodeAt(Se),U=O>>8,ee=O%256,ve.push(ee),ve.push(U);return ve}function tt(A){return r.toByteArray(pn(A))}function an(A,w,O,U){let ee;for(ee=0;ee<U&&!(ee+O>=w.length||ee>=A.length);++ee)w[ee+O]=A[ee];return ee}function St(A,w){return A instanceof w||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===w.name}function Pt(A){return A!==A}const Un=function(){const A="0123456789abcdef",w=new Array(256);for(let O=0;O<16;++O){const U=O*16;for(let ee=0;ee<16;++ee)w[U+ee]=A[O]+A[ee]}return w}();function Cn(A){return typeof BigInt>"u"?Jn:A}function Jn(){throw new Error("BigInt not supported")}})(JN);const AV=JN.Buffer;function Qn(t,r,i,o,u){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),o&&(this.request=o),u&&(this.response=u)}Ie.inherits(Qn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ie.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const eD=Qn.prototype,tD={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{tD[t]={value:t}}),Object.defineProperties(Qn,tD),Object.defineProperty(eD,"isAxiosError",{value:!0}),Qn.from=(t,r,i,o,u,p)=>{const f=Object.create(eD);return Ie.toFlatObject(t,f,function(y){return y!==Error.prototype},g=>g!=="isAxiosError"),Qn.call(f,t.message,r,i,o,u),f.cause=t,f.name=t.name,p&&Object.assign(f,p),f};const $V=null;function vw(t){return Ie.isPlainObject(t)||Ie.isArray(t)}function nD(t){return Ie.endsWith(t,"[]")?t.slice(0,-2):t}function rD(t,r,i){return t?t.concat(r).map(function(u,p){return u=nD(u),!i&&p?"["+u+"]":u}).join(i?".":""):r}function LV(t){return Ie.isArray(t)&&!t.some(vw)}const FV=Ie.toFlatObject(Ie,{},null,function(r){return/^is[A-Z]/.test(r)});function Yy(t,r,i){if(!Ie.isObject(t))throw new TypeError("target must be an object");r=r||new FormData,i=Ie.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(L,D){return!Ie.isUndefined(D[L])});const o=i.metaTokens,u=i.visitor||b,p=i.dots,f=i.indexes,y=(i.Blob||typeof Blob<"u"&&Blob)&&Ie.isSpecCompliantForm(r);if(!Ie.isFunction(u))throw new TypeError("visitor must be a function");function S(N){if(N===null)return"";if(Ie.isDate(N))return N.toISOString();if(!y&&Ie.isBlob(N))throw new Qn("Blob is not supported. Use a Buffer instead.");return Ie.isArrayBuffer(N)||Ie.isTypedArray(N)?y&&typeof Blob=="function"?new Blob([N]):AV.from(N):N}function b(N,L,D){let H=N;if(N&&!D&&typeof N=="object"){if(Ie.endsWith(L,"{}"))L=o?L:L.slice(0,-2),N=JSON.stringify(N);else if(Ie.isArray(N)&&LV(N)||(Ie.isFileList(N)||Ie.endsWith(L,"[]"))&&(H=Ie.toArray(N)))return L=nD(L),H.forEach(function(z,V){!(Ie.isUndefined(z)||z===null)&&r.append(f===!0?rD([L],V,p):f===null?L:L+"[]",S(z))}),!1}return vw(N)?!0:(r.append(rD(D,L,p),S(N)),!1)}const R=[],_=Object.assign(FV,{defaultVisitor:b,convertValue:S,isVisitable:vw});function P(N,L){if(!Ie.isUndefined(N)){if(R.indexOf(N)!==-1)throw Error("Circular reference detected in "+L.join("."));R.push(N),Ie.forEach(N,function(H,I){(!(Ie.isUndefined(H)||H===null)&&u.call(r,H,Ie.isString(I)?I.trim():I,L,_))===!0&&P(H,L?L.concat(I):[I])}),R.pop()}}if(!Ie.isObject(t))throw new TypeError("data must be an object");return P(t),r}function iD(t){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function hw(t,r){this._pairs=[],t&&Yy(t,this,r)}const aD=hw.prototype;aD.append=function(r,i){this._pairs.push([r,i])},aD.toString=function(r){const i=r?function(o){return r.call(this,o,iD)}:iD;return this._pairs.map(function(u){return i(u[0])+"="+i(u[1])},"").join("&")};function IV(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oD(t,r,i){if(!r)return t;const o=i&&i.encode||IV,u=i&&i.serialize;let p;if(u?p=u(r,i):p=Ie.isURLSearchParams(r)?r.toString():new hw(r,i).toString(o),p){const f=t.indexOf("#");f!==-1&&(t=t.slice(0,f)),t+=(t.indexOf("?")===-1?"?":"&")+p}return t}class lD{constructor(){this.handlers=[]}use(r,i,o){return this.handlers.push({fulfilled:r,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Ie.forEach(this.handlers,function(o){o!==null&&r(o)})}}const uD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zV=typeof URLSearchParams<"u"?URLSearchParams:hw,jV=typeof FormData<"u"?FormData:null,UV=typeof Blob<"u"?Blob:null,BV=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),VV=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ru={classes:{URLSearchParams:zV,FormData:jV,Blob:UV},isStandardBrowserEnv:BV,isStandardBrowserWebWorkerEnv:VV,protocols:["http","https","file","blob","url","data"]};function HV(t,r){return Yy(t,new ru.classes.URLSearchParams,Object.assign({visitor:function(i,o,u,p){return ru.isNode&&Ie.isBuffer(i)?(this.append(o,i.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},r))}function WV(t){return Ie.matchAll(/\w+|\[(\w*)]/g,t).map(r=>r[0]==="[]"?"":r[1]||r[0])}function qV(t){const r={},i=Object.keys(t);let o;const u=i.length;let p;for(o=0;o<u;o++)p=i[o],r[p]=t[p];return r}function sD(t){function r(i,o,u,p){let f=i[p++];const g=Number.isFinite(+f),y=p>=i.length;return f=!f&&Ie.isArray(u)?u.length:f,y?(Ie.hasOwnProp(u,f)?u[f]=[u[f],o]:u[f]=o,!g):((!u[f]||!Ie.isObject(u[f]))&&(u[f]=[]),r(i,o,u[f],p)&&Ie.isArray(u[f])&&(u[f]=qV(u[f])),!g)}if(Ie.isFormData(t)&&Ie.isFunction(t.entries)){const i={};return Ie.forEachEntry(t,(o,u)=>{r(WV(o),u,i,0)}),i}return null}const KV={"Content-Type":void 0};function YV(t,r,i){if(Ie.isString(t))try{return(r||JSON.parse)(t),Ie.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(i||JSON.stringify)(t)}const Bd={transitional:uD,adapter:["xhr","http"],transformRequest:[function(r,i){const o=i.getContentType()||"",u=o.indexOf("application/json")>-1,p=Ie.isObject(r);if(p&&Ie.isHTMLForm(r)&&(r=new FormData(r)),Ie.isFormData(r))return u&&u?JSON.stringify(sD(r)):r;if(Ie.isArrayBuffer(r)||Ie.isBuffer(r)||Ie.isStream(r)||Ie.isFile(r)||Ie.isBlob(r))return r;if(Ie.isArrayBufferView(r))return r.buffer;if(Ie.isURLSearchParams(r))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let g;if(p){if(o.indexOf("application/x-www-form-urlencoded")>-1)return HV(r,this.formSerializer).toString();if((g=Ie.isFileList(r))||o.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Yy(g?{"files[]":r}:r,y&&new y,this.formSerializer)}}return p||u?(i.setContentType("application/json",!1),YV(r)):r}],transformResponse:[function(r){const i=this.transitional||Bd.transitional,o=i&&i.forcedJSONParsing,u=this.responseType==="json";if(r&&Ie.isString(r)&&(o&&!this.responseType||u)){const f=!(i&&i.silentJSONParsing)&&u;try{return JSON.parse(r)}catch(g){if(f)throw g.name==="SyntaxError"?Qn.from(g,Qn.ERR_BAD_RESPONSE,this,null,this.response):g}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ru.classes.FormData,Blob:ru.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ie.forEach(["delete","get","head"],function(r){Bd.headers[r]={}}),Ie.forEach(["post","put","patch"],function(r){Bd.headers[r]=Ie.merge(KV)});const GV=Ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),XV=t=>{const r={};let i,o,u;return t&&t.split(`
|
|
398
|
-
`).forEach(function(f){u=f.indexOf(":"),i=f.substring(0,u).trim().toLowerCase(),o=f.substring(u+1).trim(),!(!i||r[i]&&GV[i])&&(i==="set-cookie"?r[i]?r[i].push(o):r[i]=[o]:r[i]=r[i]?r[i]+", "+o:o)}),r},cD=Symbol("internals");function _h(t){return t&&String(t).trim().toLowerCase()}function Gy(t){return t===!1||t==null?t:Ie.isArray(t)?t.map(Gy):String(t)}function QV(t){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=i.exec(t);)r[o[1]]=o[2];return r}const JV=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function mw(t,r,i,o,u){if(Ie.isFunction(o))return o.call(this,r,i);if(u&&(r=i),!!Ie.isString(r)){if(Ie.isString(o))return r.indexOf(o)!==-1;if(Ie.isRegExp(o))return o.test(r)}}function ZV(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,o)=>i.toUpperCase()+o)}function e4(t,r){const i=Ie.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+i,{value:function(u,p,f){return this[o].call(this,r,u,p,f)},configurable:!0})})}let Ko=class{constructor(r){r&&this.set(r)}set(r,i,o){const u=this;function p(g,y,S){const b=_h(y);if(!b)throw new Error("header name must be a non-empty string");const R=Ie.findKey(u,b);(!R||u[R]===void 0||S===!0||S===void 0&&u[R]!==!1)&&(u[R||y]=Gy(g))}const f=(g,y)=>Ie.forEach(g,(S,b)=>p(S,b,y));return Ie.isPlainObject(r)||r instanceof this.constructor?f(r,i):Ie.isString(r)&&(r=r.trim())&&!JV(r)?f(XV(r),i):r!=null&&p(i,r,o),this}get(r,i){if(r=_h(r),r){const o=Ie.findKey(this,r);if(o){const u=this[o];if(!i)return u;if(i===!0)return QV(u);if(Ie.isFunction(i))return i.call(this,u,o);if(Ie.isRegExp(i))return i.exec(u);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=_h(r),r){const o=Ie.findKey(this,r);return!!(o&&this[o]!==void 0&&(!i||mw(this,this[o],o,i)))}return!1}delete(r,i){const o=this;let u=!1;function p(f){if(f=_h(f),f){const g=Ie.findKey(o,f);g&&(!i||mw(o,o[g],g,i))&&(delete o[g],u=!0)}}return Ie.isArray(r)?r.forEach(p):p(r),u}clear(r){const i=Object.keys(this);let o=i.length,u=!1;for(;o--;){const p=i[o];(!r||mw(this,this[p],p,r,!0))&&(delete this[p],u=!0)}return u}normalize(r){const i=this,o={};return Ie.forEach(this,(u,p)=>{const f=Ie.findKey(o,p);if(f){i[f]=Gy(u),delete i[p];return}const g=r?ZV(p):String(p).trim();g!==p&&delete i[p],i[g]=Gy(u),o[g]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return Ie.forEach(this,(o,u)=>{o!=null&&o!==!1&&(i[u]=r&&Ie.isArray(o)?o.join(", "):o)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
|
|
399
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const o=new this(r);return i.forEach(u=>o.set(u)),o}static accessor(r){const o=(this[cD]=this[cD]={accessors:{}}).accessors,u=this.prototype;function p(f){const g=_h(f);o[g]||(e4(u,f),o[g]=!0)}return Ie.isArray(r)?r.forEach(p):p(r),this}};Ko.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ie.freezeMethods(Ko.prototype),Ie.freezeMethods(Ko);function gw(t,r){const i=this||Bd,o=r||i,u=Ko.from(o.headers);let p=o.data;return Ie.forEach(t,function(g){p=g.call(i,p,u.normalize(),r?r.status:void 0)}),u.normalize(),p}function fD(t){return!!(t&&t.__CANCEL__)}function kh(t,r,i){Qn.call(this,t??"canceled",Qn.ERR_CANCELED,r,i),this.name="CanceledError"}Ie.inherits(kh,Qn,{__CANCEL__:!0});function t4(t,r,i){const o=i.config.validateStatus;!i.status||!o||o(i.status)?t(i):r(new Qn("Request failed with status code "+i.status,[Qn.ERR_BAD_REQUEST,Qn.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const n4=ru.isStandardBrowserEnv?function(){return{write:function(i,o,u,p,f,g){const y=[];y.push(i+"="+encodeURIComponent(o)),Ie.isNumber(u)&&y.push("expires="+new Date(u).toGMTString()),Ie.isString(p)&&y.push("path="+p),Ie.isString(f)&&y.push("domain="+f),g===!0&&y.push("secure"),document.cookie=y.join("; ")},read:function(i){const o=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function r4(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function i4(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}function dD(t,r){return t&&!r4(r)?i4(t,r):r}const a4=ru.isStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");let o;function u(p){let f=p;return r&&(i.setAttribute("href",f),f=i.href),i.setAttribute("href",f),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return o=u(window.location.href),function(f){const g=Ie.isString(f)?u(f):f;return g.protocol===o.protocol&&g.host===o.host}}():function(){return function(){return!0}}();function o4(t){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}function l4(t,r){t=t||10;const i=new Array(t),o=new Array(t);let u=0,p=0,f;return r=r!==void 0?r:1e3,function(y){const S=Date.now(),b=o[p];f||(f=S),i[u]=y,o[u]=S;let R=p,_=0;for(;R!==u;)_+=i[R++],R=R%t;if(u=(u+1)%t,u===p&&(p=(p+1)%t),S-f<r)return;const P=b&&S-b;return P?Math.round(_*1e3/P):void 0}}function pD(t,r){let i=0;const o=l4(50,250);return u=>{const p=u.loaded,f=u.lengthComputable?u.total:void 0,g=p-i,y=o(g),S=p<=f;i=p;const b={loaded:p,total:f,progress:f?p/f:void 0,bytes:g,rate:y||void 0,estimated:y&&f&&S?(f-p)/y:void 0,event:u};b[r?"download":"upload"]=!0,t(b)}}const Xy={http:$V,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(i,o){let u=t.data;const p=Ko.from(t.headers).normalize(),f=t.responseType;let g;function y(){t.cancelToken&&t.cancelToken.unsubscribe(g),t.signal&&t.signal.removeEventListener("abort",g)}Ie.isFormData(u)&&(ru.isStandardBrowserEnv||ru.isStandardBrowserWebWorkerEnv?p.setContentType(!1):p.setContentType("multipart/form-data;",!1));let S=new XMLHttpRequest;if(t.auth){const P=t.auth.username||"",N=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.set("Authorization","Basic "+btoa(P+":"+N))}const b=dD(t.baseURL,t.url);S.open(t.method.toUpperCase(),oD(b,t.params,t.paramsSerializer),!0),S.timeout=t.timeout;function R(){if(!S)return;const P=Ko.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),L={data:!f||f==="text"||f==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:P,config:t,request:S};t4(function(H){i(H),y()},function(H){o(H),y()},L),S=null}if("onloadend"in S?S.onloadend=R:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(R)},S.onabort=function(){S&&(o(new Qn("Request aborted",Qn.ECONNABORTED,t,S)),S=null)},S.onerror=function(){o(new Qn("Network Error",Qn.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let N=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const L=t.transitional||uD;t.timeoutErrorMessage&&(N=t.timeoutErrorMessage),o(new Qn(N,L.clarifyTimeoutError?Qn.ETIMEDOUT:Qn.ECONNABORTED,t,S)),S=null},ru.isStandardBrowserEnv){const P=(t.withCredentials||a4(b))&&t.xsrfCookieName&&n4.read(t.xsrfCookieName);P&&p.set(t.xsrfHeaderName,P)}u===void 0&&p.setContentType(null),"setRequestHeader"in S&&Ie.forEach(p.toJSON(),function(N,L){S.setRequestHeader(L,N)}),Ie.isUndefined(t.withCredentials)||(S.withCredentials=!!t.withCredentials),f&&f!=="json"&&(S.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&S.addEventListener("progress",pD(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&S.upload&&S.upload.addEventListener("progress",pD(t.onUploadProgress)),(t.cancelToken||t.signal)&&(g=P=>{S&&(o(!P||P.type?new kh(null,t,S):P),S.abort(),S=null)},t.cancelToken&&t.cancelToken.subscribe(g),t.signal&&(t.signal.aborted?g():t.signal.addEventListener("abort",g)));const _=o4(b);if(_&&ru.protocols.indexOf(_)===-1){o(new Qn("Unsupported protocol "+_+":",Qn.ERR_BAD_REQUEST,t));return}S.send(u||null)})}};Ie.forEach(Xy,(t,r)=>{if(t){try{Object.defineProperty(t,"name",{value:r})}catch{}Object.defineProperty(t,"adapterName",{value:r})}});const u4={getAdapter:t=>{t=Ie.isArray(t)?t:[t];const{length:r}=t;let i,o;for(let u=0;u<r&&(i=t[u],!(o=Ie.isString(i)?Xy[i.toLowerCase()]:i));u++);if(!o)throw o===!1?new Qn(`Adapter ${i} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Ie.hasOwnProp(Xy,i)?`Adapter '${i}' is not available in the build`:`Unknown adapter '${i}'`);if(!Ie.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:Xy};function yw(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new kh(null,t)}function vD(t){return yw(t),t.headers=Ko.from(t.headers),t.data=gw.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),u4.getAdapter(t.adapter||Bd.adapter)(t).then(function(o){return yw(t),o.data=gw.call(t,t.transformResponse,o),o.headers=Ko.from(o.headers),o},function(o){return fD(o)||(yw(t),o&&o.response&&(o.response.data=gw.call(t,t.transformResponse,o.response),o.response.headers=Ko.from(o.response.headers))),Promise.reject(o)})}const hD=t=>t instanceof Ko?t.toJSON():t;function Vd(t,r){r=r||{};const i={};function o(S,b,R){return Ie.isPlainObject(S)&&Ie.isPlainObject(b)?Ie.merge.call({caseless:R},S,b):Ie.isPlainObject(b)?Ie.merge({},b):Ie.isArray(b)?b.slice():b}function u(S,b,R){if(Ie.isUndefined(b)){if(!Ie.isUndefined(S))return o(void 0,S,R)}else return o(S,b,R)}function p(S,b){if(!Ie.isUndefined(b))return o(void 0,b)}function f(S,b){if(Ie.isUndefined(b)){if(!Ie.isUndefined(S))return o(void 0,S)}else return o(void 0,b)}function g(S,b,R){if(R in r)return o(S,b);if(R in t)return o(void 0,S)}const y={url:p,method:p,data:p,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:g,headers:(S,b)=>u(hD(S),hD(b),!0)};return Ie.forEach(Object.keys(Object.assign({},t,r)),function(b){const R=y[b]||u,_=R(t[b],r[b],b);Ie.isUndefined(_)&&R!==g||(i[b]=_)}),i}const mD="1.4.0",bw={};["object","boolean","number","function","string","symbol"].forEach((t,r)=>{bw[t]=function(o){return typeof o===t||"a"+(r<1?"n ":" ")+t}});const gD={};bw.transitional=function(r,i,o){function u(p,f){return"[Axios v"+mD+"] Transitional option '"+p+"'"+f+(o?". "+o:"")}return(p,f,g)=>{if(r===!1)throw new Qn(u(f," has been removed"+(i?" in "+i:"")),Qn.ERR_DEPRECATED);return i&&!gD[f]&&(gD[f]=!0,console.warn(u(f," has been deprecated since v"+i+" and will be removed in the near future"))),r?r(p,f,g):!0}};function s4(t,r,i){if(typeof t!="object")throw new Qn("options must be an object",Qn.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let u=o.length;for(;u-- >0;){const p=o[u],f=r[p];if(f){const g=t[p],y=g===void 0||f(g,p,t);if(y!==!0)throw new Qn("option "+p+" must be "+y,Qn.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new Qn("Unknown option "+p,Qn.ERR_BAD_OPTION)}}const Sw={assertOptions:s4,validators:bw},Ws=Sw.validators;let Qc=class{constructor(r){this.defaults=r,this.interceptors={request:new lD,response:new lD}}request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=Vd(this.defaults,i);const{transitional:o,paramsSerializer:u,headers:p}=i;o!==void 0&&Sw.assertOptions(o,{silentJSONParsing:Ws.transitional(Ws.boolean),forcedJSONParsing:Ws.transitional(Ws.boolean),clarifyTimeoutError:Ws.transitional(Ws.boolean)},!1),u!=null&&(Ie.isFunction(u)?i.paramsSerializer={serialize:u}:Sw.assertOptions(u,{encode:Ws.function,serialize:Ws.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let f;f=p&&Ie.merge(p.common,p[i.method]),f&&Ie.forEach(["delete","get","head","post","put","patch","common"],N=>{delete p[N]}),i.headers=Ko.concat(f,p);const g=[];let y=!0;this.interceptors.request.forEach(function(L){typeof L.runWhen=="function"&&L.runWhen(i)===!1||(y=y&&L.synchronous,g.unshift(L.fulfilled,L.rejected))});const S=[];this.interceptors.response.forEach(function(L){S.push(L.fulfilled,L.rejected)});let b,R=0,_;if(!y){const N=[vD.bind(this),void 0];for(N.unshift.apply(N,g),N.push.apply(N,S),_=N.length,b=Promise.resolve(i);R<_;)b=b.then(N[R++],N[R++]);return b}_=g.length;let P=i;for(R=0;R<_;){const N=g[R++],L=g[R++];try{P=N(P)}catch(D){L.call(this,D);break}}try{b=vD.call(this,P)}catch(N){return Promise.reject(N)}for(R=0,_=S.length;R<_;)b=b.then(S[R++],S[R++]);return b}getUri(r){r=Vd(this.defaults,r);const i=dD(r.baseURL,r.url);return oD(i,r.params,r.paramsSerializer)}};Ie.forEach(["delete","get","head","options"],function(r){Qc.prototype[r]=function(i,o){return this.request(Vd(o||{},{method:r,url:i,data:(o||{}).data}))}}),Ie.forEach(["post","put","patch"],function(r){function i(o){return function(p,f,g){return this.request(Vd(g||{},{method:r,headers:o?{"Content-Type":"multipart/form-data"}:{},url:p,data:f}))}}Qc.prototype[r]=i(),Qc.prototype[r+"Form"]=i(!0)});let c4=class WA{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(p){i=p});const o=this;this.promise.then(u=>{if(!o._listeners)return;let p=o._listeners.length;for(;p-- >0;)o._listeners[p](u);o._listeners=null}),this.promise.then=u=>{let p;const f=new Promise(g=>{o.subscribe(g),p=g}).then(u);return f.cancel=function(){o.unsubscribe(p)},f},r(function(p,f,g){o.reason||(o.reason=new kh(p,f,g),i(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}static source(){let r;return{token:new WA(function(u){r=u}),cancel:r}}};function f4(t){return function(i){return t.apply(null,i)}}function d4(t){return Ie.isObject(t)&&t.isAxiosError===!0}const Ew={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ew).forEach(([t,r])=>{Ew[r]=t});function yD(t){const r=new Qc(t),i=BN(Qc.prototype.request,r);return Ie.extend(i,Qc.prototype,r,{allOwnKeys:!0}),Ie.extend(i,r,null,{allOwnKeys:!0}),i.create=function(u){return yD(Vd(t,u))},i}const bi=yD(Bd);bi.Axios=Qc,bi.CanceledError=kh,bi.CancelToken=c4,bi.isCancel=fD,bi.VERSION=mD,bi.toFormData=Yy,bi.AxiosError=Qn,bi.Cancel=bi.CanceledError,bi.all=function(r){return Promise.all(r)},bi.spread=f4,bi.isAxiosError=d4,bi.mergeConfig=Vd,bi.AxiosHeaders=Ko,bi.formToJSON=t=>sD(Ie.isHTMLForm(t)?new FormData(t):t),bi.HttpStatusCode=Ew,bi.default=bi;const{Axios:B7,AxiosError:V7,CanceledError:H7,isCancel:W7,CancelToken:q7,VERSION:K7,all:Y7,Cancel:G7,isAxiosError:X7,spread:Q7,toFormData:J7,AxiosHeaders:Z7,HttpStatusCode:eq,formToJSON:tq,mergeConfig:nq}=bi,p4=async({uri:t})=>bi.get(t),v4=({uri:t,queryKey:r,refetchInterval:i,isEnabled:o})=>qB({queryKey:r,queryFn:async()=>(await p4({uri:t})).data,refetchInterval:i!==void 0?i:5e3,enabled:o});/**
|
|
400
|
-
* @remix-run/router v1.18.0
|
|
401
|
-
*
|
|
402
|
-
* Copyright (c) Remix Software Inc.
|
|
403
|
-
*
|
|
404
|
-
* This source code is licensed under the MIT license found in the
|
|
405
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
406
|
-
*
|
|
407
|
-
* @license MIT
|
|
408
|
-
*/function Cw(){return Cw=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},Cw.apply(this,arguments)}var bD;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(bD||(bD={}));function ci(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function Nh(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function ww(t){let{pathname:r="/",search:i="",hash:o=""}=t;return i&&i!=="?"&&(r+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(r+=o.charAt(0)==="#"?o:"#"+o),r}function SD(t){let r={};if(t){let i=t.indexOf("#");i>=0&&(r.hash=t.substr(i),t=t.substr(0,i));let o=t.indexOf("?");o>=0&&(r.search=t.substr(o),t=t.substr(0,o)),t&&(r.pathname=t)}return r}var ED;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ED||(ED={}));function xw(t,r){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[i,o]=h4(t.path,t.caseSensitive,t.end),u=r.match(i);if(!u)return null;let p=u[0],f=p.replace(/(.)\/+$/,"$1"),g=u.slice(1);return{params:o.reduce((S,b,R)=>{let{paramName:_,isOptional:P}=b;if(_==="*"){let L=g[R]||"";f=p.slice(0,p.length-L.length).replace(/(.)\/+$/,"$1")}const N=g[R];return P&&!N?S[_]=void 0:S[_]=(N||"").replace(/%2F/g,"/"),S},{}),pathname:p,pathnameBase:f,pattern:t}}function h4(t,r,i){r===void 0&&(r=!1),i===void 0&&(i=!0),Nh(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let o=[],u="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,g,y)=>(o.push({paramName:g,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(o.push({paramName:"*"}),u+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?u+="\\/*$":t!==""&&t!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,r?void 0:"i"),o]}function Hd(t,r){if(r==="/")return t;if(!t.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,o=t.charAt(i);return o&&o!=="/"?null:t.slice(i)||"/"}function m4(t,r){r===void 0&&(r="/");let{pathname:i,search:o="",hash:u=""}=typeof t=="string"?SD(t):t;return{pathname:i?i.startsWith("/")?i:g4(i,r):r,search:b4(o),hash:S4(u)}}function g4(t,r){let i=r.replace(/\/+$/,"").split("/");return t.split("/").forEach(u=>{u===".."?i.length>1&&i.pop():u!=="."&&i.push(u)}),i.length>1?i.join("/"):"/"}function Rw(t,r,i,o){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+r+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function y4(t){return t.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function CD(t,r){let i=y4(t);return r?i.map((o,u)=>u===i.length-1?o.pathname:o.pathnameBase):i.map(o=>o.pathnameBase)}function wD(t,r,i,o){o===void 0&&(o=!1);let u;typeof t=="string"?u=SD(t):(u=Cw({},t),ci(!u.pathname||!u.pathname.includes("?"),Rw("?","pathname","search",u)),ci(!u.pathname||!u.pathname.includes("#"),Rw("#","pathname","hash",u)),ci(!u.search||!u.search.includes("#"),Rw("#","search","hash",u)));let p=t===""||u.pathname==="",f=p?"/":u.pathname,g;if(f==null)g=i;else{let R=r.length-1;if(!o&&f.startsWith("..")){let _=f.split("/");for(;_[0]==="..";)_.shift(),R-=1;u.pathname=_.join("/")}g=R>=0?r[R]:"/"}let y=m4(u,g),S=f&&f!=="/"&&f.endsWith("/"),b=(p||f===".")&&i.endsWith("/");return!y.pathname.endsWith("/")&&(S||b)&&(y.pathname+="/"),y}const Tw=t=>t.join("/").replace(/\/\/+/g,"/"),b4=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,S4=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,xD=["post","put","patch","delete"];new Set(xD);const E4=["get",...xD];new Set(E4);function Ow(){return Ow=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},Ow.apply(this,arguments)}const Qy=x.createContext(null);me.env.NODE_ENV!=="production"&&(Qy.displayName="DataRouter");const RD=x.createContext(null);me.env.NODE_ENV!=="production"&&(RD.displayName="DataRouterState");const C4=x.createContext(null);me.env.NODE_ENV!=="production"&&(C4.displayName="Await");const Ku=x.createContext(null);me.env.NODE_ENV!=="production"&&(Ku.displayName="Navigation");const _w=x.createContext(null);me.env.NODE_ENV!=="production"&&(_w.displayName="Location");const Wd=x.createContext({outlet:null,matches:[],isDataRoute:!1});me.env.NODE_ENV!=="production"&&(Wd.displayName="Route");const w4=x.createContext(null);me.env.NODE_ENV!=="production"&&(w4.displayName="RouteError");function x4(t,r){let{relative:i}=r===void 0?{}:r;kw()||(me.env.NODE_ENV!=="production"?ci(!1,"useHref() may be used only in the context of a <Router> component."):ci(!1));let{basename:o,navigator:u}=x.useContext(Ku),{hash:p,pathname:f,search:g}=Mh(t,{relative:i}),y=f;return o!=="/"&&(y=f==="/"?o:Tw([o,f])),u.createHref({pathname:y,search:g,hash:p})}function kw(){return x.useContext(_w)!=null}function Dh(){return kw()||(me.env.NODE_ENV!=="production"?ci(!1,"useLocation() may be used only in the context of a <Router> component."):ci(!1)),x.useContext(_w).location}const TD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function OD(t){x.useContext(Ku).static||x.useLayoutEffect(t)}function R4(){let{isDataRoute:t}=x.useContext(Wd);return t?N4():T4()}function T4(){kw()||(me.env.NODE_ENV!=="production"?ci(!1,"useNavigate() may be used only in the context of a <Router> component."):ci(!1));let t=x.useContext(Qy),{basename:r,future:i,navigator:o}=x.useContext(Ku),{matches:u}=x.useContext(Wd),{pathname:p}=Dh(),f=JSON.stringify(CD(u,i.v7_relativeSplatPath)),g=x.useRef(!1);return OD(()=>{g.current=!0}),x.useCallback(function(S,b){if(b===void 0&&(b={}),me.env.NODE_ENV!=="production"&&Nh(g.current,TD),!g.current)return;if(typeof S=="number"){o.go(S);return}let R=wD(S,JSON.parse(f),p,b.relative==="path");t==null&&r!=="/"&&(R.pathname=R.pathname==="/"?r:Tw([r,R.pathname])),(b.replace?o.replace:o.push)(R,b.state,b)},[r,o,f,p,t])}function Mh(t,r){let{relative:i}=r===void 0?{}:r,{future:o}=x.useContext(Ku),{matches:u}=x.useContext(Wd),{pathname:p}=Dh(),f=JSON.stringify(CD(u,o.v7_relativeSplatPath));return x.useMemo(()=>wD(t,JSON.parse(f),p,i==="path"),[t,f,p,i])}var _D=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(_D||{}),Nw=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Nw||{});function kD(t){return t+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function O4(t){let r=x.useContext(Qy);return r||(me.env.NODE_ENV!=="production"?ci(!1,kD(t)):ci(!1)),r}function _4(t){let r=x.useContext(Wd);return r||(me.env.NODE_ENV!=="production"?ci(!1,kD(t)):ci(!1)),r}function ND(t){let r=_4(t),i=r.matches[r.matches.length-1];return i.route.id||(me.env.NODE_ENV!=="production"?ci(!1,t+' can only be used on routes that contain a unique "id"'):ci(!1)),i.route.id}function k4(){return ND(Nw.UseRouteId)}function N4(){let{router:t}=O4(_D.UseNavigateStable),r=ND(Nw.UseNavigateStable),i=x.useRef(!1);return OD(()=>{i.current=!0}),x.useCallback(function(u,p){p===void 0&&(p={}),me.env.NODE_ENV!=="production"&&Nh(i.current,TD),i.current&&(typeof u=="number"?t.navigate(u):t.navigate(u,Ow({fromRouteId:r},p)))},[t,r])}new Promise(()=>{});function qd(){return qd=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},qd.apply(this,arguments)}function Dw(t,r){if(t==null)return{};var i={},o=Object.keys(t),u,p;for(p=0;p<o.length;p++)u=o[p],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const Jy="get",Zy="application/x-www-form-urlencoded";function e0(t){return t!=null&&typeof t.tagName=="string"}function D4(t){return e0(t)&&t.tagName.toLowerCase()==="button"}function M4(t){return e0(t)&&t.tagName.toLowerCase()==="form"}function P4(t){return e0(t)&&t.tagName.toLowerCase()==="input"}function A4(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function $4(t,r){return t.button===0&&(!r||r==="_self")&&!A4(t)}let t0=null;function L4(){if(t0===null)try{new FormData(document.createElement("form"),0),t0=!1}catch{t0=!0}return t0}const F4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Mw(t){return t!=null&&!F4.has(t)?(me.env.NODE_ENV!=="production"&&Nh(!1,'"'+t+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Zy+'"')),null):t}function I4(t,r){let i,o,u,p,f;if(M4(t)){let g=t.getAttribute("action");o=g?Hd(g,r):null,i=t.getAttribute("method")||Jy,u=Mw(t.getAttribute("enctype"))||Zy,p=new FormData(t)}else if(D4(t)||P4(t)&&(t.type==="submit"||t.type==="image")){let g=t.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=t.getAttribute("formaction")||g.getAttribute("action");if(o=y?Hd(y,r):null,i=t.getAttribute("formmethod")||g.getAttribute("method")||Jy,u=Mw(t.getAttribute("formenctype"))||Mw(g.getAttribute("enctype"))||Zy,p=new FormData(g,t),!L4()){let{name:S,type:b,value:R}=t;if(b==="image"){let _=S?S+".":"";p.append(_+"x","0"),p.append(_+"y","0")}else S&&p.append(S,R)}}else{if(e0(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Jy,o=null,u=Zy,f=t}return p&&u==="text/plain"&&(f=p,p=void 0),{action:o,method:i.toLowerCase(),encType:u,formData:p,body:f}}const z4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],j4=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],U4=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],B4="6";try{window.__reactRouterVersion=B4}catch{}const DD=x.createContext({isTransitioning:!1});me.env.NODE_ENV!=="production"&&(DD.displayName="ViewTransition");const V4=x.createContext(new Map);me.env.NODE_ENV!=="production"&&(V4.displayName="Fetchers"),me.env.NODE_ENV;const H4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",W4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pw=x.forwardRef(function(r,i){let{onClick:o,relative:u,reloadDocument:p,replace:f,state:g,target:y,to:S,preventScrollReset:b,unstable_viewTransition:R}=r,_=Dw(r,z4),{basename:P}=x.useContext(Ku),N,L=!1;if(typeof S=="string"&&W4.test(S)&&(N=S,H4))try{let z=new URL(window.location.href),V=S.startsWith("//")?new URL(z.protocol+S):new URL(S),B=Hd(V.pathname,P);V.origin===z.origin&&B!=null?S=B+V.search+V.hash:L=!0}catch{me.env.NODE_ENV!=="production"&&Nh(!1,'<Link to="'+S+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let D=x4(S,{relative:u}),H=G4(S,{replace:f,state:g,target:y,preventScrollReset:b,relative:u,unstable_viewTransition:R});function I(z){o&&o(z),z.defaultPrevented||H(z)}return x.createElement("a",qd({},_,{href:N||D,onClick:L||p?o:I,ref:i,target:y}))});me.env.NODE_ENV!=="production"&&(Pw.displayName="Link");const q4=x.forwardRef(function(r,i){let{"aria-current":o="page",caseSensitive:u=!1,className:p="",end:f=!1,style:g,to:y,unstable_viewTransition:S,children:b}=r,R=Dw(r,j4),_=Mh(y,{relative:R.relative}),P=Dh(),N=x.useContext(RD),{navigator:L,basename:D}=x.useContext(Ku),H=N!=null&&t5(_)&&S===!0,I=L.encodeLocation?L.encodeLocation(_).pathname:_.pathname,z=P.pathname,V=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;u||(z=z.toLowerCase(),V=V?V.toLowerCase():null,I=I.toLowerCase()),V&&D&&(V=Hd(V,D)||V);const B=I!=="/"&&I.endsWith("/")?I.length-1:I.length;let W=z===I||!f&&z.startsWith(I)&&z.charAt(B)==="/",K=V!=null&&(V===I||!f&&V.startsWith(I)&&V.charAt(I.length)==="/"),Z={isActive:W,isPending:K,isTransitioning:H},ie=W?o:void 0,Y;typeof p=="function"?Y=p(Z):Y=[p,W?"active":null,K?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let J=typeof g=="function"?g(Z):g;return x.createElement(Pw,qd({},R,{"aria-current":ie,className:Y,ref:i,style:J,to:y,unstable_viewTransition:S}),typeof b=="function"?b(Z):b)});me.env.NODE_ENV!=="production"&&(q4.displayName="NavLink");const K4=x.forwardRef((t,r)=>{let{fetcherKey:i,navigate:o,reloadDocument:u,replace:p,state:f,method:g=Jy,action:y,onSubmit:S,relative:b,preventScrollReset:R,unstable_viewTransition:_}=t,P=Dw(t,U4),N=Z4(),L=e5(y,{relative:b}),D=g.toLowerCase()==="get"?"get":"post",H=I=>{if(S&&S(I),I.defaultPrevented)return;I.preventDefault();let z=I.nativeEvent.submitter,V=z?.getAttribute("formmethod")||g;N(z||I.currentTarget,{fetcherKey:i,method:V,navigate:o,replace:p,state:f,relative:b,preventScrollReset:R,unstable_viewTransition:_})};return x.createElement("form",qd({ref:r,method:D,action:L,onSubmit:u?S:H},P))});me.env.NODE_ENV!=="production"&&(K4.displayName="Form"),me.env.NODE_ENV;var n0;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(n0||(n0={}));var MD;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(MD||(MD={}));function Y4(t){return t+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function PD(t){let r=x.useContext(Qy);return r||(me.env.NODE_ENV!=="production"?ci(!1,Y4(t)):ci(!1)),r}function G4(t,r){let{target:i,replace:o,state:u,preventScrollReset:p,relative:f,unstable_viewTransition:g}=r===void 0?{}:r,y=R4(),S=Dh(),b=Mh(t,{relative:f});return x.useCallback(R=>{if($4(R,i)){R.preventDefault();let _=o!==void 0?o:ww(S)===ww(b);y(t,{replace:_,state:u,preventScrollReset:p,relative:f,unstable_viewTransition:g})}},[S,y,b,o,u,i,t,p,f,g])}function X4(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Q4=0,J4=()=>"__"+String(++Q4)+"__";function Z4(){let{router:t}=PD(n0.UseSubmit),{basename:r}=x.useContext(Ku),i=k4();return x.useCallback(function(o,u){u===void 0&&(u={}),X4();let{action:p,method:f,encType:g,formData:y,body:S}=I4(o,r);if(u.navigate===!1){let b=u.fetcherKey||J4();t.fetch(b,i,u.action||p,{preventScrollReset:u.preventScrollReset,formData:y,body:S,formMethod:u.method||f,formEncType:u.encType||g,unstable_flushSync:u.unstable_flushSync})}else t.navigate(u.action||p,{preventScrollReset:u.preventScrollReset,formData:y,body:S,formMethod:u.method||f,formEncType:u.encType||g,replace:u.replace,state:u.state,fromRouteId:i,unstable_flushSync:u.unstable_flushSync,unstable_viewTransition:u.unstable_viewTransition})},[t,r,i])}function e5(t,r){let{relative:i}=r===void 0?{}:r,{basename:o}=x.useContext(Ku),u=x.useContext(Wd);u||(me.env.NODE_ENV!=="production"?ci(!1,"useFormAction must be used inside a RouteContext"):ci(!1));let[p]=u.matches.slice(-1),f=qd({},Mh(t||".",{relative:i})),g=Dh();if(t==null){f.search=g.search;let y=new URLSearchParams(f.search);y.has("index")&&y.get("index")===""&&(y.delete("index"),f.search=y.toString()?"?"+y.toString():"")}return(!t||t===".")&&p.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(f.pathname=f.pathname==="/"?o:Tw([o,f.pathname])),ww(f)}function t5(t,r){r===void 0&&(r={});let i=x.useContext(DD);i==null&&(me.env.NODE_ENV!=="production"?ci(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):ci(!1));let{basename:o}=PD(n0.useViewTransitionState),u=Mh(t,{relative:r.relative});if(!i.isTransitioning)return!1;let p=Hd(i.currentLocation.pathname,o)||i.currentLocation.pathname,f=Hd(i.nextLocation.pathname,o)||i.nextLocation.pathname;return xw(u.pathname,f)!=null||xw(u.pathname,p)!=null}const r0=({template:t,replaceValues:r})=>t.replaceAll(/{(.*?)}/g,(i,o)=>r[o]||""),n5=({rawLinks:t,replaceValues:r})=>t.map(({key:i,label:o,link:u})=>({key:i,title:u?Fc.jsx(Pw,{to:r0({template:u,replaceValues:r}),children:r0({template:o,replaceValues:r})}):r0({template:o,replaceValues:r})})),AD=({data:t,replaceValues:r,pathname:i})=>t.map(({pathToMatch:u,breadcrumbItems:p})=>({pathToMatch:r0({template:u,replaceValues:r}),breadcrumbItems:n5({rawLinks:p,replaceValues:r})})).find(({pathToMatch:u})=>xw(u,i));var ao=function(){return ao=Object.assign||function(r){for(var i,o=1,u=arguments.length;o<u;o++){i=arguments[o];for(var p in i)Object.prototype.hasOwnProperty.call(i,p)&&(r[p]=i[p])}return r},ao.apply(this,arguments)};function Kd(t,r,i){if(i||arguments.length===2)for(var o=0,u=r.length,p;o<u;o++)(p||!(o in r))&&(p||(p=Array.prototype.slice.call(r,0,o)),p[o]=r[o]);return t.concat(p||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;function r5(t){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=t(i)),r[i]}}var i5=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a5=r5(function(t){return i5.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),o5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Jc=typeof me<"u"&&me.env!==void 0&&(me.env.REACT_APP_SC_ATTR||me.env.SC_ATTR)||"data-styled",Aw=typeof window<"u"&&"HTMLElement"in window,l5=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof me<"u"&&me.env!==void 0&&me.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&me.env.REACT_APP_SC_DISABLE_SPEEDY!==""?me.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&me.env.REACT_APP_SC_DISABLE_SPEEDY:typeof me<"u"&&me.env!==void 0&&me.env.SC_DISABLE_SPEEDY!==void 0&&me.env.SC_DISABLE_SPEEDY!==""?me.env.SC_DISABLE_SPEEDY!=="false"&&me.env.SC_DISABLE_SPEEDY:me.env.NODE_ENV!=="production"),$D=/invalid hook call/i,i0=new Set,u5=function(t,r){if(me.env.NODE_ENV!=="production"){var i=r?' with the id of "'.concat(r,'"'):"",o="The component ".concat(t).concat(i,` has been created dynamically.
|
|
1
|
+
(function(oe,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("react"),require("antd"),require("@ant-design/icons"),require("@tanstack/react-query"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","@ant-design/icons","@tanstack/react-query","react-router-dom"],Z):(oe=typeof globalThis<"u"?globalThis:oe||self,Z(oe["@prorobotech/openapi-k8s-toolkit"]={},oe.React,oe.antd,oe.antdIcons,oe.reactQuery,oe.ReactRouterDOM))})(this,function(oe,Z,q,wn,bn,lr){"use strict";function l1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sf={exports:{}},Mt=sf.exports={},fr,hr;function bu(){throw new Error("setTimeout has not been defined")}function vu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?fr=setTimeout:fr=bu}catch{fr=bu}try{typeof clearTimeout=="function"?hr=clearTimeout:hr=vu}catch{hr=vu}})();function of(e){if(fr===setTimeout)return setTimeout(e,0);if((fr===bu||!fr)&&setTimeout)return fr=setTimeout,setTimeout(e,0);try{return fr(e,0)}catch{try{return fr.call(null,e,0)}catch{return fr.call(this,e,0)}}}function f1(e){if(hr===clearTimeout)return clearTimeout(e);if((hr===vu||!hr)&&clearTimeout)return hr=clearTimeout,clearTimeout(e);try{return hr(e)}catch{try{return hr.call(null,e)}catch{return hr.call(this,e)}}}var Ar=[],Ri=!1,ui,To=-1;function h1(){!Ri||!ui||(Ri=!1,ui.length?Ar=ui.concat(Ar):To=-1,Ar.length&&af())}function af(){if(!Ri){var e=of(h1);Ri=!0;for(var t=Ar.length;t;){for(ui=Ar,Ar=[];++To<t;)ui&&ui[To].run();To=-1,t=Ar.length}ui=null,Ri=!1,f1(e)}}Mt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ar.push(new uf(e,t)),Ar.length===1&&!Ri&&of(af)};function uf(e,t){this.fun=e,this.array=t}uf.prototype.run=function(){this.fun.apply(null,this.array)},Mt.title="browser",Mt.browser=!0,Mt.env={},Mt.argv=[],Mt.version="",Mt.versions={};function Er(){}Mt.on=Er,Mt.addListener=Er,Mt.once=Er,Mt.off=Er,Mt.removeListener=Er,Mt.removeAllListeners=Er,Mt.emit=Er,Mt.prependListener=Er,Mt.prependOnceListener=Er,Mt.listeners=function(e){return[]},Mt.binding=function(e){throw new Error("process.binding is not supported")},Mt.cwd=function(){return"/"},Mt.chdir=function(e){throw new Error("process.chdir is not supported")},Mt.umask=function(){return 0};var d1=sf.exports;const et=l1(d1);var vn=function(){return vn=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},vn.apply(this,arguments)};function Li(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,a;i<o;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function p1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var g1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,y1=p1(function(e){return g1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Su(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It="-ms-",ks="-moz-",gt="-webkit-",cf="comm",Io="rule",Au="decl",m1="@import",w1="@namespace",lf="@keyframes",b1="@layer",ff=Math.abs,Eu=String.fromCharCode,xu=Object.assign;function v1(e,t){return Yt(e,0)^45?(((t<<2^Yt(e,0))<<2^Yt(e,1))<<2^Yt(e,2))<<2^Yt(e,3):0}function hf(e){return e.trim()}function xr(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,n){return e.replace(t,n)}function Oo(e,t,n){return e.indexOf(t,n)}function Yt(e,t){return e.charCodeAt(t)|0}function ci(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function df(e){return e.length}function Ts(e,t){return t.push(e),e}function S1(e,t){return e.map(t).join("")}function pf(e,t){return e.filter(function(n){return!xr(n,t)})}var Fo=1,Pi=1,gf=0,Pn=0,Jt=0,Ni="";function Bo(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:Fo,column:Pi,length:u,return:"",siblings:l}}function Mr(e,t){return xu(Bo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ji(e){for(;e.root;)e=Mr(e.root,{children:[e]});Ts(e,e.siblings)}function A1(){return Jt}function E1(){return Jt=Pn>0?Yt(Ni,--Pn):0,Pi--,Jt===10&&(Pi=1,Fo--),Jt}function Zn(){return Jt=Pn<gf?Yt(Ni,Pn++):0,Pi++,Jt===10&&(Pi=1,Fo++),Jt}function Ur(){return Yt(Ni,Pn)}function Do(){return Pn}function Ro(e,t){return ci(Ni,e,t)}function Is(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function x1(e){return Fo=Pi=1,gf=Qn(Ni=e),Pn=0,[]}function C1(e){return Ni="",e}function Cu(e){return hf(Ro(Pn-1,_u(e===91?e+2:e===40?e+1:e)))}function _1(e){for(;(Jt=Ur())&&Jt<33;)Zn();return Is(e)>2||Is(Jt)>3?"":" "}function k1(e,t){for(;--t&&Zn()&&!(Jt<48||Jt>102||Jt>57&&Jt<65||Jt>70&&Jt<97););return Ro(e,Do()+(t<6&&Ur()==32&&Zn()==32))}function _u(e){for(;Zn();)switch(Jt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&_u(Jt);break;case 40:e===41&&_u(e);break;case 92:Zn();break}return Pn}function T1(e,t){for(;Zn()&&e+Jt!==57;)if(e+Jt===84&&Ur()===47)break;return"/*"+Ro(t,Pn-1)+"*"+Eu(e===47?e:Zn())}function I1(e){for(;!Is(Ur());)Zn();return Ro(e,Pn)}function O1(e){return C1(Lo("",null,null,null,[""],e=x1(e),0,[0],e))}function Lo(e,t,n,i,o,a,u,l,f){for(var d=0,g=0,p=u,v=0,C=0,A=0,E=1,b=1,B=1,N=0,_="",k=o,F=a,R=i,O=_;b;)switch(A=N,N=Zn()){case 40:if(A!=108&&Yt(O,p-1)==58){Oo(O+=Ge(Cu(N),"&","&\f"),"&\f",ff(d?l[d-1]:0))!=-1&&(B=-1);break}case 34:case 39:case 91:O+=Cu(N);break;case 9:case 10:case 13:case 32:O+=_1(A);break;case 92:O+=k1(Do()-1,7);continue;case 47:switch(Ur()){case 42:case 47:Ts(F1(T1(Zn(),Do()),t,n,f),f),(Is(A||1)==5||Is(Ur()||1)==5)&&Qn(O)&&ci(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*E:l[d++]=Qn(O)*B;case 125*E:case 59:case 0:switch(N){case 0:case 125:b=0;case 59+g:B==-1&&(O=Ge(O,/\f/g,"")),C>0&&(Qn(O)-p||E===0&&A===47)&&Ts(C>32?mf(O+";",i,n,p-1,f):mf(Ge(O," ","")+";",i,n,p-2,f),f);break;case 59:O+=";";default:if(Ts(R=yf(O,t,n,d,g,o,l,_,k=[],F=[],p,a),a),N===123)if(g===0)Lo(O,t,R,R,k,a,p,l,F);else{switch(v){case 99:if(Yt(O,3)===110)break;case 108:if(Yt(O,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Lo(e,R,R,i&&Ts(yf(e,R,R,0,0,o,l,_,o,k=[],p,F),F),o,F,p,l,i?k:F):Lo(O,R,R,R,[""],F,0,l,F)}}d=g=C=0,E=B=1,_=O="",p=u;break;case 58:p=1+Qn(O),C=A;default:if(E<1){if(N==123)--E;else if(N==125&&E++==0&&E1()==125)continue}switch(O+=Eu(N),N*E){case 38:B=g>0?1:(O+="\f",-1);break;case 44:l[d++]=(Qn(O)-1)*B,B=1;break;case 64:Ur()===45&&(O+=Cu(Zn())),v=Ur(),g=p=Qn(_=O+=I1(Do())),N++;break;case 45:A===45&&Qn(O)==2&&(E=0)}}return a}function yf(e,t,n,i,o,a,u,l,f,d,g,p){for(var v=o-1,C=o===0?a:[""],A=df(C),E=0,b=0,B=0;E<i;++E)for(var N=0,_=ci(e,v+1,v=ff(b=u[E])),k=e;N<A;++N)(k=hf(b>0?C[N]+" "+_:Ge(_,/&\f/g,C[N])))&&(f[B++]=k);return Bo(e,t,n,o===0?Io:l,f,d,g,p)}function F1(e,t,n,i){return Bo(e,t,n,cf,Eu(A1()),ci(e,2,-2),0,i)}function mf(e,t,n,i,o){return Bo(e,t,n,Au,ci(e,0,i),ci(e,i+1,-1),i,o)}function wf(e,t,n){switch(v1(e,t)){case 5103:return gt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return gt+e+e;case 4855:return gt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return ks+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+ks+e+It+e+e;case 5936:switch(Yt(e,t+11)){case 114:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gt+e+It+e+e;case 6165:return gt+e+It+"flex-"+e+e;case 5187:return gt+e+Ge(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return gt+e+It+"flex-item-"+Ge(e,/flex-|-self/g,"")+(xr(e,/flex-|baseline/)?"":It+"grid-row-"+Ge(e,/flex-|-self/g,""))+e;case 4675:return gt+e+It+"flex-line-pack"+Ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return gt+e+It+Ge(e,"shrink","negative")+e;case 5292:return gt+e+It+Ge(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+Ge(e,"-grow","")+gt+e+It+Ge(e,"grow","positive")+e;case 4554:return gt+Ge(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+It+"flex-pack:$3"),/space-between/,"justify")+gt+e+e;case 4200:if(!xr(e,/flex-|baseline/))return It+"grid-column-align"+ci(e,t)+e;break;case 2592:case 3360:return It+Ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,xr(i.props,/grid-\w+-end/)})?~Oo(e+(n=n[t].value),"span",0)?e:It+Ge(e,"-start","")+e+It+"grid-row-span:"+(~Oo(n,"span",0)?xr(n,/\d+/):+xr(n,/\d+/)-+xr(e,/\d+/))+";":It+Ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return xr(i.props,/grid-\w+-start/)})?e:It+Ge(Ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ge(e,/(.+)-inline(.+)/,gt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qn(e)-1-t>6)switch(Yt(e,t+1)){case 109:if(Yt(e,t+4)!==45)break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+ks+(Yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Oo(e,"stretch",0)?wf(Ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,d){return It+o+":"+a+d+(u?It+o+"-span:"+(l?f:+f-+a)+d:"")+e});case 4949:if(Yt(e,t+6)===121)return Ge(e,":",":"+gt)+e;break;case 6444:switch(Yt(e,Yt(e,14)===45?18:11)){case 120:return Ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gt+(Yt(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+It+"$2box$3")+e;case 100:return Ge(e,":",":"+It)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ge(e,"scroll-","scroll-snap-")+e}return e}function Po(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function B1(e,t,n,i){switch(e.type){case b1:if(e.children.length)break;case m1:case w1:case Au:return e.return=e.return||e.value;case cf:return"";case lf:return e.return=e.value+"{"+Po(e.children,i)+"}";case Io:if(!Qn(e.value=e.props.join(",")))return""}return Qn(n=Po(e.children,i))?e.return=e.value+"{"+n+"}":""}function D1(e){var t=df(e);return function(n,i,o,a){for(var u="",l=0;l<t;l++)u+=e[l](n,i,o,a)||"";return u}}function R1(e){return function(t){t.root||(t=t.return)&&e(t)}}function L1(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case Au:e.return=wf(e.value,e.length,n);return;case lf:return Po([Mr(e,{value:Ge(e.value,"@","@"+gt)})],i);case Io:if(e.length)return S1(n=e.props,function(o){switch(xr(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ji(Mr(e,{props:[Ge(o,/:(read-\w+)/,":"+ks+"$1")]})),ji(Mr(e,{props:[o]})),xu(e,{props:pf(n,i)});break;case"::placeholder":ji(Mr(e,{props:[Ge(o,/:(plac\w+)/,":"+gt+"input-$1")]})),ji(Mr(e,{props:[Ge(o,/:(plac\w+)/,":"+ks+"$1")]})),ji(Mr(e,{props:[Ge(o,/:(plac\w+)/,It+"input-$1")]})),ji(Mr(e,{props:[o]})),xu(e,{props:pf(n,i)});break}return""})}}var P1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},li=typeof et<"u"&&et.env!==void 0&&(et.env.REACT_APP_SC_ATTR||et.env.SC_ATTR)||"data-styled",ku=typeof window<"u"&&"HTMLElement"in window,N1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof et<"u"&&et.env!==void 0&&et.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&et.env.REACT_APP_SC_DISABLE_SPEEDY!==""?et.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&et.env.REACT_APP_SC_DISABLE_SPEEDY:typeof et<"u"&&et.env!==void 0&&et.env.SC_DISABLE_SPEEDY!==void 0&&et.env.SC_DISABLE_SPEEDY!==""?et.env.SC_DISABLE_SPEEDY!=="false"&&et.env.SC_DISABLE_SPEEDY:et.env.NODE_ENV!=="production"),bf=/invalid hook call/i,No=new Set,j1=function(e,t){if(et.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",i="The component ".concat(e).concat(n,` has been created dynamically.
|
|
409
2
|
`)+`You may see this warning because you've called styled inside another component.
|
|
410
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`,
|
|
3
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var a=!0;console.error=function(u){for(var l=[],f=1;f<arguments.length;f++)l[f-1]=arguments[f];bf.test(u)?(a=!1,No.delete(i)):o.apply(void 0,Li([u],l,!1))},Z.useRef(),a&&!No.has(i)&&(console.warn(i),No.add(i))}catch(u){bf.test(u.message)&&No.delete(i)}finally{console.error=o}}},jo=Object.freeze([]),$i=Object.freeze({});function $1(e,t,n){return n===void 0&&(n=$i),e.theme!==n.theme&&e.theme||t||n.theme}var Tu=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),M1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,U1=/(^-|-$)/g;function vf(e){return e.replace(M1,"-").replace(U1,"")}var V1=/(a)(d)/gi,Sf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Iu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Sf(t%52)+n;return(Sf(t%52)+n).replace(V1,"$1-$2")}var Ou,fi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Af=function(e){return fi(5381,e)};function q1(e){return Iu(Af(e)>>>0)}function Ef(e){return et.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Fu(e){return typeof e=="string"&&(et.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var xf=typeof Symbol=="function"&&Symbol.for,Cf=xf?Symbol.for("react.memo"):60115,W1=xf?Symbol.for("react.forward_ref"):60112,H1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},K1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_f={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z1=((Ou={})[W1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ou[Cf]=_f,Ou);function kf(e){return("type"in(t=e)&&t.type.$$typeof)===Cf?_f:"$$typeof"in e?z1[e.$$typeof]:H1;var t}var G1=Object.defineProperty,J1=Object.getOwnPropertyNames,Tf=Object.getOwnPropertySymbols,Y1=Object.getOwnPropertyDescriptor,X1=Object.getPrototypeOf,If=Object.prototype;function Of(e,t,n){if(typeof t!="string"){if(If){var i=X1(t);i&&i!==If&&Of(e,i,n)}var o=J1(t);Tf&&(o=o.concat(Tf(t)));for(var a=kf(e),u=kf(t),l=0;l<o.length;++l){var f=o[l];if(!(f in K1||n&&n[f]||u&&f in u||a&&f in a)){var d=Y1(t,f);try{G1(e,f,d)}catch{}}}}return e}function Mi(e){return typeof e=="function"}function Bu(e){return typeof e=="object"&&"styledComponentId"in e}function hi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ff(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function Ui(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Du(e,t,n){if(n===void 0&&(n=!1),!n&&!Ui(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Du(e[i],t[i]);else if(Ui(t))for(var i in t)e[i]=Du(e[i],t[i]);return e}function Ru(e,t){Object.defineProperty(e,"toString",{value:t})}var Q1=et.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
411
4
|
|
|
412
5
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
413
6
|
|
|
@@ -448,10 +41,10 @@ as for instance in your render method then you may be running into this limitati
|
|
|
448
41
|
|
|
449
42
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
450
43
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
451
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function
|
|
452
|
-
`);return
|
|
453
|
-
`),
|
|
454
|
-
`)},
|
|
44
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Z1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],i=[],o=1,a=e.length;o<a;o+=1)i.push(e[o]);return i.forEach(function(u){n=n.replace(/%[a-z]/,u)}),n}function Vi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return et.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Z1.apply(void 0,Li([Q1[e]],t,!1)).trim())}var ey=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,i=0;i<t;i++)n+=this.groupSizes[i];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;t>=a;)if((a<<=1)<0)throw Vi(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var u=o;u<a;u++)this.groupSizes[u]=0}for(var l=this.indexOfGroup(t+1),f=(u=0,n.length);u<f;u++)this.tag.insertRule(l,n[u])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n;this.groupSizes[t]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var i=this.groupSizes[t],o=this.indexOfGroup(t),a=o+i,u=o;u<a;u++)n+="".concat(this.tag.getRule(u)).concat(`/*!sc*/
|
|
45
|
+
`);return n},e}(),$o=new Map,Mo=new Map,Lu=1,Uo=function(e){if($o.has(e))return $o.get(e);for(;Mo.has(Lu);)Lu++;var t=Lu++;if(et.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw Vi(16,"".concat(t));return $o.set(e,t),Mo.set(t,e),t},ty=function(e,t){$o.set(e,t),Mo.set(t,e)},ny="style[".concat(li,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),ry=new RegExp("^".concat(li,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),iy=function(e,t,n){for(var i,o=n.split(","),a=0,u=o.length;a<u;a++)(i=o[a])&&e.registerName(t,i)},sy=function(e,t){for(var n,i=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
|
|
46
|
+
`),o=[],a=0,u=i.length;a<u;a++){var l=i[a].trim();if(l){var f=l.match(ry);if(f){var d=0|parseInt(f[1],10),g=f[2];d!==0&&(ty(g,d),iy(e,g,f[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(l)}}};function oy(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Bf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(li,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(li,"active"),i.setAttribute("data-styled-version","6.0.7");var u=oy();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},ay=function(){function e(t){this.element=Bf(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var i=document.styleSheets,o=0,a=i.length;o<a;o++){var u=i[o];if(u.ownerNode===n)return u}throw Vi(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),uy=function(){function e(t){this.element=Bf(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),cy=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Df=ku,ly={isServer:!ku,useCSSOMInjection:!N1},Rf=function(){function e(t,n,i){t===void 0&&(t=$i),n===void 0&&(n={});var o=this;this.options=vn(vn({},ly),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&ku&&Df&&(Df=!1,function(a){for(var u=document.querySelectorAll(ny),l=0,f=u.length;l<f;l++){var d=u[l];d&&d.getAttribute(li)!=="active"&&(sy(a,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),Ru(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",d=function(p){var v=function(B){return Mo.get(B)}(p);if(v===void 0)return"continue";var C=a.names.get(v),A=u.getGroup(p);if(C===void 0||A.length===0)return"continue";var E="".concat(li,".g").concat(p,'[id="').concat(v,'"]'),b="";C!==void 0&&C.forEach(function(B){B.length>0&&(b+="".concat(B,","))}),f+="".concat(A).concat(E,'{content:"').concat(b,'"}').concat(`/*!sc*/
|
|
47
|
+
`)},g=0;g<l;g++)d(g);return f}(o)})}return e.registerId=function(t){return Uo(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(vn(vn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var i=n.useCSSOMInjection,o=n.target;return n.isServer?new cy(o):i?new ay(o):new uy(o)}(this.options),new ey(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Uo(t),this.names.has(t))this.names.get(t).add(n);else{var i=new Set;i.add(n),this.names.set(t,i)}},e.prototype.insertRules=function(t,n,i){this.registerName(t,n),this.getTag().insertRules(Uo(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Uo(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),fy=/&/g,hy=/^\s*\/\/.*$/gm;function Lf(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(i){return"".concat(t," ").concat(i)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Lf(n.children,t)),n})}function dy(e){var t,n,i,o=$i,a=o.options,u=a===void 0?$i:a,l=o.plugins,f=l===void 0?jo:l,d=function(v,C,A){return A===n||A.startsWith(n)&&A.endsWith(n)&&A.replaceAll(n,"").length>0?".".concat(t):v},g=f.slice();g.push(function(v){v.type===Io&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(fy,n).replace(i,d))}),u.prefix&&g.push(L1),g.push(B1);var p=function(v,C,A,E){C===void 0&&(C=""),A===void 0&&(A=""),E===void 0&&(E="&"),t=E,n=C,i=new RegExp("\\".concat(n,"\\b"),"g");var b=v.replace(hy,""),B=O1(A||C?"".concat(A," ").concat(C," { ").concat(b," }"):b);u.namespace&&(B=Lf(B,u.namespace));var N=[];return Po(B,D1(g.concat(R1(function(_){return N.push(_)})))),N};return p.hash=f.length?f.reduce(function(v,C){return C.name||Vi(15),fi(v,C.name)},5381).toString():"",p}var py=new Rf,Pu=dy(),Pf=Z.createContext({shouldForwardProp:void 0,styleSheet:py,stylis:Pu});Pf.Consumer,Z.createContext(void 0);function Nf(){return Z.useContext(Pf)}var jf=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=Pu);var u=i.name+a.hash;o.hasNameForId(i.id,u)||o.insertRules(i.id,u,a(i.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Ru(this,function(){throw Vi(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Pu),this.name+t.hash},e}(),gy=function(e){return e>="A"&&e<="Z"};function $f(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;gy(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Mf=function(e){return e==null||e===!1||e===""},Uf=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Mf(a)&&(Array.isArray(a)&&a.isCss||Mi(a)?i.push("".concat($f(o),":"),a,";"):Ui(a)?i.push.apply(i,Li(Li(["".concat(o," {")],Uf(a),!1),["}"],!1)):i.push("".concat($f(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in P1||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function di(e,t,n,i){if(Mf(e))return[];if(Bu(e))return[".".concat(e.styledComponentId)];if(Mi(e)){if(!Mi(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return et.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof jf||Ui(o)||o===null||console.error("".concat(Ef(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),di(o,t,n,i)}var a;return e instanceof jf?n?(e.inject(n,i),[e.getName(i)]):[e]:Ui(e)?Uf(e):Array.isArray(e)?Array.prototype.concat.apply(jo,e.map(function(u){return di(u,t,n,i)})):[e.toString()]}function yy(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Mi(n)&&!Bu(n))return!1}return!0}var my=Af("6.0.7"),wy=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=et.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&yy(t),this.componentId=n,this.baseHash=fi(my,n),this.baseStyle=i,Rf.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=hi(o,this.staticRulesId);else{var a=Ff(di(this.rules,t,n,i)),u=Iu(fi(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,u)){var l=i(a,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,l)}o=hi(o,u),this.staticRulesId=u}else{for(var f=fi(this.baseHash,i.hash),d="",g=0;g<this.rules.length;g++){var p=this.rules[g];if(typeof p=="string")d+=p,et.env.NODE_ENV!=="production"&&(f=fi(f,p));else if(p){var v=Ff(di(p,t,n,i));f=fi(f,v),d+=v}}if(d){var C=Iu(f>>>0);n.hasNameForId(this.componentId,C)||n.insertRules(this.componentId,C,i(d,".".concat(C),void 0,this.componentId)),o=hi(o,C)}}return o},e}(),Vf=Z.createContext(void 0);Vf.Consumer;var Nu={},qf=new Set;function by(e,t,n){var i=Bu(e),o=e,a=!Fu(e),u=t.attrs,l=u===void 0?jo:u,f=t.componentId,d=f===void 0?function(k,F){var R=typeof k!="string"?"sc":vf(k);Nu[R]=(Nu[R]||0)+1;var O="".concat(R,"-").concat(q1("6.0.7"+R+Nu[R]));return F?"".concat(F,"-").concat(O):O}(t.displayName,t.parentComponentId):f,g=t.displayName,p=g===void 0?function(k){return Fu(k)?"styled.".concat(k):"Styled(".concat(Ef(k),")")}(e):g,v=t.displayName&&t.componentId?"".concat(vf(t.displayName),"-").concat(t.componentId):t.componentId||d,C=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,A=t.shouldForwardProp;if(i&&o.shouldForwardProp){var E=o.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;A=function(k,F){return E(k,F)&&b(k,F)}}else A=E}var B=new wy(n,v,i?o.componentStyle:void 0);function N(k,F){return function(R,O,W){var J=R.attrs,le=R.componentStyle,ce=R.defaultProps,ge=R.foldedComponentIds,ye=R.styledComponentId,he=R.target,me=Z.useContext(Vf),Le=Nf(),ke=R.shouldForwardProp||Le.shouldForwardProp;et.env.NODE_ENV!=="production"&&Z.useDebugValue(ye);var xe=function(Q,ue,De){for(var Ye,Te=vn(vn({},ue),{className:void 0,theme:De}),Re=0;Re<Q.length;Re+=1){var Oe=Mi(Ye=Q[Re])?Ye(Te):Ye;for(var Ne in Oe)Te[Ne]=Ne==="className"?hi(Te[Ne],Oe[Ne]):Ne==="style"?vn(vn({},Te[Ne]),Oe[Ne]):Oe[Ne]}return ue.className&&(Te.className=hi(Te.className,ue.className)),Te}(J,O,$1(O,me,ce)||$i),tt=xe.as||he,Ae={};for(var Se in xe)xe[Se]===void 0||Se[0]==="$"||Se==="as"||Se==="theme"||(Se==="forwardedAs"?Ae.as=xe.forwardedAs:ke&&!ke(Se,tt)||(Ae[Se]=xe[Se],ke||et.env.NODE_ENV!=="development"||y1(Se)||qf.has(Se)||!Tu.has(tt)||(qf.add(Se),console.warn('styled-components: it looks like an unknown prop "'.concat(Se,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var We=function(Q,ue){var De=Nf(),Ye=Q.generateAndInjectStyles(ue,De.styleSheet,De.stylis);return et.env.NODE_ENV!=="production"&&Z.useDebugValue(Ye),Ye}(le,xe);et.env.NODE_ENV!=="production"&&R.warnTooManyClasses&&R.warnTooManyClasses(We);var Y=hi(ge,ye);return We&&(Y+=" "+We),xe.className&&(Y+=" "+xe.className),Ae[Fu(tt)&&!Tu.has(tt)?"class":"className"]=Y,Ae.ref=W,Z.createElement(tt,Ae)}(_,k,F)}et.env.NODE_ENV!=="production"&&(N.displayName=p);var _=Z.forwardRef(N);return _.attrs=C,_.componentStyle=B,_.shouldForwardProp=A,et.env.NODE_ENV!=="production"&&(_.displayName=p),_.foldedComponentIds=i?hi(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=v,_.target=i?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=i?function(F){for(var R=[],O=1;O<arguments.length;O++)R[O-1]=arguments[O];for(var W=0,J=R;W<J.length;W++)Du(F,J[W],!0);return F}({},o.defaultProps,k):k}}),et.env.NODE_ENV!=="production"&&(j1(p,v),_.warnTooManyClasses=function(k,F){var R={},O=!1;return function(W){if(!O&&(R[W]=!0,Object.keys(R).length>=200)){var J=F?' with the id of "'.concat(F,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(J,`.
|
|
455
48
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
456
49
|
Example:
|
|
457
50
|
const Component = styled.div.attrs(props => ({
|
|
@@ -460,12 +53,517 @@ Example:
|
|
|
460
53
|
},
|
|
461
54
|
}))\`width: 100%;\`
|
|
462
55
|
|
|
463
|
-
<Component />`),
|
|
56
|
+
<Component />`),O=!0,R={}}}}(p,v)),Ru(_,function(){return".".concat(_.styledComponentId)}),a&&Of(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Wf(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var Hf=function(e){return Object.assign(e,{isCss:!0})};function vy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Mi(e)||Ui(e)){var i=e;return Hf(di(Wf(jo,Li([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?di(o):Hf(di(Wf(o,t)))}function ju(e,t,n){if(n===void 0&&(n=$i),!t)throw Vi(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,vy.apply(void 0,Li([o],a,!1)))};return i.attrs=function(o){return ju(e,t,vn(vn({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return ju(e,t,vn(vn({},n),o))},i}var Kf=function(e){return ju(by,e)},Je=Kf;Tu.forEach(function(e){Je[e]=Kf(e)}),et.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
464
57
|
Perhaps you're looking to import 'styled-components/native'?
|
|
465
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
58
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Vo="__sc-".concat(li,"__");et.env.NODE_ENV!=="production"&&et.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Vo]||(window[Vo]=0),window[Vo]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
59
|
+
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Vo]+=1);const Cr=Je.div`
|
|
61
|
+
height: ${({$space:e,$spaceMob:t,$samespace:n})=>t||(e&&n?e:24)}px;
|
|
62
|
+
width: 100%;
|
|
63
|
+
|
|
64
|
+
@media (min-width: 1024px) {
|
|
65
|
+
height: ${({$space:e})=>e??"48"}px;
|
|
66
|
+
}
|
|
67
|
+
`;var $u={exports:{}},Os={};/**
|
|
68
|
+
* @license React
|
|
69
|
+
* react-jsx-runtime.production.min.js
|
|
70
|
+
*
|
|
71
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the MIT license found in the
|
|
74
|
+
* LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/var zf;function Sy(){if(zf)return Os;zf=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,f,d){var g,p={},v=null,C=null;d!==void 0&&(v=""+d),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(C=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(p[g]=f[g]);if(l&&l.defaultProps)for(g in f=l.defaultProps,f)p[g]===void 0&&(p[g]=f[g]);return{$$typeof:t,type:l,key:v,ref:C,props:p,_owner:o.current}}return Os.Fragment=n,Os.jsx=u,Os.jsxs=u,Os}var Fs={},Gf;function Ay(){return Gf||(Gf=1,et.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),A=Symbol.iterator,E="@@iterator";function b(M){if(M===null||typeof M!="object")return null;var fe=A&&M[A]||M[E];return typeof fe=="function"?fe:null}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(M){{for(var fe=arguments.length,be=new Array(fe>1?fe-1:0),Fe=1;Fe<fe;Fe++)be[Fe-1]=arguments[Fe];_("error",M,be)}}function _(M,fe,be){{var Fe=B.ReactDebugCurrentFrame,lt=Fe.getStackAddendum();lt!==""&&(fe+="%s",be=be.concat([lt]));var ft=be.map(function(nt){return String(nt)});ft.unshift("Warning: "+fe),Function.prototype.apply.call(console[M],console,ft)}}var k=!1,F=!1,R=!1,O=!1,W=!1,J;J=Symbol.for("react.module.reference");function le(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||W||M===o||M===d||M===g||O||M===C||k||F||R||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===p||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===J||M.getModuleId!==void 0))}function ce(M,fe,be){var Fe=M.displayName;if(Fe)return Fe;var lt=fe.displayName||fe.name||"";return lt!==""?be+"("+lt+")":be}function ge(M){return M.displayName||"Context"}function ye(M){if(M==null)return null;if(typeof M.tag=="number"&&N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case g:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var fe=M;return ge(fe)+".Consumer";case u:var be=M;return ge(be._context)+".Provider";case f:return ce(M,M.render,"ForwardRef");case p:var Fe=M.displayName||null;return Fe!==null?Fe:ye(M.type)||"Memo";case v:{var lt=M,ft=lt._payload,nt=lt._init;try{return ye(nt(ft))}catch{return null}}}return null}var he=Object.assign,me=0,Le,ke,xe,tt,Ae,Se,We;function Y(){}Y.__reactDisabledLog=!0;function Q(){{if(me===0){Le=console.log,ke=console.info,xe=console.warn,tt=console.error,Ae=console.group,Se=console.groupCollapsed,We=console.groupEnd;var M={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}me++}}function ue(){{if(me--,me===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:he({},M,{value:Le}),info:he({},M,{value:ke}),warn:he({},M,{value:xe}),error:he({},M,{value:tt}),group:he({},M,{value:Ae}),groupCollapsed:he({},M,{value:Se}),groupEnd:he({},M,{value:We})})}me<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var De=B.ReactCurrentDispatcher,Ye;function Te(M,fe,be){{if(Ye===void 0)try{throw Error()}catch(lt){var Fe=lt.stack.trim().match(/\n( *(at )?)/);Ye=Fe&&Fe[1]||""}return`
|
|
76
|
+
`+Ye+M}}var Re=!1,Oe;{var Ne=typeof WeakMap=="function"?WeakMap:Map;Oe=new Ne}function kt(M,fe){if(!M||Re)return"";{var be=Oe.get(M);if(be!==void 0)return be}var Fe;Re=!0;var lt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ft;ft=De.current,De.current=null,Q();try{if(fe){var nt=function(){throw Error()};if(Object.defineProperty(nt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(nt,[])}catch(Ht){Fe=Ht}Reflect.construct(M,[],nt)}else{try{nt.call()}catch(Ht){Fe=Ht}M.call(nt.prototype)}}else{try{throw Error()}catch(Ht){Fe=Ht}M()}}catch(Ht){if(Ht&&Fe&&typeof Ht.stack=="string"){for(var Xe=Ht.stack.split(`
|
|
77
|
+
`),Xt=Fe.stack.split(`
|
|
78
|
+
`),Ft=Xe.length-1,Dt=Xt.length-1;Ft>=1&&Dt>=0&&Xe[Ft]!==Xt[Dt];)Dt--;for(;Ft>=1&&Dt>=0;Ft--,Dt--)if(Xe[Ft]!==Xt[Dt]){if(Ft!==1||Dt!==1)do if(Ft--,Dt--,Dt<0||Xe[Ft]!==Xt[Dt]){var cn=`
|
|
79
|
+
`+Xe[Ft].replace(" at new "," at ");return M.displayName&&cn.includes("<anonymous>")&&(cn=cn.replace("<anonymous>",M.displayName)),typeof M=="function"&&Oe.set(M,cn),cn}while(Ft>=1&&Dt>=0);break}}}finally{Re=!1,De.current=ft,ue(),Error.prepareStackTrace=lt}var Tn=M?M.displayName||M.name:"",sr=Tn?Te(Tn):"";return typeof M=="function"&&Oe.set(M,sr),sr}function nn(M,fe,be){return kt(M,!1)}function Lt(M){var fe=M.prototype;return!!(fe&&fe.isReactComponent)}function Pt(M,fe,be){if(M==null)return"";if(typeof M=="function")return kt(M,Lt(M));if(typeof M=="string")return Te(M);switch(M){case d:return Te("Suspense");case g:return Te("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return nn(M.render);case p:return Pt(M.type,fe,be);case v:{var Fe=M,lt=Fe._payload,ft=Fe._init;try{return Pt(ft(lt),fe,be)}catch{}}}return""}var Nt=Object.prototype.hasOwnProperty,wt={},kn=B.ReactDebugCurrentFrame;function Sn(M){if(M){var fe=M._owner,be=Pt(M.type,M._source,fe?fe.type:null);kn.setExtraStackFrame(be)}else kn.setExtraStackFrame(null)}function Ce(M,fe,be,Fe,lt){{var ft=Function.call.bind(Nt);for(var nt in M)if(ft(M,nt)){var Xe=void 0;try{if(typeof M[nt]!="function"){var Xt=Error((Fe||"React class")+": "+be+" type `"+nt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[nt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Xt.name="Invariant Violation",Xt}Xe=M[nt](fe,nt,Fe,be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ft){Xe=Ft}Xe&&!(Xe instanceof Error)&&(Sn(lt),N("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Fe||"React class",be,nt,typeof Xe),Sn(null)),Xe instanceof Error&&!(Xe.message in wt)&&(wt[Xe.message]=!0,Sn(lt),N("Failed %s type: %s",be,Xe.message),Sn(null))}}}var Be=Array.isArray;function pe(M){return Be(M)}function At(M){{var fe=typeof Symbol=="function"&&Symbol.toStringTag,be=fe&&M[Symbol.toStringTag]||M.constructor.name||"Object";return be}}function xt(M){try{return vt(M),!1}catch{return!0}}function vt(M){return""+M}function rt(M){if(xt(M))return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",At(M)),vt(M)}var we=B.ReactCurrentOwner,_e={key:!0,ref:!0,__self:!0,__source:!0},ut,I;function y(M){if(Nt.call(M,"ref")){var fe=Object.getOwnPropertyDescriptor(M,"ref").get;if(fe&&fe.isReactWarning)return!1}return M.ref!==void 0}function w(M){if(Nt.call(M,"key")){var fe=Object.getOwnPropertyDescriptor(M,"key").get;if(fe&&fe.isReactWarning)return!1}return M.key!==void 0}function P(M,fe){typeof M.ref=="string"&&we.current}function V(M,fe){{var be=function(){ut||(ut=!0,N("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",fe))};be.isReactWarning=!0,Object.defineProperty(M,"key",{get:be,configurable:!0})}}function G(M,fe){{var be=function(){I||(I=!0,N("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",fe))};be.isReactWarning=!0,Object.defineProperty(M,"ref",{get:be,configurable:!0})}}var ee=function(M,fe,be,Fe,lt,ft,nt){var Xe={$$typeof:t,type:M,key:fe,ref:be,props:nt,_owner:ft};return Xe._store={},Object.defineProperty(Xe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Xe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Fe}),Object.defineProperty(Xe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:lt}),Object.freeze&&(Object.freeze(Xe.props),Object.freeze(Xe)),Xe};function Me(M,fe,be,Fe,lt){{var ft,nt={},Xe=null,Xt=null;be!==void 0&&(rt(be),Xe=""+be),w(fe)&&(rt(fe.key),Xe=""+fe.key),y(fe)&&(Xt=fe.ref,P(fe,lt));for(ft in fe)Nt.call(fe,ft)&&!_e.hasOwnProperty(ft)&&(nt[ft]=fe[ft]);if(M&&M.defaultProps){var Ft=M.defaultProps;for(ft in Ft)nt[ft]===void 0&&(nt[ft]=Ft[ft])}if(Xe||Xt){var Dt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Xe&&V(nt,Dt),Xt&&G(nt,Dt)}return ee(M,Xe,Xt,lt,Fe,we.current,nt)}}var pt=B.ReactCurrentOwner,ct=B.ReactDebugCurrentFrame;function dt(M){if(M){var fe=M._owner,be=Pt(M.type,M._source,fe?fe.type:null);ct.setExtraStackFrame(be)}else ct.setExtraStackFrame(null)}var st;st=!1;function Jr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Ai(){{if(pt.current){var M=ye(pt.current.type);if(M)return`
|
|
80
|
+
|
|
81
|
+
Check the render method of \``+M+"`."}return""}}function us(M){return""}var cs={};function ls(M){{var fe=Ai();if(!fe){var be=typeof M=="string"?M:M.displayName||M.name;be&&(fe=`
|
|
466
82
|
|
|
467
|
-
See https://
|
|
83
|
+
Check the top-level render call using <`+be+">.")}return fe}}function Yr(M,fe){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var be=ls(fe);if(cs[be])return;cs[be]=!0;var Fe="";M&&M._owner&&M._owner!==pt.current&&(Fe=" It was passed a child from "+ye(M._owner.type)+"."),dt(M),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',be,Fe),dt(null)}}function Ei(M,fe){{if(typeof M!="object")return;if(pe(M))for(var be=0;be<M.length;be++){var Fe=M[be];Jr(Fe)&&Yr(Fe,fe)}else if(Jr(M))M._store&&(M._store.validated=!0);else if(M){var lt=b(M);if(typeof lt=="function"&<!==M.entries)for(var ft=lt.call(M),nt;!(nt=ft.next()).done;)Jr(nt.value)&&Yr(nt.value,fe)}}}function so(M){{var fe=M.type;if(fe==null||typeof fe=="string")return;var be;if(typeof fe=="function")be=fe.propTypes;else if(typeof fe=="object"&&(fe.$$typeof===f||fe.$$typeof===p))be=fe.propTypes;else return;if(be){var Fe=ye(fe);Ce(be,M.props,"prop",Fe,M)}else if(fe.PropTypes!==void 0&&!st){st=!0;var lt=ye(fe);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",lt||"Unknown")}typeof fe.getDefaultProps=="function"&&!fe.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function oo(M){{for(var fe=Object.keys(M.props),be=0;be<fe.length;be++){var Fe=fe[be];if(Fe!=="children"&&Fe!=="key"){dt(M),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Fe),dt(null);break}}M.ref!==null&&(dt(M),N("Invalid attribute `ref` supplied to `React.Fragment`."),dt(null))}}var Or={};function ir(M,fe,be,Fe,lt,ft){{var nt=le(M);if(!nt){var Xe="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(Xe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Xt=us();Xt?Xe+=Xt:Xe+=Ai();var Ft;M===null?Ft="null":pe(M)?Ft="array":M!==void 0&&M.$$typeof===t?(Ft="<"+(ye(M.type)||"Unknown")+" />",Xe=" Did you accidentally export a JSX literal instead of a component?"):Ft=typeof M,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ft,Xe)}var Dt=Me(M,fe,be,lt,ft);if(Dt==null)return Dt;if(nt){var cn=fe.children;if(cn!==void 0)if(Fe)if(pe(cn)){for(var Tn=0;Tn<cn.length;Tn++)Ei(cn[Tn],M);Object.freeze&&Object.freeze(cn)}else N("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ei(cn,M)}if(Nt.call(fe,"key")){var sr=ye(M),Ht=Object.keys(fe).filter(function(lo){return lo!=="key"}),xi=Ht.length>0?"{key: someKey, "+Ht.join(": ..., ")+": ...}":"{key: someKey}";if(!Or[sr+xi]){var co=Ht.length>0?"{"+Ht.join(": ..., ")+": ...}":"{}";N(`A props object containing a "key" prop is being spread into JSX:
|
|
84
|
+
let props = %s;
|
|
85
|
+
<%s {...props} />
|
|
86
|
+
React keys must be passed directly to JSX without using spread:
|
|
87
|
+
let props = %s;
|
|
88
|
+
<%s key={someKey} {...props} />`,xi,sr,co,sr),Or[sr+xi]=!0}}return M===i?oo(Dt):so(Dt),Dt}}function Xr(M,fe,be){return ir(M,fe,be,!0)}function ao(M,fe,be){return ir(M,fe,be,!1)}var uo=ao,pn=Xr;Fs.Fragment=i,Fs.jsx=uo,Fs.jsxs=pn}()),Fs}et.env.NODE_ENV==="production"?$u.exports=Sy():$u.exports=Ay();var S=$u.exports;const Ey={CustomTreeProvider:Je.div`
|
|
89
|
+
.ant-tree-switcher {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
}
|
|
94
|
+
`},{Search:xy}=q.Input,Cy=({treeData:e,onSelect:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(""),u=f=>{const{value:d}=f.target,g={},p=(b,B)=>{b.forEach(N=>{g[N.key]=B,N.children&&p(N.children,N.key)})};p(e,null);const v=b=>{const B=[];let N=g[b];for(;N;)B.push(N),N=g[N];return B},C=[],A=b=>{b.forEach(B=>{if(B.title.toLowerCase().includes(d.toLowerCase())){C.push(B.key);const _=v(B.key);C.push(..._)}B.children&&A(B.children)})};A(e);const E=Array.from(new Set(C)).filter(Boolean);i(E),a(d)},l=f=>f.map(d=>{const g=d.title,p=g.toLowerCase().indexOf(o.toLowerCase()),v=g.substring(0,p),C=g.substring(p+o.length),A=p>-1?S.jsxs("span",{children:[v,S.jsx("span",{style:{color:"#f50"},children:o}),C]}):S.jsx("span",{children:g});return d.children?{...d,title:A,children:l(d.children)}:{...d,title:A}});return S.jsxs(S.Fragment,{children:[S.jsx(xy,{style:{marginBottom:8},placeholder:"Search",onChange:u}),S.jsx(Ey.CustomTreeProvider,{children:S.jsx(q.Tree,{treeData:l(e),expandedKeys:n,onExpand:f=>{i(f)},onSelect:(f,d)=>{t&&t(f,d),n.includes(d.node.key)?i([...n.filter(g=>g!==d.node.key)]):i([...n,d.node.key])}})})]})},_y=globalThis||void 0||self;function Jf(e,t){return function(){return e.apply(t,arguments)}}const{toString:ky}=Object.prototype,{getPrototypeOf:Mu}=Object,qo=(e=>t=>{const n=ky.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),dr=e=>(e=e.toLowerCase(),t=>qo(t)===e),Wo=e=>t=>typeof t===e,{isArray:qi}=Array,Bs=Wo("undefined");function Ty(e){return e!==null&&!Bs(e)&&e.constructor!==null&&!Bs(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yf=dr("ArrayBuffer");function Iy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yf(e.buffer),t}const Oy=Wo("string"),Nn=Wo("function"),Xf=Wo("number"),Ho=e=>e!==null&&typeof e=="object",Fy=e=>e===!0||e===!1,Ko=e=>{if(qo(e)!=="object")return!1;const t=Mu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},By=dr("Date"),Dy=dr("File"),Ry=dr("Blob"),Ly=dr("FileList"),Py=e=>Ho(e)&&Nn(e.pipe),Ny=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nn(e.append)&&((t=qo(e))==="formdata"||t==="object"&&Nn(e.toString)&&e.toString()==="[object FormData]"))},jy=dr("URLSearchParams"),$y=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ds(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),qi(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let l;for(i=0;i<u;i++)l=a[i],t.call(null,e[l],l,e)}}function Qf(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const Zf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:_y,eh=e=>!Bs(e)&&e!==Zf;function Uu(){const{caseless:e}=eh(this)&&this||{},t={},n=(i,o)=>{const a=e&&Qf(t,o)||o;Ko(t[a])&&Ko(i)?t[a]=Uu(t[a],i):Ko(i)?t[a]=Uu({},i):qi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Ds(arguments[i],n);return t}const My=(e,t,n,{allOwnKeys:i}={})=>(Ds(t,(o,a)=>{n&&Nn(o)?e[a]=Jf(o,n):e[a]=o},{allOwnKeys:i}),e),Uy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vy=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},qy=(e,t,n,i)=>{let o,a,u;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!i||i(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&Mu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Wy=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Hy=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Xf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ky=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mu(Uint8Array)),zy=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Gy=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Jy=dr("HTMLFormElement"),Yy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),th=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xy=dr("RegExp"),nh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Ds(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},Qy=e=>{nh(e,(t,n)=>{if(Nn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Nn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Zy=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return qi(e)?i(e):i(String(e).split(t)),n},em=()=>{},tm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Vu="abcdefghijklmnopqrstuvwxyz",rh="0123456789",ih={DIGIT:rh,ALPHA:Vu,ALPHA_DIGIT:Vu+Vu.toUpperCase()+rh},nm=(e=16,t=ih.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function rm(e){return!!(e&&Nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const im=e=>{const t=new Array(10),n=(i,o)=>{if(Ho(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=qi(i)?[]:{};return Ds(i,(u,l)=>{const f=n(u,o+1);!Bs(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},sm=dr("AsyncFunction"),re={isArray:qi,isArrayBuffer:Yf,isBuffer:Ty,isFormData:Ny,isArrayBufferView:Iy,isString:Oy,isNumber:Xf,isBoolean:Fy,isObject:Ho,isPlainObject:Ko,isUndefined:Bs,isDate:By,isFile:Dy,isBlob:Ry,isRegExp:Xy,isFunction:Nn,isStream:Py,isURLSearchParams:jy,isTypedArray:Ky,isFileList:Ly,forEach:Ds,merge:Uu,extend:My,trim:$y,stripBOM:Uy,inherits:Vy,toFlatObject:qy,kindOf:qo,kindOfTest:dr,endsWith:Wy,toArray:Hy,forEachEntry:zy,matchAll:Gy,isHTMLForm:Jy,hasOwnProperty:th,hasOwnProp:th,reduceDescriptors:nh,freezeMethods:Qy,toObjectSet:Zy,toCamelCase:Yy,noop:em,toFiniteNumber:tm,findKey:Qf,global:Zf,isContextDefined:eh,ALPHABET:ih,generateString:nm,isSpecCompliantForm:rm,toJSONObject:im,isAsyncFn:sm,isThenable:e=>e&&(Ho(e)||Nn(e))&&Nn(e.then)&&Nn(e.catch)};var sh={},zo={};zo.byteLength=um,zo.toByteArray=lm,zo.fromByteArray=dm;for(var pr=[],jn=[],om=typeof Uint8Array<"u"?Uint8Array:Array,qu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wi=0,am=qu.length;Wi<am;++Wi)pr[Wi]=qu[Wi],jn[qu.charCodeAt(Wi)]=Wi;jn[45]=62,jn[95]=63;function oh(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function um(e){var t=oh(e),n=t[0],i=t[1];return(n+i)*3/4-i}function cm(e,t,n){return(t+n)*3/4-n}function lm(e){var t,n=oh(e),i=n[0],o=n[1],a=new om(cm(e,i,o)),u=0,l=o>0?i-4:i,f;for(f=0;f<l;f+=4)t=jn[e.charCodeAt(f)]<<18|jn[e.charCodeAt(f+1)]<<12|jn[e.charCodeAt(f+2)]<<6|jn[e.charCodeAt(f+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=t&255;return o===2&&(t=jn[e.charCodeAt(f)]<<2|jn[e.charCodeAt(f+1)]>>4,a[u++]=t&255),o===1&&(t=jn[e.charCodeAt(f)]<<10|jn[e.charCodeAt(f+1)]<<4|jn[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=t&255),a}function fm(e){return pr[e>>18&63]+pr[e>>12&63]+pr[e>>6&63]+pr[e&63]}function hm(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(fm(i));return o.join("")}function dm(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(hm(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(pr[t>>2]+pr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(pr[t>>10]+pr[t>>4&63]+pr[t<<2&63]+"=")),o.join("")}var Wu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Wu.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,d=f>>1,g=-7,p=n?o-1:0,v=n?-1:1,C=e[t+p];for(p+=v,a=C&(1<<-g)-1,C>>=-g,g+=l;g>0;a=a*256+e[t+p],p+=v,g-=8);for(u=a&(1<<-g)-1,a>>=-g,g+=i;g>0;u=u*256+e[t+p],p+=v,g-=8);if(a===0)a=1-d;else{if(a===f)return u?NaN:(C?-1:1)*(1/0);u=u+Math.pow(2,i),a=a-d}return(C?-1:1)*u*Math.pow(2,a-i)},Wu.write=function(e,t,n,i,o,a){var u,l,f,d=a*8-o-1,g=(1<<d)-1,p=g>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:a-1,A=i?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=g):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?t+=v/f:t+=v*Math.pow(2,1-p),t*f>=2&&(u++,f/=2),u+p>=g?(l=0,u=g):u+p>=1?(l=(t*f-1)*Math.pow(2,o),u=u+p):(l=t*Math.pow(2,p-1)*Math.pow(2,o),u=0));o>=8;e[n+C]=l&255,C+=A,l/=256,o-=8);for(u=u<<o|l,d+=o;d>0;e[n+C]=u&255,C+=A,u/=256,d-=8);e[n+C-A]|=E*128};/*!
|
|
95
|
+
* The buffer module from node.js, for the browser.
|
|
96
|
+
*
|
|
97
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
98
|
+
* @license MIT
|
|
99
|
+
*/(function(e){const t=zo,n=Wu,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=g,e.SlowBuffer=F,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;g.TYPED_ARRAY_SUPPORT=f(),!g.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&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 f(){try{const I=new a(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,a.prototype),Object.setPrototypeOf(I,y),I.foo()===42}catch{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 d(I){if(I>o)throw new RangeError('The value "'+I+'" is invalid for option "size"');const y=new a(I);return Object.setPrototypeOf(y,g.prototype),y}function g(I,y,w){if(typeof I=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(I)}return p(I,y,w)}g.poolSize=8192;function p(I,y,w){if(typeof I=="string")return E(I,y);if(u.isView(I))return B(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(vt(I,u)||I&&vt(I.buffer,u)||typeof l<"u"&&(vt(I,l)||I&&vt(I.buffer,l)))return N(I,y,w);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const P=I.valueOf&&I.valueOf();if(P!=null&&P!==I)return g.from(P,y,w);const V=_(I);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return g.from(I[Symbol.toPrimitive]("string"),y,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}g.from=function(I,y,w){return p(I,y,w)},Object.setPrototypeOf(g.prototype,a.prototype),Object.setPrototypeOf(g,a);function v(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function C(I,y,w){return v(I),I<=0?d(I):y!==void 0?typeof w=="string"?d(I).fill(y,w):d(I).fill(y):d(I)}g.alloc=function(I,y,w){return C(I,y,w)};function A(I){return v(I),d(I<0?0:k(I)|0)}g.allocUnsafe=function(I){return A(I)},g.allocUnsafeSlow=function(I){return A(I)};function E(I,y){if((typeof y!="string"||y==="")&&(y="utf8"),!g.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=R(I,y)|0;let P=d(w);const V=P.write(I,y);return V!==w&&(P=P.slice(0,V)),P}function b(I){const y=I.length<0?0:k(I.length)|0,w=d(y);for(let P=0;P<y;P+=1)w[P]=I[P]&255;return w}function B(I){if(vt(I,a)){const y=new a(I);return N(y.buffer,y.byteOffset,y.byteLength)}return b(I)}function N(I,y,w){if(y<0||I.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<y+(w||0))throw new RangeError('"length" is outside of buffer bounds');let P;return y===void 0&&w===void 0?P=new a(I):w===void 0?P=new a(I,y):P=new a(I,y,w),Object.setPrototypeOf(P,g.prototype),P}function _(I){if(g.isBuffer(I)){const y=k(I.length)|0,w=d(y);return w.length===0||I.copy(w,0,0,y),w}if(I.length!==void 0)return typeof I.length!="number"||rt(I.length)?d(0):b(I);if(I.type==="Buffer"&&Array.isArray(I.data))return b(I.data)}function k(I){if(I>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return I|0}function F(I){return+I!=I&&(I=0),g.alloc(+I)}g.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==g.prototype},g.compare=function(y,w){if(vt(y,a)&&(y=g.from(y,y.offset,y.byteLength)),vt(w,a)&&(w=g.from(w,w.offset,w.byteLength)),!g.isBuffer(y)||!g.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===w)return 0;let P=y.length,V=w.length;for(let G=0,ee=Math.min(P,V);G<ee;++G)if(y[G]!==w[G]){P=y[G],V=w[G];break}return P<V?-1:V<P?1:0},g.isEncoding=function(y){switch(String(y).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(y,w){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return g.alloc(0);let P;if(w===void 0)for(w=0,P=0;P<y.length;++P)w+=y[P].length;const V=g.allocUnsafe(w);let G=0;for(P=0;P<y.length;++P){let ee=y[P];if(vt(ee,a))G+ee.length>V.length?(g.isBuffer(ee)||(ee=g.from(ee)),ee.copy(V,G)):a.prototype.set.call(V,ee,G);else if(g.isBuffer(ee))ee.copy(V,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return V};function R(I,y){if(g.isBuffer(I))return I.length;if(u.isView(I)||vt(I,u))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);const w=I.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&w===0)return 0;let V=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return Ce(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return At(I).length;default:if(V)return P?-1:Ce(I).length;y=(""+y).toLowerCase(),V=!0}}g.byteLength=R;function O(I,y,w){let P=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,y>>>=0,w<=y))return"";for(I||(I="utf8");;)switch(I){case"hex":return We(this,y,w);case"utf8":case"utf-8":return ke(this,y,w);case"ascii":return Ae(this,y,w);case"latin1":case"binary":return Se(this,y,w);case"base64":return Le(this,y,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,y,w);default:if(P)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),P=!0}}g.prototype._isBuffer=!0;function W(I,y,w){const P=I[y];I[y]=I[w],I[w]=P}g.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<y;w+=2)W(this,w,w+1);return this},g.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<y;w+=4)W(this,w,w+3),W(this,w+1,w+2);return this},g.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<y;w+=8)W(this,w,w+7),W(this,w+1,w+6),W(this,w+2,w+5),W(this,w+3,w+4);return this},g.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?ke(this,0,y):O.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(y){if(!g.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:g.compare(this,y)===0},g.prototype.inspect=function(){let y="";const w=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(y+=" ... "),"<Buffer "+y+">"},i&&(g.prototype[i]=g.prototype.inspect),g.prototype.compare=function(y,w,P,V,G){if(vt(y,a)&&(y=g.from(y,y.offset,y.byteLength)),!g.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(w===void 0&&(w=0),P===void 0&&(P=y?y.length:0),V===void 0&&(V=0),G===void 0&&(G=this.length),w<0||P>y.length||V<0||G>this.length)throw new RangeError("out of range index");if(V>=G&&w>=P)return 0;if(V>=G)return-1;if(w>=P)return 1;if(w>>>=0,P>>>=0,V>>>=0,G>>>=0,this===y)return 0;let ee=G-V,Me=P-w;const pt=Math.min(ee,Me),ct=this.slice(V,G),dt=y.slice(w,P);for(let st=0;st<pt;++st)if(ct[st]!==dt[st]){ee=ct[st],Me=dt[st];break}return ee<Me?-1:Me<ee?1:0};function J(I,y,w,P,V){if(I.length===0)return-1;if(typeof w=="string"?(P=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,rt(w)&&(w=V?0:I.length-1),w<0&&(w=I.length+w),w>=I.length){if(V)return-1;w=I.length-1}else if(w<0)if(V)w=0;else return-1;if(typeof y=="string"&&(y=g.from(y,P)),g.isBuffer(y))return y.length===0?-1:le(I,y,w,P,V);if(typeof y=="number")return y=y&255,typeof a.prototype.indexOf=="function"?V?a.prototype.indexOf.call(I,y,w):a.prototype.lastIndexOf.call(I,y,w):le(I,[y],w,P,V);throw new TypeError("val must be string, number or Buffer")}function le(I,y,w,P,V){let G=1,ee=I.length,Me=y.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(I.length<2||y.length<2)return-1;G=2,ee/=2,Me/=2,w/=2}function pt(dt,st){return G===1?dt[st]:dt.readUInt16BE(st*G)}let ct;if(V){let dt=-1;for(ct=w;ct<ee;ct++)if(pt(I,ct)===pt(y,dt===-1?0:ct-dt)){if(dt===-1&&(dt=ct),ct-dt+1===Me)return dt*G}else dt!==-1&&(ct-=ct-dt),dt=-1}else for(w+Me>ee&&(w=ee-Me),ct=w;ct>=0;ct--){let dt=!0;for(let st=0;st<Me;st++)if(pt(I,ct+st)!==pt(y,st)){dt=!1;break}if(dt)return ct}return-1}g.prototype.includes=function(y,w,P){return this.indexOf(y,w,P)!==-1},g.prototype.indexOf=function(y,w,P){return J(this,y,w,P,!0)},g.prototype.lastIndexOf=function(y,w,P){return J(this,y,w,P,!1)};function ce(I,y,w,P){w=Number(w)||0;const V=I.length-w;P?(P=Number(P),P>V&&(P=V)):P=V;const G=y.length;P>G/2&&(P=G/2);let ee;for(ee=0;ee<P;++ee){const Me=parseInt(y.substr(ee*2,2),16);if(rt(Me))return ee;I[w+ee]=Me}return ee}function ge(I,y,w,P){return xt(Ce(y,I.length-w),I,w,P)}function ye(I,y,w,P){return xt(Be(y),I,w,P)}function he(I,y,w,P){return xt(At(y),I,w,P)}function me(I,y,w,P){return xt(pe(y,I.length-w),I,w,P)}g.prototype.write=function(y,w,P,V){if(w===void 0)V="utf8",P=this.length,w=0;else if(P===void 0&&typeof w=="string")V=w,P=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(P)?(P=P>>>0,V===void 0&&(V="utf8")):(V=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-w;if((P===void 0||P>G)&&(P=G),y.length>0&&(P<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ee=!1;for(;;)switch(V){case"hex":return ce(this,y,w,P);case"utf8":case"utf-8":return ge(this,y,w,P);case"ascii":case"latin1":case"binary":return ye(this,y,w,P);case"base64":return he(this,y,w,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,y,w,P);default:if(ee)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ee=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Le(I,y,w){return y===0&&w===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(y,w))}function ke(I,y,w){w=Math.min(I.length,w);const P=[];let V=y;for(;V<w;){const G=I[V];let ee=null,Me=G>239?4:G>223?3:G>191?2:1;if(V+Me<=w){let pt,ct,dt,st;switch(Me){case 1:G<128&&(ee=G);break;case 2:pt=I[V+1],(pt&192)===128&&(st=(G&31)<<6|pt&63,st>127&&(ee=st));break;case 3:pt=I[V+1],ct=I[V+2],(pt&192)===128&&(ct&192)===128&&(st=(G&15)<<12|(pt&63)<<6|ct&63,st>2047&&(st<55296||st>57343)&&(ee=st));break;case 4:pt=I[V+1],ct=I[V+2],dt=I[V+3],(pt&192)===128&&(ct&192)===128&&(dt&192)===128&&(st=(G&15)<<18|(pt&63)<<12|(ct&63)<<6|dt&63,st>65535&&st<1114112&&(ee=st))}}ee===null?(ee=65533,Me=1):ee>65535&&(ee-=65536,P.push(ee>>>10&1023|55296),ee=56320|ee&1023),P.push(ee),V+=Me}return tt(P)}const xe=4096;function tt(I){const y=I.length;if(y<=xe)return String.fromCharCode.apply(String,I);let w="",P=0;for(;P<y;)w+=String.fromCharCode.apply(String,I.slice(P,P+=xe));return w}function Ae(I,y,w){let P="";w=Math.min(I.length,w);for(let V=y;V<w;++V)P+=String.fromCharCode(I[V]&127);return P}function Se(I,y,w){let P="";w=Math.min(I.length,w);for(let V=y;V<w;++V)P+=String.fromCharCode(I[V]);return P}function We(I,y,w){const P=I.length;(!y||y<0)&&(y=0),(!w||w<0||w>P)&&(w=P);let V="";for(let G=y;G<w;++G)V+=we[I[G]];return V}function Y(I,y,w){const P=I.slice(y,w);let V="";for(let G=0;G<P.length-1;G+=2)V+=String.fromCharCode(P[G]+P[G+1]*256);return V}g.prototype.slice=function(y,w){const P=this.length;y=~~y,w=w===void 0?P:~~w,y<0?(y+=P,y<0&&(y=0)):y>P&&(y=P),w<0?(w+=P,w<0&&(w=0)):w>P&&(w=P),w<y&&(w=y);const V=this.subarray(y,w);return Object.setPrototypeOf(V,g.prototype),V};function Q(I,y,w){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+y>w)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(y,w,P){y=y>>>0,w=w>>>0,P||Q(y,w,this.length);let V=this[y],G=1,ee=0;for(;++ee<w&&(G*=256);)V+=this[y+ee]*G;return V},g.prototype.readUintBE=g.prototype.readUIntBE=function(y,w,P){y=y>>>0,w=w>>>0,P||Q(y,w,this.length);let V=this[y+--w],G=1;for(;w>0&&(G*=256);)V+=this[y+--w]*G;return V},g.prototype.readUint8=g.prototype.readUInt8=function(y,w){return y=y>>>0,w||Q(y,1,this.length),this[y]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(y,w){return y=y>>>0,w||Q(y,2,this.length),this[y]|this[y+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(y,w){return y=y>>>0,w||Q(y,2,this.length),this[y]<<8|this[y+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},g.prototype.readBigUInt64LE=_e(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],P=this[y+7];(w===void 0||P===void 0)&&wt(y,this.length-8);const V=w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,G=this[++y]+this[++y]*2**8+this[++y]*2**16+P*2**24;return BigInt(V)+(BigInt(G)<<BigInt(32))}),g.prototype.readBigUInt64BE=_e(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],P=this[y+7];(w===void 0||P===void 0)&&wt(y,this.length-8);const V=w*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],G=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+P;return(BigInt(V)<<BigInt(32))+BigInt(G)}),g.prototype.readIntLE=function(y,w,P){y=y>>>0,w=w>>>0,P||Q(y,w,this.length);let V=this[y],G=1,ee=0;for(;++ee<w&&(G*=256);)V+=this[y+ee]*G;return G*=128,V>=G&&(V-=Math.pow(2,8*w)),V},g.prototype.readIntBE=function(y,w,P){y=y>>>0,w=w>>>0,P||Q(y,w,this.length);let V=w,G=1,ee=this[y+--V];for(;V>0&&(G*=256);)ee+=this[y+--V]*G;return G*=128,ee>=G&&(ee-=Math.pow(2,8*w)),ee},g.prototype.readInt8=function(y,w){return y=y>>>0,w||Q(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},g.prototype.readInt16LE=function(y,w){y=y>>>0,w||Q(y,2,this.length);const P=this[y]|this[y+1]<<8;return P&32768?P|4294901760:P},g.prototype.readInt16BE=function(y,w){y=y>>>0,w||Q(y,2,this.length);const P=this[y+1]|this[y]<<8;return P&32768?P|4294901760:P},g.prototype.readInt32LE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},g.prototype.readInt32BE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},g.prototype.readBigInt64LE=_e(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],P=this[y+7];(w===void 0||P===void 0)&&wt(y,this.length-8);const V=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(P<<24);return(BigInt(V)<<BigInt(32))+BigInt(w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),g.prototype.readBigInt64BE=_e(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],P=this[y+7];(w===void 0||P===void 0)&&wt(y,this.length-8);const V=(w<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(V)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+P)}),g.prototype.readFloatLE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),n.read(this,y,!0,23,4)},g.prototype.readFloatBE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),n.read(this,y,!1,23,4)},g.prototype.readDoubleLE=function(y,w){return y=y>>>0,w||Q(y,8,this.length),n.read(this,y,!0,52,8)},g.prototype.readDoubleBE=function(y,w){return y=y>>>0,w||Q(y,8,this.length),n.read(this,y,!1,52,8)};function ue(I,y,w,P,V,G){if(!g.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>V||y<G)throw new RangeError('"value" argument is out of bounds');if(w+P>I.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(y,w,P,V){if(y=+y,w=w>>>0,P=P>>>0,!V){const Me=Math.pow(2,8*P)-1;ue(this,y,w,P,Me,0)}let G=1,ee=0;for(this[w]=y&255;++ee<P&&(G*=256);)this[w+ee]=y/G&255;return w+P},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(y,w,P,V){if(y=+y,w=w>>>0,P=P>>>0,!V){const Me=Math.pow(2,8*P)-1;ue(this,y,w,P,Me,0)}let G=P-1,ee=1;for(this[w+G]=y&255;--G>=0&&(ee*=256);)this[w+G]=y/ee&255;return w+P},g.prototype.writeUint8=g.prototype.writeUInt8=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,1,255,0),this[w]=y&255,w+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,2,65535,0),this[w]=y&255,this[w+1]=y>>>8,w+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,2,65535,0),this[w]=y>>>8,this[w+1]=y&255,w+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,4,4294967295,0),this[w+3]=y>>>24,this[w+2]=y>>>16,this[w+1]=y>>>8,this[w]=y&255,w+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,4,4294967295,0),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4};function De(I,y,w,P,V){Pt(y,P,V,I,w,7);let G=Number(y&BigInt(4294967295));I[w++]=G,G=G>>8,I[w++]=G,G=G>>8,I[w++]=G,G=G>>8,I[w++]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[w++]=ee,ee=ee>>8,I[w++]=ee,ee=ee>>8,I[w++]=ee,ee=ee>>8,I[w++]=ee,w}function Ye(I,y,w,P,V){Pt(y,P,V,I,w,7);let G=Number(y&BigInt(4294967295));I[w+7]=G,G=G>>8,I[w+6]=G,G=G>>8,I[w+5]=G,G=G>>8,I[w+4]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[w+3]=ee,ee=ee>>8,I[w+2]=ee,ee=ee>>8,I[w+1]=ee,ee=ee>>8,I[w]=ee,w+8}g.prototype.writeBigUInt64LE=_e(function(y,w=0){return De(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=_e(function(y,w=0){return Ye(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(y,w,P,V){if(y=+y,w=w>>>0,!V){const pt=Math.pow(2,8*P-1);ue(this,y,w,P,pt-1,-pt)}let G=0,ee=1,Me=0;for(this[w]=y&255;++G<P&&(ee*=256);)y<0&&Me===0&&this[w+G-1]!==0&&(Me=1),this[w+G]=(y/ee>>0)-Me&255;return w+P},g.prototype.writeIntBE=function(y,w,P,V){if(y=+y,w=w>>>0,!V){const pt=Math.pow(2,8*P-1);ue(this,y,w,P,pt-1,-pt)}let G=P-1,ee=1,Me=0;for(this[w+G]=y&255;--G>=0&&(ee*=256);)y<0&&Me===0&&this[w+G+1]!==0&&(Me=1),this[w+G]=(y/ee>>0)-Me&255;return w+P},g.prototype.writeInt8=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,1,127,-128),y<0&&(y=255+y+1),this[w]=y&255,w+1},g.prototype.writeInt16LE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,2,32767,-32768),this[w]=y&255,this[w+1]=y>>>8,w+2},g.prototype.writeInt16BE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,2,32767,-32768),this[w]=y>>>8,this[w+1]=y&255,w+2},g.prototype.writeInt32LE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,4,2147483647,-2147483648),this[w]=y&255,this[w+1]=y>>>8,this[w+2]=y>>>16,this[w+3]=y>>>24,w+4},g.prototype.writeInt32BE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4},g.prototype.writeBigInt64LE=_e(function(y,w=0){return De(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=_e(function(y,w=0){return Ye(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Te(I,y,w,P,V,G){if(w+P>I.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function Re(I,y,w,P,V){return y=+y,w=w>>>0,V||Te(I,y,w,4),n.write(I,y,w,P,23,4),w+4}g.prototype.writeFloatLE=function(y,w,P){return Re(this,y,w,!0,P)},g.prototype.writeFloatBE=function(y,w,P){return Re(this,y,w,!1,P)};function Oe(I,y,w,P,V){return y=+y,w=w>>>0,V||Te(I,y,w,8),n.write(I,y,w,P,52,8),w+8}g.prototype.writeDoubleLE=function(y,w,P){return Oe(this,y,w,!0,P)},g.prototype.writeDoubleBE=function(y,w,P){return Oe(this,y,w,!1,P)},g.prototype.copy=function(y,w,P,V){if(!g.isBuffer(y))throw new TypeError("argument should be a Buffer");if(P||(P=0),!V&&V!==0&&(V=this.length),w>=y.length&&(w=y.length),w||(w=0),V>0&&V<P&&(V=P),V===P||y.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),y.length-w<V-P&&(V=y.length-w+P);const G=V-P;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(w,P,V):a.prototype.set.call(y,this.subarray(P,V),w),G},g.prototype.fill=function(y,w,P,V){if(typeof y=="string"){if(typeof w=="string"?(V=w,w=0,P=this.length):typeof P=="string"&&(V=P,P=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!g.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(y.length===1){const ee=y.charCodeAt(0);(V==="utf8"&&ee<128||V==="latin1")&&(y=ee)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(w<0||this.length<w||this.length<P)throw new RangeError("Out of range index");if(P<=w)return this;w=w>>>0,P=P===void 0?this.length:P>>>0,y||(y=0);let G;if(typeof y=="number")for(G=w;G<P;++G)this[G]=y;else{const ee=g.isBuffer(y)?y:g.from(y,V),Me=ee.length;if(Me===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<P-w;++G)this[G+w]=ee[G%Me]}return this};const Ne={};function kt(I,y,w){Ne[I]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}kt("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),kt("ERR_INVALID_ARG_TYPE",function(I,y){return`The "${I}" argument must be of type number. Received type ${typeof y}`},TypeError),kt("ERR_OUT_OF_RANGE",function(I,y,w){let P=`The value of "${I}" is out of range.`,V=w;return Number.isInteger(w)&&Math.abs(w)>2**32?V=nn(String(w)):typeof w=="bigint"&&(V=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(V=nn(V)),V+="n"),P+=` It must be ${y}. Received ${V}`,P},RangeError);function nn(I){let y="",w=I.length;const P=I[0]==="-"?1:0;for(;w>=P+4;w-=3)y=`_${I.slice(w-3,w)}${y}`;return`${I.slice(0,w)}${y}`}function Lt(I,y,w){Nt(y,"offset"),(I[y]===void 0||I[y+w]===void 0)&&wt(y,I.length-(w+1))}function Pt(I,y,w,P,V,G){if(I>w||I<y){const ee=typeof y=="bigint"?"n":"";let Me;throw y===0||y===BigInt(0)?Me=`>= 0${ee} and < 2${ee} ** ${(G+1)*8}${ee}`:Me=`>= -(2${ee} ** ${(G+1)*8-1}${ee}) and < 2 ** ${(G+1)*8-1}${ee}`,new Ne.ERR_OUT_OF_RANGE("value",Me,I)}Lt(P,V,G)}function Nt(I,y){if(typeof I!="number")throw new Ne.ERR_INVALID_ARG_TYPE(y,"number",I)}function wt(I,y,w){throw Math.floor(I)!==I?(Nt(I,w),new Ne.ERR_OUT_OF_RANGE("offset","an integer",I)):y<0?new Ne.ERR_BUFFER_OUT_OF_BOUNDS:new Ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,I)}const kn=/[^+/0-9A-Za-z-_]/g;function Sn(I){if(I=I.split("=")[0],I=I.trim().replace(kn,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Ce(I,y){y=y||1/0;let w;const P=I.length;let V=null;const G=[];for(let ee=0;ee<P;++ee){if(w=I.charCodeAt(ee),w>55295&&w<57344){if(!V){if(w>56319){(y-=3)>-1&&G.push(239,191,189);continue}else if(ee+1===P){(y-=3)>-1&&G.push(239,191,189);continue}V=w;continue}if(w<56320){(y-=3)>-1&&G.push(239,191,189),V=w;continue}w=(V-55296<<10|w-56320)+65536}else V&&(y-=3)>-1&&G.push(239,191,189);if(V=null,w<128){if((y-=1)<0)break;G.push(w)}else if(w<2048){if((y-=2)<0)break;G.push(w>>6|192,w&63|128)}else if(w<65536){if((y-=3)<0)break;G.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((y-=4)<0)break;G.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return G}function Be(I){const y=[];for(let w=0;w<I.length;++w)y.push(I.charCodeAt(w)&255);return y}function pe(I,y){let w,P,V;const G=[];for(let ee=0;ee<I.length&&!((y-=2)<0);++ee)w=I.charCodeAt(ee),P=w>>8,V=w%256,G.push(V),G.push(P);return G}function At(I){return t.toByteArray(Sn(I))}function xt(I,y,w,P){let V;for(V=0;V<P&&!(V+w>=y.length||V>=I.length);++V)y[V+w]=I[V];return V}function vt(I,y){return I instanceof y||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===y.name}function rt(I){return I!==I}const we=function(){const I="0123456789abcdef",y=new Array(256);for(let w=0;w<16;++w){const P=w*16;for(let V=0;V<16;++V)y[P+V]=I[w]+I[V]}return y}();function _e(I){return typeof BigInt>"u"?ut:I}function ut(){throw new Error("BigInt not supported")}})(sh);const pm=sh.Buffer;function ht(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}re.inherits(ht,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ah=ht.prototype,uh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{uh[e]={value:e}}),Object.defineProperties(ht,uh),Object.defineProperty(ah,"isAxiosError",{value:!0}),ht.from=(e,t,n,i,o,a)=>{const u=Object.create(ah);return re.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),ht.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const gm=null;function Hu(e){return re.isPlainObject(e)||re.isArray(e)}function ch(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function lh(e,t,n){return e?e.concat(t).map(function(o,a){return o=ch(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function ym(e){return re.isArray(e)&&!e.some(Hu)}const mm=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function Go(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,b){return!re.isUndefined(b[E])});const i=n.metaTokens,o=n.visitor||g,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(o))throw new TypeError("visitor must be a function");function d(A){if(A===null)return"";if(re.isDate(A))return A.toISOString();if(!f&&re.isBlob(A))throw new ht("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(A)||re.isTypedArray(A)?f&&typeof Blob=="function"?new Blob([A]):pm.from(A):A}function g(A,E,b){let B=A;if(A&&!b&&typeof A=="object"){if(re.endsWith(E,"{}"))E=i?E:E.slice(0,-2),A=JSON.stringify(A);else if(re.isArray(A)&&ym(A)||(re.isFileList(A)||re.endsWith(E,"[]"))&&(B=re.toArray(A)))return E=ch(E),B.forEach(function(_,k){!(re.isUndefined(_)||_===null)&&t.append(u===!0?lh([E],k,a):u===null?E:E+"[]",d(_))}),!1}return Hu(A)?!0:(t.append(lh(b,E,a),d(A)),!1)}const p=[],v=Object.assign(mm,{defaultVisitor:g,convertValue:d,isVisitable:Hu});function C(A,E){if(!re.isUndefined(A)){if(p.indexOf(A)!==-1)throw Error("Circular reference detected in "+E.join("."));p.push(A),re.forEach(A,function(B,N){(!(re.isUndefined(B)||B===null)&&o.call(t,B,re.isString(N)?N.trim():N,E,v))===!0&&C(B,E?E.concat(N):[N])}),p.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return C(e),t}function fh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Ku(e,t){this._pairs=[],e&&Go(e,this,t)}const hh=Ku.prototype;hh.append=function(t,n){this._pairs.push([t,n])},hh.toString=function(t){const n=t?function(i){return t.call(this,i,fh)}:fh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function wm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dh(e,t,n){if(!t)return e;const i=n&&n.encode||wm,o=n&&n.serialize;let a;if(o?a=o(t,n):a=re.isURLSearchParams(t)?t.toString():new Ku(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ph{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(i){i!==null&&t(i)})}}const gh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bm=typeof URLSearchParams<"u"?URLSearchParams:Ku,vm=typeof FormData<"u"?FormData:null,Sm=typeof Blob<"u"?Blob:null,Am=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Em=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gr={classes:{URLSearchParams:bm,FormData:vm,Blob:Sm},isStandardBrowserEnv:Am,isStandardBrowserWebWorkerEnv:Em,protocols:["http","https","file","blob","url","data"]};function xm(e,t){return Go(e,new gr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return gr.isNode&&re.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Cm(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _m(e){const t={},n=Object.keys(e);let i;const o=n.length;let a;for(i=0;i<o;i++)a=n[i],t[a]=e[a];return t}function yh(e){function t(n,i,o,a){let u=n[a++];const l=Number.isFinite(+u),f=a>=n.length;return u=!u&&re.isArray(o)?o.length:u,f?(re.hasOwnProp(o,u)?o[u]=[o[u],i]:o[u]=i,!l):((!o[u]||!re.isObject(o[u]))&&(o[u]=[]),t(n,i,o[u],a)&&re.isArray(o[u])&&(o[u]=_m(o[u])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(i,o)=>{t(Cm(i),o,n,0)}),n}return null}const km={"Content-Type":void 0};function Tm(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Hi={transitional:gh,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=re.isObject(t);if(a&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return o&&o?JSON.stringify(yh(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return xm(t,this.formSerializer).toString();if((l=re.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Go(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Tm(t)):t}],transformResponse:[function(t){const n=this.transitional||Hi.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&re.isString(t)&&(i&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(u)throw l.name==="SyntaxError"?ht.from(l,ht.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gr.classes.FormData,Blob:gr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};re.forEach(["delete","get","head"],function(t){Hi.headers[t]={}}),re.forEach(["post","put","patch"],function(t){Hi.headers[t]=re.merge(km)});const Im=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Om=e=>{const t={};let n,i,o;return e&&e.split(`
|
|
100
|
+
`).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),i=u.substring(o+1).trim(),!(!n||t[n]&&Im[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},mh=Symbol("internals");function Rs(e){return e&&String(e).trim().toLowerCase()}function Jo(e){return e===!1||e==null?e:re.isArray(e)?e.map(Jo):String(e)}function Fm(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const Bm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,i,o){if(re.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!re.isString(t)){if(re.isString(i))return t.indexOf(i)!==-1;if(re.isRegExp(i))return i.test(t)}}function Dm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Rm(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,a,u){return this[i].call(this,t,o,a,u)},configurable:!0})})}let $n=class{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function a(l,f,d){const g=Rs(f);if(!g)throw new Error("header name must be a non-empty string");const p=re.findKey(o,g);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||f]=Jo(l))}const u=(l,f)=>re.forEach(l,(d,g)=>a(d,g,f));return re.isPlainObject(t)||t instanceof this.constructor?u(t,n):re.isString(t)&&(t=t.trim())&&!Bm(t)?u(Om(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=Rs(t),t){const i=re.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return Fm(o);if(re.isFunction(n))return n.call(this,o,i);if(re.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rs(t),t){const i=re.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||zu(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(u){if(u=Rs(u),u){const l=re.findKey(i,u);l&&(!n||zu(i,i[l],l,n))&&(delete i[l],o=!0)}}return re.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const a=n[i];(!t||zu(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,i={};return re.forEach(this,(o,a)=>{const u=re.findKey(i,a);if(u){n[u]=Jo(o),delete n[a];return}const l=t?Dm(a):String(a).trim();l!==a&&delete n[a],n[l]=Jo(o),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&re.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
101
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[mh]=this[mh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Rs(u);i[l]||(Rm(o,u),i[l]=!0)}return re.isArray(t)?t.forEach(a):a(t),this}};$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.freezeMethods($n.prototype),re.freezeMethods($n);function Gu(e,t){const n=this||Hi,i=t||n,o=$n.from(i.headers);let a=i.data;return re.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function wh(e){return!!(e&&e.__CANCEL__)}function Ls(e,t,n){ht.call(this,e??"canceled",ht.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ls,ht,{__CANCEL__:!0});function Lm(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new ht("Request failed with status code "+n.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Pm=gr.isStandardBrowserEnv?function(){return{write:function(n,i,o,a,u,l){const f=[];f.push(n+"="+encodeURIComponent(i)),re.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),re.isString(a)&&f.push("path="+a),re.isString(u)&&f.push("domain="+u),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Nm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jm(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function bh(e,t){return e&&!Nm(t)?jm(e,t):t}const $m=gr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function o(a){let u=a;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(u){const l=re.isString(u)?o(u):u;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function Mm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Um(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),g=i[a];u||(u=d),n[o]=f,i[o]=d;let p=a,v=0;for(;p!==o;)v+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-u<t)return;const C=g&&d-g;return C?Math.round(v*1e3/C):void 0}}function vh(e,t){let n=0;const i=Um(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),d=a<=u;n=a;const g={loaded:a,total:u,progress:u?a/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&d?(u-a)/f:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const Yo={http:gm,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){let o=e.data;const a=$n.from(e.headers).normalize(),u=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}re.isFormData(o)&&(gr.isStandardBrowserEnv||gr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",A=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(C+":"+A))}const g=bh(e.baseURL,e.url);d.open(e.method.toUpperCase(),dh(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const C=$n.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),E={data:!u||u==="text"||u==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:C,config:e,request:d};Lm(function(B){n(B),f()},function(B){i(B),f()},E),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(i(new ht("Request aborted",ht.ECONNABORTED,e,d)),d=null)},d.onerror=function(){i(new ht("Network Error",ht.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let A=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||gh;e.timeoutErrorMessage&&(A=e.timeoutErrorMessage),i(new ht(A,E.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,d)),d=null},gr.isStandardBrowserEnv){const C=(e.withCredentials||$m(g))&&e.xsrfCookieName&&Pm.read(e.xsrfCookieName);C&&a.set(e.xsrfHeaderName,C)}o===void 0&&a.setContentType(null),"setRequestHeader"in d&&re.forEach(a.toJSON(),function(A,E){d.setRequestHeader(E,A)}),re.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),u&&u!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",vh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",vh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=C=>{d&&(i(!C||C.type?new Ls(null,e,d):C),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=Mm(g);if(v&&gr.protocols.indexOf(v)===-1){i(new ht("Unsupported protocol "+v+":",ht.ERR_BAD_REQUEST,e));return}d.send(o||null)})}};re.forEach(Yo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vm={getAdapter:e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let o=0;o<t&&(n=e[o],!(i=re.isString(n)?Yo[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new ht(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(re.hasOwnProp(Yo,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!re.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:Yo};function Ju(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ls(null,e)}function Sh(e){return Ju(e),e.headers=$n.from(e.headers),e.data=Gu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vm.getAdapter(e.adapter||Hi.adapter)(e).then(function(i){return Ju(e),i.data=Gu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return wh(i)||(Ju(e),i&&i.response&&(i.response.data=Gu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const Ah=e=>e instanceof $n?e.toJSON():e;function Ki(e,t){t=t||{};const n={};function i(d,g,p){return re.isPlainObject(d)&&re.isPlainObject(g)?re.merge.call({caseless:p},d,g):re.isPlainObject(g)?re.merge({},g):re.isArray(g)?g.slice():g}function o(d,g,p){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d,p)}else return i(d,g,p)}function a(d,g){if(!re.isUndefined(g))return i(void 0,g)}function u(d,g){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d)}else return i(void 0,g)}function l(d,g,p){if(p in t)return i(d,g);if(p in e)return i(void 0,d)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(d,g)=>o(Ah(d),Ah(g),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(g){const p=f[g]||o,v=p(e[g],t[g],g);re.isUndefined(v)&&p!==l||(n[g]=v)}),n}const Eh="1.4.0",Yu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const xh={};Yu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+Eh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new ht(o(u," has been removed"+(n?" in "+n:"")),ht.ERR_DEPRECATED);return n&&!xh[u]&&(xh[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,l):!0}};function qm(e,t,n){if(typeof e!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],u=t[a];if(u){const l=e[a],f=l===void 0||u(l,a,e);if(f!==!0)throw new ht("option "+a+" must be "+f,ht.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ht("Unknown option "+a,ht.ERR_BAD_OPTION)}}const Xu={assertOptions:qm,validators:Yu},Vr=Xu.validators;let pi=class{constructor(t){this.defaults=t,this.interceptors={request:new ph,response:new ph}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&Xu.assertOptions(i,{silentJSONParsing:Vr.transitional(Vr.boolean),forcedJSONParsing:Vr.transitional(Vr.boolean),clarifyTimeoutError:Vr.transitional(Vr.boolean)},!1),o!=null&&(re.isFunction(o)?n.paramsSerializer={serialize:o}:Xu.assertOptions(o,{encode:Vr.function,serialize:Vr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=a&&re.merge(a.common,a[n.method]),u&&re.forEach(["delete","get","head","post","put","patch","common"],A=>{delete a[A]}),n.headers=$n.concat(u,a);const l=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let g,p=0,v;if(!f){const A=[Sh.bind(this),void 0];for(A.unshift.apply(A,l),A.push.apply(A,d),v=A.length,g=Promise.resolve(n);p<v;)g=g.then(A[p++],A[p++]);return g}v=l.length;let C=n;for(p=0;p<v;){const A=l[p++],E=l[p++];try{C=A(C)}catch(b){E.call(this,b);break}}try{g=Sh.call(this,C)}catch(A){return Promise.reject(A)}for(p=0,v=d.length;p<v;)g=g.then(d[p++],d[p++]);return g}getUri(t){t=Ki(this.defaults,t);const n=bh(t.baseURL,t.url);return dh(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){pi.prototype[t]=function(n,i){return this.request(Ki(i||{},{method:t,url:n,data:(i||{}).data}))}}),re.forEach(["post","put","patch"],function(t){function n(i){return function(a,u,l){return this.request(Ki(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}pi.prototype[t]=n(),pi.prototype[t+"Form"]=n(!0)});let Wm=class c1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const u=new Promise(l=>{i.subscribe(l),a=l}).then(o);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,l){i.reason||(i.reason=new Ls(a,u,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new c1(function(o){t=o}),cancel:t}}};function Hm(e){return function(n){return e.apply(null,n)}}function Km(e){return re.isObject(e)&&e.isAxiosError===!0}const Qu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qu).forEach(([e,t])=>{Qu[t]=e});function Ch(e){const t=new pi(e),n=Jf(pi.prototype.request,t);return re.extend(n,pi.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ch(Ki(e,o))},n}const Ue=Ch(Hi);Ue.Axios=pi,Ue.CanceledError=Ls,Ue.CancelToken=Wm,Ue.isCancel=wh,Ue.VERSION=Eh,Ue.toFormData=Go,Ue.AxiosError=ht,Ue.Cancel=Ue.CanceledError,Ue.all=function(t){return Promise.all(t)},Ue.spread=Hm,Ue.isAxiosError=Km,Ue.mergeConfig=Ki,Ue.AxiosHeaders=$n,Ue.formToJSON=e=>yh(re.isHTMLForm(e)?new FormData(e):e),Ue.HttpStatusCode=Qu,Ue.default=Ue;const{Axios:I8,AxiosError:O8,CanceledError:F8,isCancel:B8,CancelToken:D8,VERSION:R8,all:L8,Cancel:P8,isAxiosError:Xo,spread:N8,toFormData:j8,AxiosHeaders:$8,HttpStatusCode:M8,formToJSON:U8,mergeConfig:V8}=Ue,Qo=async({endpoint:e,body:t})=>Ue.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Zo=async({endpoint:e,body:t})=>Ue.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),Zu=async({endpoint:e})=>Ue.delete(e),ec=({name:e,onClose:t,endpoint:n})=>{const[i,o]=Z.useState(),[a,u]=Z.useState(!1),l=()=>{u(!0),o(void 0),Zu({endpoint:n}).then(()=>{u(!1),o(void 0),t()}).catch(f=>{u(!1),o(f)})};return S.jsx(q.Modal,{title:`Delete «${e}»`,open:!0,onOk:()=>l(),onCancel:()=>{t(),u(!1),o(void 0)},okText:"Delete",confirmLoading:a,okButtonProps:{danger:!0},width:400,children:i&&S.jsx(q.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},zm=({data:e,onClose:t})=>{const[n,i]=Z.useState(),[o,a]=Z.useState(!1),u=()=>{a(!0),i(void 0);const l=e.map(({endpoint:f})=>Zu({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return S.jsx(q.Modal,{title:"Delete selected",open:!0,onOk:()=>u(),onCancel:()=>{t(),a(!1),i(void 0)},okText:"Delete",confirmLoading:o,okButtonProps:{danger:!0},width:400,children:n&&S.jsx(q.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},_h=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M17.25 3.5H14.25V1.625C14.25 0.797656 13.5773 0.125 12.75 0.125H5.25C4.42266 0.125 3.75 0.797656 3.75 1.625V3.5H0.75C0.335156 3.5 0 3.83516 0 4.25V5C0 5.10313 0.084375 5.1875 0.1875 5.1875H1.60312L2.18203 17.4453C2.21953 18.2445 2.88047 18.875 3.67969 18.875H14.3203C15.1219 18.875 15.7805 18.2469 15.818 17.4453L16.3969 5.1875H17.8125C17.9156 5.1875 18 5.10313 18 5V4.25C18 3.83516 17.6648 3.5 17.25 3.5ZM12.5625 3.5H5.4375V1.8125H12.5625V3.5Z",fill:e.colorText})})},kh=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:e.colorText})})},Th=()=>S.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("g",{clipPath:"url(#clip0_186_9937)",children:S.jsx("path",{d:"M6.33719 9.39777L11.0528 3.36027C11.0652 3.34449 11.073 3.32553 11.0751 3.30557C11.0772 3.2856 11.0737 3.26544 11.0649 3.2474C11.056 3.22936 11.0423 3.21417 11.0253 3.20357C11.0082 3.19298 10.9885 3.18741 10.9684 3.1875L9.93317 3.1875C9.86754 3.1875 9.8046 3.2183 9.76442 3.2692L5.99969 8.09063L2.23495 3.2692C2.19478 3.21697 2.13183 3.1875 2.0662 3.1875L1.03094 3.1875C0.941204 3.1875 0.89165 3.29063 0.946561 3.36027L5.66219 9.39777C5.70221 9.44908 5.75342 9.4906 5.8119 9.51915C5.87038 9.5477 5.93461 9.56254 5.99969 9.56254C6.06477 9.56254 6.12899 9.5477 6.18747 9.51915C6.24596 9.4906 6.29716 9.44908 6.33719 9.39777Z",fill:"currentColor"})}),S.jsx("defs",{children:S.jsx("clipPath",{id:"clip0_186_9937",children:S.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(12) rotate(90)"})})})]}),Ih=()=>S.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("g",{clipPath:"url(#clip0_186_11488)",children:S.jsx("path",{d:"M5.66281 2.60223L0.947189 8.63973C0.934768 8.65551 0.92705 8.67447 0.924919 8.69443C0.922788 8.7144 0.926332 8.73456 0.935143 8.7526C0.943955 8.77064 0.957676 8.78583 0.974732 8.79643C0.991787 8.80702 1.01149 8.81259 1.03156 8.8125L2.06683 8.8125C2.13246 8.8125 2.1954 8.7817 2.23558 8.7308L6.00031 3.90937L9.76505 8.7308C9.80522 8.78303 9.86817 8.8125 9.9338 8.8125L10.9691 8.8125C11.0588 8.8125 11.1083 8.70937 11.0534 8.63973L6.33781 2.60223C6.29779 2.55092 6.24658 2.5094 6.1881 2.48085C6.12962 2.4523 6.06539 2.43746 6.00031 2.43746C5.93523 2.43746 5.87101 2.4523 5.81253 2.48085C5.75404 2.5094 5.70284 2.55092 5.66281 2.60223Z",fill:"currentColor"})}),S.jsx("defs",{children:S.jsx("clipPath",{id:"clip0_186_11488",children:S.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12) rotate(-90)"})})})]}),Oh=()=>{const{token:e}=q.theme.useToken();return S.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsxs("g",{clipPath:"url(#clip0_294_13557)",children:[S.jsx("path",{d:"M0.568356 1.62165L1.19782 2.11384C2.05608 1.01674 3.3909 0.3125 4.88978 0.3125C7.47795 0.3125 9.57282 2.40513 9.57617 4.99442C9.57952 7.58594 7.48019 9.6875 4.88978 9.6875C2.86635 9.6875 1.14202 8.40402 0.485765 6.60603C0.469025 6.55915 0.493578 6.5067 0.540453 6.49107L1.17327 6.27344C1.19533 6.26588 1.21948 6.26725 1.24054 6.27726C1.26161 6.28727 1.27792 6.30513 1.28599 6.32701C1.30608 6.38281 1.3284 6.43862 1.35184 6.4933C1.54492 6.95089 1.8217 7.36161 2.17438 7.71429C2.52421 8.06478 2.93841 8.34445 3.39425 8.53795C3.86635 8.73772 4.36969 8.83929 4.88755 8.83929C5.40653 8.83929 5.90876 8.73772 6.38086 8.53795C6.83713 8.34526 7.25148 8.06549 7.60072 7.71429C7.9515 7.3645 8.23087 6.9498 8.42327 6.4933C8.62304 6.02009 8.72461 5.51786 8.72461 4.99888C8.72461 4.47991 8.62304 3.97768 8.42327 3.50446C8.23019 3.04688 7.9534 2.63616 7.60072 2.28348C7.24804 1.9308 6.83733 1.65402 6.38086 1.45982C5.90876 1.26004 5.40541 1.15848 4.88755 1.15848C4.36858 1.15848 3.86635 1.26004 3.39425 1.45982C2.93797 1.65251 2.52362 1.93228 2.17438 2.28348C2.06389 2.39397 1.9601 2.51116 1.86411 2.63393L2.53599 3.15848C2.54928 3.16877 2.5594 3.18259 2.56519 3.19837C2.57097 3.21415 2.57219 3.23125 2.56869 3.24768C2.56519 3.26412 2.55712 3.27924 2.54542 3.2913C2.53371 3.30336 2.51884 3.31187 2.50251 3.31585L0.542685 3.79576C0.486881 3.80915 0.432195 3.76674 0.432195 3.70982L0.423265 1.69085C0.424381 1.61719 0.51032 1.57589 0.568356 1.62165Z",fill:e.colorPrimary}),S.jsx("circle",{cx:"4.99935",cy:"5.00033",r:"2.08333",fill:e.colorPrimary})]}),S.jsx("defs",{children:S.jsx("clipPath",{id:"clip0_294_13557",children:S.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})},Fh=()=>{const{token:e}=q.theme.useToken();return S.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("g",{clipPath:"url(#clip0_661_14605)",children:S.jsx("path",{d:"M14.6751 8.38707C14.9751 7.99064 15.1412 7.50492 15.1412 6.99957C15.1412 6.19778 14.693 5.43885 13.9715 5.01564C13.7858 4.9067 13.5744 4.84937 13.359 4.84957H9.0769L9.18404 2.65492C9.20904 2.12457 9.02154 1.621 8.65726 1.23707C8.47848 1.04783 8.2628 0.897269 8.02353 0.794683C7.78427 0.692098 7.52651 0.63967 7.26618 0.640638C6.33761 0.640638 5.51618 1.26564 5.26976 2.16028L3.73583 7.71385H1.4269C1.11083 7.71385 0.855469 7.96921 0.855469 8.28528V14.7853C0.855469 15.1014 1.11083 15.3567 1.4269 15.3567H12.1644C12.3287 15.3567 12.4894 15.3246 12.6376 15.2603C13.4876 14.8978 14.0358 14.0674 14.0358 13.146C14.0358 12.921 14.0037 12.6996 13.9394 12.4853C14.2394 12.0889 14.4055 11.6031 14.4055 11.0978C14.4055 10.8728 14.3733 10.6514 14.309 10.4371C14.609 10.0406 14.7751 9.55492 14.7751 9.04957C14.7715 8.82457 14.7394 8.60135 14.6751 8.38707ZM2.14118 14.071V8.99957H3.58761V14.071H2.14118ZM13.5055 7.76742L13.1144 8.10671L13.3626 8.56028C13.4444 8.70969 13.4868 8.87746 13.4858 9.04778C13.4858 9.34242 13.3573 9.62278 13.1358 9.81564L12.7448 10.1549L12.993 10.6085C13.0747 10.7579 13.1171 10.9257 13.1162 11.096C13.1162 11.3906 12.9876 11.671 12.7662 11.8639L12.3751 12.2031L12.6233 12.6567C12.7051 12.8061 12.7475 12.9739 12.7465 13.1442C12.7465 13.5442 12.5108 13.9049 12.1465 14.0692H4.73047V8.94242L6.50726 2.50492C6.55307 2.33992 6.65142 2.19436 6.7874 2.09027C6.92339 1.98619 7.08959 1.92927 7.26083 1.92814C7.39654 1.92814 7.53047 1.96742 7.63761 2.04778C7.8144 2.17992 7.90904 2.37992 7.89833 2.59242L7.7269 6.13528H13.3412C13.659 6.32992 13.8555 6.6585 13.8555 6.99957C13.8555 7.29421 13.7269 7.57278 13.5055 7.76742Z",fill:e.colorSuccess})}),S.jsx("defs",{children:S.jsx("clipPath",{id:"clip0_661_14605",children:S.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})},Gm={success:S.jsx(wn.CheckCircleFilled,{}),error:S.jsx(wn.CloseCircleFilled,{}),warning:S.jsx(wn.ExclamationCircleFilled,{}),validating:S.jsx(wn.LoadingOutlined,{})},qr=()=>({...Gm,success:S.jsx(Fh,{})}),tc=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M8.53558 1.57227H7.46415C7.36891 1.57227 7.32129 1.61988 7.32129 1.71512V7.32227H2.00028C1.90504 7.32227 1.85742 7.36988 1.85742 7.46512V8.53655C1.85742 8.63179 1.90504 8.67941 2.00028 8.67941H7.32129V14.2866C7.32129 14.3818 7.36891 14.4294 7.46415 14.4294H8.53558C8.63081 14.4294 8.67843 14.3818 8.67843 14.2866V8.67941H14.0003C14.0955 8.67941 14.1431 8.63179 14.1431 8.53655V7.46512C14.1431 7.36988 14.0955 7.32227 14.0003 7.32227H8.67843V1.71512C8.67843 1.61988 8.63081 1.57227 8.53558 1.57227Z",fill:e.colorText})})},sn=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M14.4277 7.32227H1.57059C1.49202 7.32227 1.42773 7.38655 1.42773 7.46512V8.53655C1.42773 8.61512 1.49202 8.67941 1.57059 8.67941H14.4277C14.5063 8.67941 14.5706 8.61512 14.5706 8.53655V7.46512C14.5706 7.38655 14.5063 7.32227 14.4277 7.32227Z",fill:e.colorText})})},Bh=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M11.375 6.34375H10.4453V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398ZM9.46094 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V6.34375Z",fill:e.colorPrimary})})},Dh=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M11.375 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V4.21094C9.46094 4.27109 9.51016 4.32031 9.57031 4.32031H10.3359C10.3961 4.32031 10.4453 4.27109 10.4453 4.21094V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398Z",fill:e.colorText})})},Jm={ContentContainer:Je.div`
|
|
102
|
+
border: 1px solid ${({$borderColor:e})=>e};
|
|
103
|
+
border-radius: 6px;
|
|
104
|
+
background-color: ${({$bgColor:e})=>e};
|
|
105
|
+
width: 100%;
|
|
106
|
+
height: 100%;
|
|
107
|
+
padding: 24px;
|
|
108
|
+
flex-grow: ${({$flexGrow:e})=>e};
|
|
109
|
+
display: ${({$displayFlex:e})=>e?"flex":"block"};
|
|
110
|
+
flex-flow: ${({$flexFlow:e})=>e};
|
|
111
|
+
`},Rh=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=q.theme.useToken();return S.jsx(Jm.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},Lh=async({uri:e})=>Ue.get(e),tn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>bn.useQuery({queryKey:t,queryFn:async()=>{const o=await Lh({uri:e}),a=JSON.parse(JSON.stringify(o.data));return a.metadata?.resourceVersion&&delete a.metadata.resourceVersion,a},refetchInterval:n!==void 0?n:5e3,enabled:i}),Et=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),Ym=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?S.jsx(lr.Link,{to:Et({template:o,replaceValues:t}),children:Et({template:i,replaceValues:t})}):Et({template:i,replaceValues:t})})),Ph=({data:e,replaceValues:t,pathname:n})=>e.map(({pathToMatch:o,breadcrumbItems:a})=>({pathToMatch:Et({template:o,replaceValues:t}),breadcrumbItems:Ym({rawLinks:a,replaceValues:t})})).find(({pathToMatch:o})=>lr.matchPath(o,n)),nc={HeightDiv:Je.div`
|
|
468
112
|
min-height: 22px;
|
|
469
113
|
width: 100%;
|
|
470
|
-
`},
|
|
114
|
+
`},Nh=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=Ph({data:i,replaceValues:t,pathname:n});return o?S.jsx(nc.HeightDiv,{children:S.jsx(q.Breadcrumb,{separator:">",items:o.breadcrumbItems})}):S.jsx(nc.HeightDiv,{})},Xm=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o})=>{const{data:a,isError:u,isLoading:l}=tn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});return u?null:l?S.jsx(nc.HeightDiv,{children:S.jsx(q.Spin,{})}):a?S.jsx(Nh,{data:a,replaceValues:i,pathname:o}):null},jh=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?Et({template:o,replaceValues:t}):void 0;return{key:n,label:u?S.jsx(lr.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?jh({rawLinks:a,replaceValues:t}):void 0}}),Qm=({items:e,pathname:t,tags:n})=>{const i=(o,a)=>o.flatMap(u=>{const l=[...a,u.key?u.key:String(u.key)],f=u.internalMetaLink?.startsWith("/")?u.internalMetaLink.slice(1):u.internalMetaLink,d=t.startsWith("/")?t.slice(1):t,g=f===d||f&&l&&f.includes(d)?l:[],p=n&&n.keysAndTags&&u.key?n.keysAndTags[typeof u.key=="string"?u.key:String(u.key)]:void 0,v=n&&n.currentTags&&p&&p.some(A=>n.currentTags?.includes(A))?l:[];let C=[];return"children"in u&&u.children&&(C=i(u.children,l)),[...g,...v,...C]});return i(e,[])},$h=({data:e,replaceValues:t,pathname:n,idToCompare:i,currentTags:o})=>{const a=e.find(d=>d.id===i);if(!a)return;const u={menuItems:jh({rawLinks:a.menuItems,replaceValues:t})},f=(u?.menuItems?Qm({items:u?.menuItems,pathname:n,tags:{keysAndTags:a.keysAndTags,currentTags:o}}):[]).map(d=>typeof d=="string"?d:String(d));return{...u,selectedKeys:f}},Zm={CustomMenu:Je(q.Menu)`
|
|
115
|
+
margin-top: ${({$noMarginTop:e})=>e?"0":"16px"};
|
|
116
|
+
font-size: 14px;
|
|
117
|
+
line-height: 24px;
|
|
118
|
+
border: 0;
|
|
119
|
+
/* stylelint-disable declaration-no-important */
|
|
120
|
+
border-inline-end: 0 !important;
|
|
121
|
+
/* stylelint-enable declaration-no-important */
|
|
122
|
+
|
|
123
|
+
.ant-menu-submenu-expand-icon {
|
|
124
|
+
width: 16px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&& .ant-menu-item-only-child {
|
|
128
|
+
/* stylelint-disable declaration-no-important */
|
|
129
|
+
|
|
130
|
+
/* padding-left: 24px !important; */
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&& .ant-menu-sub .ant-menu-item {
|
|
134
|
+
margin: 0 !important;
|
|
135
|
+
}
|
|
136
|
+
`},Mh=({data:e,replaceValues:t,pathname:n,idToCompare:i,currentTags:o,noMarginTop:a})=>{const u=e?.items.map(({spec:f})=>f);if(!u)return null;const l=$h({data:u,replaceValues:t,pathname:n,idToCompare:i,currentTags:o});return l?S.jsx(Zm.CustomMenu,{selectedKeys:l.selectedKeys,onSelect:()=>{},onDeselect:()=>{},mode:"inline",items:l.menuItems,$noMarginTop:a}):null},Uh=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,idToCompare:a,currentTags:u,hidden:l,noMarginTop:f})=>{const{data:d,isError:g,isLoading:p}=tn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});return g?null:p?S.jsx(q.Spin,{}):!d||l?null:S.jsx(Mh,{data:d,replaceValues:i,pathname:o,idToCompare:a,currentTags:u,noMarginTop:f})};var ea={exports:{}};/**
|
|
137
|
+
* @license
|
|
138
|
+
* Lodash <https://lodash.com/>
|
|
139
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
140
|
+
* Released under MIT license <https://lodash.com/license>
|
|
141
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
142
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
143
|
+
*/ea.exports,function(e,t){(function(){var n,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,g="__lodash_placeholder__",p=1,v=2,C=4,A=1,E=2,b=1,B=2,N=4,_=8,k=16,F=32,R=64,O=128,W=256,J=512,le=30,ce="...",ge=800,ye=16,he=1,me=2,Le=3,ke=1/0,xe=9007199254740991,tt=17976931348623157e292,Ae=NaN,Se=4294967295,We=Se-1,Y=Se>>>1,Q=[["ary",O],["bind",b],["bindKey",B],["curry",_],["curryRight",k],["flip",J],["partial",F],["partialRight",R],["rearg",W]],ue="[object Arguments]",De="[object Array]",Ye="[object AsyncFunction]",Te="[object Boolean]",Re="[object Date]",Oe="[object DOMException]",Ne="[object Error]",kt="[object Function]",nn="[object GeneratorFunction]",Lt="[object Map]",Pt="[object Number]",Nt="[object Null]",wt="[object Object]",kn="[object Promise]",Sn="[object Proxy]",Ce="[object RegExp]",Be="[object Set]",pe="[object String]",At="[object Symbol]",xt="[object Undefined]",vt="[object WeakMap]",rt="[object WeakSet]",we="[object ArrayBuffer]",_e="[object DataView]",ut="[object Float32Array]",I="[object Float64Array]",y="[object Int8Array]",w="[object Int16Array]",P="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",ee="[object Uint16Array]",Me="[object Uint32Array]",pt=/\b__p \+= '';/g,ct=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39);/g,Jr=/[&<>"']/g,Ai=RegExp(st.source),us=RegExp(Jr.source),cs=/<%-([\s\S]+?)%>/g,ls=/<%([\s\S]+?)%>/g,Yr=/<%=([\s\S]+?)%>/g,Ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/,oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Or=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(Or.source),Xr=/^\s+/,ao=/\s/,uo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,be=/[()=,{}\[\]\/\s]/,Fe=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,nt=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Ft=/^0o[0-7]+$/i,Dt=/^(?:0|[1-9]\d*)$/,cn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,sr=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",xi="\\u0300-\\u036f",co="\\ufe20-\\ufe2f",lo="\\u20d0-\\u20ff",ka=xi+co+lo,Ta="\\u2700-\\u27bf",Ia="a-z\\xdf-\\xf6\\xf8-\\xff",zc="\\xac\\xb1\\xd7\\xf7",Gc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jc="\\u2000-\\u206f",Yc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",In="A-Z\\xc0-\\xd6\\xd8-\\xde",fs="\\ufe0e\\ufe0f",fo=zc+Gc+Jc+Yc,hs="['’]",Xc="["+Ht+"]",Qr="["+fo+"]",ds="["+ka+"]",Oa="\\d+",Fa="["+Ta+"]",Ba="["+Ia+"]",Da="[^"+Ht+fo+Oa+Ta+Ia+In+"]",h="\\ud83c[\\udffb-\\udfff]",x="(?:"+ds+"|"+h+")",j="[^"+Ht+"]",H="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",de="["+In+"]",Ke="\\u200d",yt="(?:"+Ba+"|"+Da+")",Qt="(?:"+de+"|"+Da+")",Kt="(?:"+hs+"(?:d|ll|m|re|s|t|ve))?",Qp="(?:"+hs+"(?:D|LL|M|RE|S|T|VE))?",Zp=x+"?",e0="["+fs+"]?",IS="(?:"+Ke+"(?:"+[j,H,ne].join("|")+")"+e0+Zp+")*",OS="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",t0=e0+Zp+IS,BS="(?:"+[Fa,H,ne].join("|")+")"+t0,DS="(?:"+[j+ds+"?",ds,H,ne,Xc].join("|")+")",RS=RegExp(hs,"g"),LS=RegExp(ds,"g"),Qc=RegExp(h+"(?="+h+")|"+DS+t0,"g"),PS=RegExp([de+"?"+Ba+"+"+Kt+"(?="+[Qr,de,"$"].join("|")+")",Qt+"+"+Qp+"(?="+[Qr,de+yt,"$"].join("|")+")",de+"?"+yt+"+"+Kt,de+"+"+Qp,FS,OS,Oa,BS].join("|"),"g"),NS=RegExp("["+Ke+Ht+ka+fs+"]"),jS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$S=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],MS=-1,Bt={};Bt[ut]=Bt[I]=Bt[y]=Bt[w]=Bt[P]=Bt[V]=Bt[G]=Bt[ee]=Bt[Me]=!0,Bt[ue]=Bt[De]=Bt[we]=Bt[Te]=Bt[_e]=Bt[Re]=Bt[Ne]=Bt[kt]=Bt[Lt]=Bt[Pt]=Bt[wt]=Bt[Ce]=Bt[Be]=Bt[pe]=Bt[vt]=!1;var Tt={};Tt[ue]=Tt[De]=Tt[we]=Tt[_e]=Tt[Te]=Tt[Re]=Tt[ut]=Tt[I]=Tt[y]=Tt[w]=Tt[P]=Tt[Lt]=Tt[Pt]=Tt[wt]=Tt[Ce]=Tt[Be]=Tt[pe]=Tt[At]=Tt[V]=Tt[G]=Tt[ee]=Tt[Me]=!0,Tt[Ne]=Tt[kt]=Tt[vt]=!1;var US={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},VS={"&":"&","<":"<",">":">",'"':""","'":"'"},qS={"&":"&","<":"<",">":">",""":'"',"'":"'"},WS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HS=parseFloat,KS=parseInt,n0=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,zS=typeof self=="object"&&self&&self.Object===Object&&self,an=n0||zS||Function("return this")(),Zc=t&&!t.nodeType&&t,Ci=Zc&&!0&&e&&!e.nodeType&&e,r0=Ci&&Ci.exports===Zc,el=r0&&n0.process,qn=function(){try{var K=Ci&&Ci.require&&Ci.require("util").types;return K||el&&el.binding&&el.binding("util")}catch{}}(),i0=qn&&qn.isArrayBuffer,s0=qn&&qn.isDate,o0=qn&&qn.isMap,a0=qn&&qn.isRegExp,u0=qn&&qn.isSet,c0=qn&&qn.isTypedArray;function On(K,te,X){switch(X.length){case 0:return K.call(te);case 1:return K.call(te,X[0]);case 2:return K.call(te,X[0],X[1]);case 3:return K.call(te,X[0],X[1],X[2])}return K.apply(te,X)}function GS(K,te,X,Ee){for(var Ve=-1,mt=K==null?0:K.length;++Ve<mt;){var Zt=K[Ve];te(Ee,Zt,X(Zt),K)}return Ee}function Wn(K,te){for(var X=-1,Ee=K==null?0:K.length;++X<Ee&&te(K[X],X,K)!==!1;);return K}function JS(K,te){for(var X=K==null?0:K.length;X--&&te(K[X],X,K)!==!1;);return K}function l0(K,te){for(var X=-1,Ee=K==null?0:K.length;++X<Ee;)if(!te(K[X],X,K))return!1;return!0}function Zr(K,te){for(var X=-1,Ee=K==null?0:K.length,Ve=0,mt=[];++X<Ee;){var Zt=K[X];te(Zt,X,K)&&(mt[Ve++]=Zt)}return mt}function Ra(K,te){var X=K==null?0:K.length;return!!X&&ps(K,te,0)>-1}function tl(K,te,X){for(var Ee=-1,Ve=K==null?0:K.length;++Ee<Ve;)if(X(te,K[Ee]))return!0;return!1}function Rt(K,te){for(var X=-1,Ee=K==null?0:K.length,Ve=Array(Ee);++X<Ee;)Ve[X]=te(K[X],X,K);return Ve}function ei(K,te){for(var X=-1,Ee=te.length,Ve=K.length;++X<Ee;)K[Ve+X]=te[X];return K}function nl(K,te,X,Ee){var Ve=-1,mt=K==null?0:K.length;for(Ee&&mt&&(X=K[++Ve]);++Ve<mt;)X=te(X,K[Ve],Ve,K);return X}function YS(K,te,X,Ee){var Ve=K==null?0:K.length;for(Ee&&Ve&&(X=K[--Ve]);Ve--;)X=te(X,K[Ve],Ve,K);return X}function rl(K,te){for(var X=-1,Ee=K==null?0:K.length;++X<Ee;)if(te(K[X],X,K))return!0;return!1}var XS=il("length");function QS(K){return K.split("")}function ZS(K){return K.match(fe)||[]}function f0(K,te,X){var Ee;return X(K,function(Ve,mt,Zt){if(te(Ve,mt,Zt))return Ee=mt,!1}),Ee}function La(K,te,X,Ee){for(var Ve=K.length,mt=X+(Ee?1:-1);Ee?mt--:++mt<Ve;)if(te(K[mt],mt,K))return mt;return-1}function ps(K,te,X){return te===te?fA(K,te,X):La(K,h0,X)}function eA(K,te,X,Ee){for(var Ve=X-1,mt=K.length;++Ve<mt;)if(Ee(K[Ve],te))return Ve;return-1}function h0(K){return K!==K}function d0(K,te){var X=K==null?0:K.length;return X?ol(K,te)/X:Ae}function il(K){return function(te){return te==null?n:te[K]}}function sl(K){return function(te){return K==null?n:K[te]}}function p0(K,te,X,Ee,Ve){return Ve(K,function(mt,Zt,Ct){X=Ee?(Ee=!1,mt):te(X,mt,Zt,Ct)}),X}function tA(K,te){var X=K.length;for(K.sort(te);X--;)K[X]=K[X].value;return K}function ol(K,te){for(var X,Ee=-1,Ve=K.length;++Ee<Ve;){var mt=te(K[Ee]);mt!==n&&(X=X===n?mt:X+mt)}return X}function al(K,te){for(var X=-1,Ee=Array(K);++X<K;)Ee[X]=te(X);return Ee}function nA(K,te){return Rt(te,function(X){return[X,K[X]]})}function g0(K){return K&&K.slice(0,b0(K)+1).replace(Xr,"")}function Fn(K){return function(te){return K(te)}}function ul(K,te){return Rt(te,function(X){return K[X]})}function ho(K,te){return K.has(te)}function y0(K,te){for(var X=-1,Ee=K.length;++X<Ee&&ps(te,K[X],0)>-1;);return X}function m0(K,te){for(var X=K.length;X--&&ps(te,K[X],0)>-1;);return X}function rA(K,te){for(var X=K.length,Ee=0;X--;)K[X]===te&&++Ee;return Ee}var iA=sl(US),sA=sl(VS);function oA(K){return"\\"+WS[K]}function aA(K,te){return K==null?n:K[te]}function gs(K){return NS.test(K)}function uA(K){return jS.test(K)}function cA(K){for(var te,X=[];!(te=K.next()).done;)X.push(te.value);return X}function cl(K){var te=-1,X=Array(K.size);return K.forEach(function(Ee,Ve){X[++te]=[Ve,Ee]}),X}function w0(K,te){return function(X){return K(te(X))}}function ti(K,te){for(var X=-1,Ee=K.length,Ve=0,mt=[];++X<Ee;){var Zt=K[X];(Zt===te||Zt===g)&&(K[X]=g,mt[Ve++]=X)}return mt}function Pa(K){var te=-1,X=Array(K.size);return K.forEach(function(Ee){X[++te]=Ee}),X}function lA(K){var te=-1,X=Array(K.size);return K.forEach(function(Ee){X[++te]=[Ee,Ee]}),X}function fA(K,te,X){for(var Ee=X-1,Ve=K.length;++Ee<Ve;)if(K[Ee]===te)return Ee;return-1}function hA(K,te,X){for(var Ee=X+1;Ee--;)if(K[Ee]===te)return Ee;return Ee}function ys(K){return gs(K)?pA(K):XS(K)}function or(K){return gs(K)?gA(K):QS(K)}function b0(K){for(var te=K.length;te--&&ao.test(K.charAt(te)););return te}var dA=sl(qS);function pA(K){for(var te=Qc.lastIndex=0;Qc.test(K);)++te;return te}function gA(K){return K.match(Qc)||[]}function yA(K){return K.match(PS)||[]}var mA=function K(te){te=te==null?an:ms.defaults(an.Object(),te,ms.pick(an,$S));var X=te.Array,Ee=te.Date,Ve=te.Error,mt=te.Function,Zt=te.Math,Ct=te.Object,ll=te.RegExp,wA=te.String,Hn=te.TypeError,Na=X.prototype,bA=mt.prototype,ws=Ct.prototype,ja=te["__core-js_shared__"],$a=bA.toString,St=ws.hasOwnProperty,vA=0,v0=function(){var r=/[^.]+$/.exec(ja&&ja.keys&&ja.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Ma=ws.toString,SA=$a.call(Ct),AA=an._,EA=ll("^"+$a.call(St).replace(Or,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ua=r0?te.Buffer:n,ni=te.Symbol,Va=te.Uint8Array,S0=Ua?Ua.allocUnsafe:n,qa=w0(Ct.getPrototypeOf,Ct),A0=Ct.create,E0=ws.propertyIsEnumerable,Wa=Na.splice,x0=ni?ni.isConcatSpreadable:n,po=ni?ni.iterator:n,_i=ni?ni.toStringTag:n,Ha=function(){try{var r=Fi(Ct,"defineProperty");return r({},"",{}),r}catch{}}(),xA=te.clearTimeout!==an.clearTimeout&&te.clearTimeout,CA=Ee&&Ee.now!==an.Date.now&&Ee.now,_A=te.setTimeout!==an.setTimeout&&te.setTimeout,Ka=Zt.ceil,za=Zt.floor,fl=Ct.getOwnPropertySymbols,kA=Ua?Ua.isBuffer:n,C0=te.isFinite,TA=Na.join,IA=w0(Ct.keys,Ct),en=Zt.max,ln=Zt.min,OA=Ee.now,FA=te.parseInt,_0=Zt.random,BA=Na.reverse,hl=Fi(te,"DataView"),go=Fi(te,"Map"),dl=Fi(te,"Promise"),bs=Fi(te,"Set"),yo=Fi(te,"WeakMap"),mo=Fi(Ct,"create"),Ga=yo&&new yo,vs={},DA=Bi(hl),RA=Bi(go),LA=Bi(dl),PA=Bi(bs),NA=Bi(yo),Ja=ni?ni.prototype:n,wo=Ja?Ja.valueOf:n,k0=Ja?Ja.toString:n;function D(r){if($t(r)&&!He(r)&&!(r instanceof ot)){if(r instanceof Kn)return r;if(St.call(r,"__wrapped__"))return Tg(r)}return new Kn(r)}var Ss=function(){function r(){}return function(s){if(!jt(s))return{};if(A0)return A0(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Ya(){}function Kn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}D.templateSettings={escape:cs,evaluate:ls,interpolate:Yr,variable:"",imports:{_:D}},D.prototype=Ya.prototype,D.prototype.constructor=D,Kn.prototype=Ss(Ya.prototype),Kn.prototype.constructor=Kn;function ot(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Se,this.__views__=[]}function jA(){var r=new ot(this.__wrapped__);return r.__actions__=An(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=An(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=An(this.__views__),r}function $A(){if(this.__filtered__){var r=new ot(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function MA(){var r=this.__wrapped__.value(),s=this.__dir__,c=He(r),m=s<0,T=c?r.length:0,L=QE(0,T,this.__views__),$=L.start,U=L.end,z=U-$,ie=m?U:$-1,se=this.__iteratees__,ae=se.length,ve=0,Ie=ln(z,this.__takeCount__);if(!c||!m&&T==z&&Ie==z)return X0(r,this.__actions__);var je=[];e:for(;z--&&ve<Ie;){ie+=s;for(var Qe=-1,$e=r[ie];++Qe<ae;){var it=se[Qe],at=it.iteratee,Rn=it.type,mn=at($e);if(Rn==me)$e=mn;else if(!mn){if(Rn==he)continue e;break e}}je[ve++]=$e}return je}ot.prototype=Ss(Ya.prototype),ot.prototype.constructor=ot;function ki(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function UA(){this.__data__=mo?mo(null):{},this.size=0}function VA(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function qA(r){var s=this.__data__;if(mo){var c=s[r];return c===f?n:c}return St.call(s,r)?s[r]:n}function WA(r){var s=this.__data__;return mo?s[r]!==n:St.call(s,r)}function HA(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=mo&&s===n?f:s,this}ki.prototype.clear=UA,ki.prototype.delete=VA,ki.prototype.get=qA,ki.prototype.has=WA,ki.prototype.set=HA;function Fr(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function KA(){this.__data__=[],this.size=0}function zA(r){var s=this.__data__,c=Xa(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Wa.call(s,c,1),--this.size,!0}function GA(r){var s=this.__data__,c=Xa(s,r);return c<0?n:s[c][1]}function JA(r){return Xa(this.__data__,r)>-1}function YA(r,s){var c=this.__data__,m=Xa(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Fr.prototype.clear=KA,Fr.prototype.delete=zA,Fr.prototype.get=GA,Fr.prototype.has=JA,Fr.prototype.set=YA;function Br(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function XA(){this.size=0,this.__data__={hash:new ki,map:new(go||Fr),string:new ki}}function QA(r){var s=cu(this,r).delete(r);return this.size-=s?1:0,s}function ZA(r){return cu(this,r).get(r)}function eE(r){return cu(this,r).has(r)}function tE(r,s){var c=cu(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Br.prototype.clear=XA,Br.prototype.delete=QA,Br.prototype.get=ZA,Br.prototype.has=eE,Br.prototype.set=tE;function Ti(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Br;++s<c;)this.add(r[s])}function nE(r){return this.__data__.set(r,f),this}function rE(r){return this.__data__.has(r)}Ti.prototype.add=Ti.prototype.push=nE,Ti.prototype.has=rE;function ar(r){var s=this.__data__=new Fr(r);this.size=s.size}function iE(){this.__data__=new Fr,this.size=0}function sE(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function oE(r){return this.__data__.get(r)}function aE(r){return this.__data__.has(r)}function uE(r,s){var c=this.__data__;if(c instanceof Fr){var m=c.__data__;if(!go||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new Br(m)}return c.set(r,s),this.size=c.size,this}ar.prototype.clear=iE,ar.prototype.delete=sE,ar.prototype.get=oE,ar.prototype.has=aE,ar.prototype.set=uE;function T0(r,s){var c=He(r),m=!c&&Di(r),T=!c&&!m&&ai(r),L=!c&&!m&&!T&&Cs(r),$=c||m||T||L,U=$?al(r.length,wA):[],z=U.length;for(var ie in r)(s||St.call(r,ie))&&!($&&(ie=="length"||T&&(ie=="offset"||ie=="parent")||L&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Pr(ie,z)))&&U.push(ie);return U}function I0(r){var s=r.length;return s?r[xl(0,s-1)]:n}function cE(r,s){return lu(An(r),Ii(s,0,r.length))}function lE(r){return lu(An(r))}function pl(r,s,c){(c!==n&&!ur(r[s],c)||c===n&&!(s in r))&&Dr(r,s,c)}function bo(r,s,c){var m=r[s];(!(St.call(r,s)&&ur(m,c))||c===n&&!(s in r))&&Dr(r,s,c)}function Xa(r,s){for(var c=r.length;c--;)if(ur(r[c][0],s))return c;return-1}function fE(r,s,c,m){return ri(r,function(T,L,$){s(m,T,c(T),$)}),m}function O0(r,s){return r&&vr(s,rn(s),r)}function hE(r,s){return r&&vr(s,xn(s),r)}function Dr(r,s,c){s=="__proto__"&&Ha?Ha(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function gl(r,s){for(var c=-1,m=s.length,T=X(m),L=r==null;++c<m;)T[c]=L?n:Jl(r,s[c]);return T}function Ii(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function zn(r,s,c,m,T,L){var $,U=s&p,z=s&v,ie=s&C;if(c&&($=T?c(r,m,T,L):c(r)),$!==n)return $;if(!jt(r))return r;var se=He(r);if(se){if($=ex(r),!U)return An(r,$)}else{var ae=fn(r),ve=ae==kt||ae==nn;if(ai(r))return eg(r,U);if(ae==wt||ae==ue||ve&&!T){if($=z||ve?{}:bg(r),!U)return z?qE(r,hE($,r)):VE(r,O0($,r))}else{if(!Tt[ae])return T?r:{};$=tx(r,ae,U)}}L||(L=new ar);var Ie=L.get(r);if(Ie)return Ie;L.set(r,$),Gg(r)?r.forEach(function($e){$.add(zn($e,s,c,$e,r,L))}):Kg(r)&&r.forEach(function($e,it){$.set(it,zn($e,s,c,it,r,L))});var je=ie?z?Ll:Rl:z?xn:rn,Qe=se?n:je(r);return Wn(Qe||r,function($e,it){Qe&&(it=$e,$e=r[it]),bo($,it,zn($e,s,c,it,r,L))}),$}function dE(r){var s=rn(r);return function(c){return F0(c,r,s)}}function F0(r,s,c){var m=c.length;if(r==null)return!m;for(r=Ct(r);m--;){var T=c[m],L=s[T],$=r[T];if($===n&&!(T in r)||!L($))return!1}return!0}function B0(r,s,c){if(typeof r!="function")throw new Hn(u);return _o(function(){r.apply(n,c)},s)}function vo(r,s,c,m){var T=-1,L=Ra,$=!0,U=r.length,z=[],ie=s.length;if(!U)return z;c&&(s=Rt(s,Fn(c))),m?(L=tl,$=!1):s.length>=o&&(L=ho,$=!1,s=new Ti(s));e:for(;++T<U;){var se=r[T],ae=c==null?se:c(se);if(se=m||se!==0?se:0,$&&ae===ae){for(var ve=ie;ve--;)if(s[ve]===ae)continue e;z.push(se)}else L(s,ae,m)||z.push(se)}return z}var ri=sg(br),D0=sg(ml,!0);function pE(r,s){var c=!0;return ri(r,function(m,T,L){return c=!!s(m,T,L),c}),c}function Qa(r,s,c){for(var m=-1,T=r.length;++m<T;){var L=r[m],$=s(L);if($!=null&&(U===n?$===$&&!Dn($):c($,U)))var U=$,z=L}return z}function gE(r,s,c,m){var T=r.length;for(c=ze(c),c<0&&(c=-c>T?0:T+c),m=m===n||m>T?T:ze(m),m<0&&(m+=T),m=c>m?0:Yg(m);c<m;)r[c++]=s;return r}function R0(r,s){var c=[];return ri(r,function(m,T,L){s(m,T,L)&&c.push(m)}),c}function un(r,s,c,m,T){var L=-1,$=r.length;for(c||(c=rx),T||(T=[]);++L<$;){var U=r[L];s>0&&c(U)?s>1?un(U,s-1,c,m,T):ei(T,U):m||(T[T.length]=U)}return T}var yl=og(),L0=og(!0);function br(r,s){return r&&yl(r,s,rn)}function ml(r,s){return r&&L0(r,s,rn)}function Za(r,s){return Zr(s,function(c){return Nr(r[c])})}function Oi(r,s){s=si(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[Sr(s[c++])];return c&&c==m?r:n}function P0(r,s,c){var m=s(r);return He(r)?m:ei(m,c(r))}function gn(r){return r==null?r===n?xt:Nt:_i&&_i in Ct(r)?XE(r):lx(r)}function wl(r,s){return r>s}function yE(r,s){return r!=null&&St.call(r,s)}function mE(r,s){return r!=null&&s in Ct(r)}function wE(r,s,c){return r>=ln(s,c)&&r<en(s,c)}function bl(r,s,c){for(var m=c?tl:Ra,T=r[0].length,L=r.length,$=L,U=X(L),z=1/0,ie=[];$--;){var se=r[$];$&&s&&(se=Rt(se,Fn(s))),z=ln(se.length,z),U[$]=!c&&(s||T>=120&&se.length>=120)?new Ti($&&se):n}se=r[0];var ae=-1,ve=U[0];e:for(;++ae<T&&ie.length<z;){var Ie=se[ae],je=s?s(Ie):Ie;if(Ie=c||Ie!==0?Ie:0,!(ve?ho(ve,je):m(ie,je,c))){for($=L;--$;){var Qe=U[$];if(!(Qe?ho(Qe,je):m(r[$],je,c)))continue e}ve&&ve.push(je),ie.push(Ie)}}return ie}function bE(r,s,c,m){return br(r,function(T,L,$){s(m,c(T),L,$)}),m}function So(r,s,c){s=si(s,r),r=Eg(r,s);var m=r==null?r:r[Sr(Jn(s))];return m==null?n:On(m,r,c)}function N0(r){return $t(r)&&gn(r)==ue}function vE(r){return $t(r)&&gn(r)==we}function SE(r){return $t(r)&&gn(r)==Re}function Ao(r,s,c,m,T){return r===s?!0:r==null||s==null||!$t(r)&&!$t(s)?r!==r&&s!==s:AE(r,s,c,m,Ao,T)}function AE(r,s,c,m,T,L){var $=He(r),U=He(s),z=$?De:fn(r),ie=U?De:fn(s);z=z==ue?wt:z,ie=ie==ue?wt:ie;var se=z==wt,ae=ie==wt,ve=z==ie;if(ve&&ai(r)){if(!ai(s))return!1;$=!0,se=!1}if(ve&&!se)return L||(L=new ar),$||Cs(r)?yg(r,s,c,m,T,L):JE(r,s,z,c,m,T,L);if(!(c&A)){var Ie=se&&St.call(r,"__wrapped__"),je=ae&&St.call(s,"__wrapped__");if(Ie||je){var Qe=Ie?r.value():r,$e=je?s.value():s;return L||(L=new ar),T(Qe,$e,c,m,L)}}return ve?(L||(L=new ar),YE(r,s,c,m,T,L)):!1}function EE(r){return $t(r)&&fn(r)==Lt}function vl(r,s,c,m){var T=c.length,L=T,$=!m;if(r==null)return!L;for(r=Ct(r);T--;){var U=c[T];if($&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++T<L;){U=c[T];var z=U[0],ie=r[z],se=U[1];if($&&U[2]){if(ie===n&&!(z in r))return!1}else{var ae=new ar;if(m)var ve=m(ie,se,z,r,s,ae);if(!(ve===n?Ao(se,ie,A|E,m,ae):ve))return!1}}return!0}function j0(r){if(!jt(r)||sx(r))return!1;var s=Nr(r)?EA:Xt;return s.test(Bi(r))}function xE(r){return $t(r)&&gn(r)==Ce}function CE(r){return $t(r)&&fn(r)==Be}function _E(r){return $t(r)&&yu(r.length)&&!!Bt[gn(r)]}function $0(r){return typeof r=="function"?r:r==null?Cn:typeof r=="object"?He(r)?V0(r[0],r[1]):U0(r):a1(r)}function Sl(r){if(!Co(r))return IA(r);var s=[];for(var c in Ct(r))St.call(r,c)&&c!="constructor"&&s.push(c);return s}function kE(r){if(!jt(r))return cx(r);var s=Co(r),c=[];for(var m in r)m=="constructor"&&(s||!St.call(r,m))||c.push(m);return c}function Al(r,s){return r<s}function M0(r,s){var c=-1,m=En(r)?X(r.length):[];return ri(r,function(T,L,$){m[++c]=s(T,L,$)}),m}function U0(r){var s=Nl(r);return s.length==1&&s[0][2]?Sg(s[0][0],s[0][1]):function(c){return c===r||vl(c,r,s)}}function V0(r,s){return $l(r)&&vg(s)?Sg(Sr(r),s):function(c){var m=Jl(c,r);return m===n&&m===s?Yl(c,r):Ao(s,m,A|E)}}function eu(r,s,c,m,T){r!==s&&yl(s,function(L,$){if(T||(T=new ar),jt(L))TE(r,s,$,c,eu,m,T);else{var U=m?m(Ul(r,$),L,$+"",r,s,T):n;U===n&&(U=L),pl(r,$,U)}},xn)}function TE(r,s,c,m,T,L,$){var U=Ul(r,c),z=Ul(s,c),ie=$.get(z);if(ie){pl(r,c,ie);return}var se=L?L(U,z,c+"",r,s,$):n,ae=se===n;if(ae){var ve=He(z),Ie=!ve&&ai(z),je=!ve&&!Ie&&Cs(z);se=z,ve||Ie||je?He(U)?se=U:zt(U)?se=An(U):Ie?(ae=!1,se=eg(z,!0)):je?(ae=!1,se=tg(z,!0)):se=[]:ko(z)||Di(z)?(se=U,Di(U)?se=Xg(U):(!jt(U)||Nr(U))&&(se=bg(z))):ae=!1}ae&&($.set(z,se),T(se,z,m,L,$),$.delete(z)),pl(r,c,se)}function q0(r,s){var c=r.length;if(c)return s+=s<0?c:0,Pr(s,c)?r[s]:n}function W0(r,s,c){s.length?s=Rt(s,function(L){return He(L)?function($){return Oi($,L.length===1?L[0]:L)}:L}):s=[Cn];var m=-1;s=Rt(s,Fn(Pe()));var T=M0(r,function(L,$,U){var z=Rt(s,function(ie){return ie(L)});return{criteria:z,index:++m,value:L}});return tA(T,function(L,$){return UE(L,$,c)})}function IE(r,s){return H0(r,s,function(c,m){return Yl(r,m)})}function H0(r,s,c){for(var m=-1,T=s.length,L={};++m<T;){var $=s[m],U=Oi(r,$);c(U,$)&&Eo(L,si($,r),U)}return L}function OE(r){return function(s){return Oi(s,r)}}function El(r,s,c,m){var T=m?eA:ps,L=-1,$=s.length,U=r;for(r===s&&(s=An(s)),c&&(U=Rt(r,Fn(c)));++L<$;)for(var z=0,ie=s[L],se=c?c(ie):ie;(z=T(U,se,z,m))>-1;)U!==r&&Wa.call(U,z,1),Wa.call(r,z,1);return r}function K0(r,s){for(var c=r?s.length:0,m=c-1;c--;){var T=s[c];if(c==m||T!==L){var L=T;Pr(T)?Wa.call(r,T,1):kl(r,T)}}return r}function xl(r,s){return r+za(_0()*(s-r+1))}function FE(r,s,c,m){for(var T=-1,L=en(Ka((s-r)/(c||1)),0),$=X(L);L--;)$[m?L:++T]=r,r+=c;return $}function Cl(r,s){var c="";if(!r||s<1||s>xe)return c;do s%2&&(c+=r),s=za(s/2),s&&(r+=r);while(s);return c}function Ze(r,s){return Vl(Ag(r,s,Cn),r+"")}function BE(r){return I0(_s(r))}function DE(r,s){var c=_s(r);return lu(c,Ii(s,0,c.length))}function Eo(r,s,c,m){if(!jt(r))return r;s=si(s,r);for(var T=-1,L=s.length,$=L-1,U=r;U!=null&&++T<L;){var z=Sr(s[T]),ie=c;if(z==="__proto__"||z==="constructor"||z==="prototype")return r;if(T!=$){var se=U[z];ie=m?m(se,z,U):n,ie===n&&(ie=jt(se)?se:Pr(s[T+1])?[]:{})}bo(U,z,ie),U=U[z]}return r}var z0=Ga?function(r,s){return Ga.set(r,s),r}:Cn,RE=Ha?function(r,s){return Ha(r,"toString",{configurable:!0,enumerable:!1,value:Ql(s),writable:!0})}:Cn;function LE(r){return lu(_s(r))}function Gn(r,s,c){var m=-1,T=r.length;s<0&&(s=-s>T?0:T+s),c=c>T?T:c,c<0&&(c+=T),T=s>c?0:c-s>>>0,s>>>=0;for(var L=X(T);++m<T;)L[m]=r[m+s];return L}function PE(r,s){var c;return ri(r,function(m,T,L){return c=s(m,T,L),!c}),!!c}function tu(r,s,c){var m=0,T=r==null?m:r.length;if(typeof s=="number"&&s===s&&T<=Y){for(;m<T;){var L=m+T>>>1,$=r[L];$!==null&&!Dn($)&&(c?$<=s:$<s)?m=L+1:T=L}return T}return _l(r,s,Cn,c)}function _l(r,s,c,m){var T=0,L=r==null?0:r.length;if(L===0)return 0;s=c(s);for(var $=s!==s,U=s===null,z=Dn(s),ie=s===n;T<L;){var se=za((T+L)/2),ae=c(r[se]),ve=ae!==n,Ie=ae===null,je=ae===ae,Qe=Dn(ae);if($)var $e=m||je;else ie?$e=je&&(m||ve):U?$e=je&&ve&&(m||!Ie):z?$e=je&&ve&&!Ie&&(m||!Qe):Ie||Qe?$e=!1:$e=m?ae<=s:ae<s;$e?T=se+1:L=se}return ln(L,We)}function G0(r,s){for(var c=-1,m=r.length,T=0,L=[];++c<m;){var $=r[c],U=s?s($):$;if(!c||!ur(U,z)){var z=U;L[T++]=$===0?0:$}}return L}function J0(r){return typeof r=="number"?r:Dn(r)?Ae:+r}function Bn(r){if(typeof r=="string")return r;if(He(r))return Rt(r,Bn)+"";if(Dn(r))return k0?k0.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ii(r,s,c){var m=-1,T=Ra,L=r.length,$=!0,U=[],z=U;if(c)$=!1,T=tl;else if(L>=o){var ie=s?null:zE(r);if(ie)return Pa(ie);$=!1,T=ho,z=new Ti}else z=s?[]:U;e:for(;++m<L;){var se=r[m],ae=s?s(se):se;if(se=c||se!==0?se:0,$&&ae===ae){for(var ve=z.length;ve--;)if(z[ve]===ae)continue e;s&&z.push(ae),U.push(se)}else T(z,ae,c)||(z!==U&&z.push(ae),U.push(se))}return U}function kl(r,s){return s=si(s,r),r=Eg(r,s),r==null||delete r[Sr(Jn(s))]}function Y0(r,s,c,m){return Eo(r,s,c(Oi(r,s)),m)}function nu(r,s,c,m){for(var T=r.length,L=m?T:-1;(m?L--:++L<T)&&s(r[L],L,r););return c?Gn(r,m?0:L,m?L+1:T):Gn(r,m?L+1:0,m?T:L)}function X0(r,s){var c=r;return c instanceof ot&&(c=c.value()),nl(s,function(m,T){return T.func.apply(T.thisArg,ei([m],T.args))},c)}function Tl(r,s,c){var m=r.length;if(m<2)return m?ii(r[0]):[];for(var T=-1,L=X(m);++T<m;)for(var $=r[T],U=-1;++U<m;)U!=T&&(L[T]=vo(L[T]||$,r[U],s,c));return ii(un(L,1),s,c)}function Q0(r,s,c){for(var m=-1,T=r.length,L=s.length,$={};++m<T;){var U=m<L?s[m]:n;c($,r[m],U)}return $}function Il(r){return zt(r)?r:[]}function Ol(r){return typeof r=="function"?r:Cn}function si(r,s){return He(r)?r:$l(r,s)?[r]:kg(bt(r))}var NE=Ze;function oi(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var Z0=xA||function(r){return an.clearTimeout(r)};function eg(r,s){if(s)return r.slice();var c=r.length,m=S0?S0(c):new r.constructor(c);return r.copy(m),m}function Fl(r){var s=new r.constructor(r.byteLength);return new Va(s).set(new Va(r)),s}function jE(r,s){var c=s?Fl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function $E(r){var s=new r.constructor(r.source,ft.exec(r));return s.lastIndex=r.lastIndex,s}function ME(r){return wo?Ct(wo.call(r)):{}}function tg(r,s){var c=s?Fl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function ng(r,s){if(r!==s){var c=r!==n,m=r===null,T=r===r,L=Dn(r),$=s!==n,U=s===null,z=s===s,ie=Dn(s);if(!U&&!ie&&!L&&r>s||L&&$&&z&&!U&&!ie||m&&$&&z||!c&&z||!T)return 1;if(!m&&!L&&!ie&&r<s||ie&&c&&T&&!m&&!L||U&&c&&T||!$&&T||!z)return-1}return 0}function UE(r,s,c){for(var m=-1,T=r.criteria,L=s.criteria,$=T.length,U=c.length;++m<$;){var z=ng(T[m],L[m]);if(z){if(m>=U)return z;var ie=c[m];return z*(ie=="desc"?-1:1)}}return r.index-s.index}function rg(r,s,c,m){for(var T=-1,L=r.length,$=c.length,U=-1,z=s.length,ie=en(L-$,0),se=X(z+ie),ae=!m;++U<z;)se[U]=s[U];for(;++T<$;)(ae||T<L)&&(se[c[T]]=r[T]);for(;ie--;)se[U++]=r[T++];return se}function ig(r,s,c,m){for(var T=-1,L=r.length,$=-1,U=c.length,z=-1,ie=s.length,se=en(L-U,0),ae=X(se+ie),ve=!m;++T<se;)ae[T]=r[T];for(var Ie=T;++z<ie;)ae[Ie+z]=s[z];for(;++$<U;)(ve||T<L)&&(ae[Ie+c[$]]=r[T++]);return ae}function An(r,s){var c=-1,m=r.length;for(s||(s=X(m));++c<m;)s[c]=r[c];return s}function vr(r,s,c,m){var T=!c;c||(c={});for(var L=-1,$=s.length;++L<$;){var U=s[L],z=m?m(c[U],r[U],U,c,r):n;z===n&&(z=r[U]),T?Dr(c,U,z):bo(c,U,z)}return c}function VE(r,s){return vr(r,jl(r),s)}function qE(r,s){return vr(r,mg(r),s)}function ru(r,s){return function(c,m){var T=He(c)?GS:fE,L=s?s():{};return T(c,r,Pe(m,2),L)}}function As(r){return Ze(function(s,c){var m=-1,T=c.length,L=T>1?c[T-1]:n,$=T>2?c[2]:n;for(L=r.length>3&&typeof L=="function"?(T--,L):n,$&&yn(c[0],c[1],$)&&(L=T<3?n:L,T=1),s=Ct(s);++m<T;){var U=c[m];U&&r(s,U,m,L)}return s})}function sg(r,s){return function(c,m){if(c==null)return c;if(!En(c))return r(c,m);for(var T=c.length,L=s?T:-1,$=Ct(c);(s?L--:++L<T)&&m($[L],L,$)!==!1;);return c}}function og(r){return function(s,c,m){for(var T=-1,L=Ct(s),$=m(s),U=$.length;U--;){var z=$[r?U:++T];if(c(L[z],z,L)===!1)break}return s}}function WE(r,s,c){var m=s&b,T=xo(r);function L(){var $=this&&this!==an&&this instanceof L?T:r;return $.apply(m?c:this,arguments)}return L}function ag(r){return function(s){s=bt(s);var c=gs(s)?or(s):n,m=c?c[0]:s.charAt(0),T=c?oi(c,1).join(""):s.slice(1);return m[r]()+T}}function Es(r){return function(s){return nl(s1(i1(s).replace(RS,"")),r,"")}}function xo(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=Ss(r.prototype),m=r.apply(c,s);return jt(m)?m:c}}function HE(r,s,c){var m=xo(r);function T(){for(var L=arguments.length,$=X(L),U=L,z=xs(T);U--;)$[U]=arguments[U];var ie=L<3&&$[0]!==z&&$[L-1]!==z?[]:ti($,z);if(L-=ie.length,L<c)return hg(r,s,iu,T.placeholder,n,$,ie,n,n,c-L);var se=this&&this!==an&&this instanceof T?m:r;return On(se,this,$)}return T}function ug(r){return function(s,c,m){var T=Ct(s);if(!En(s)){var L=Pe(c,3);s=rn(s),c=function(U){return L(T[U],U,T)}}var $=r(s,c,m);return $>-1?T[L?s[$]:$]:n}}function cg(r){return Lr(function(s){var c=s.length,m=c,T=Kn.prototype.thru;for(r&&s.reverse();m--;){var L=s[m];if(typeof L!="function")throw new Hn(u);if(T&&!$&&uu(L)=="wrapper")var $=new Kn([],!0)}for(m=$?m:c;++m<c;){L=s[m];var U=uu(L),z=U=="wrapper"?Pl(L):n;z&&Ml(z[0])&&z[1]==(O|_|F|W)&&!z[4].length&&z[9]==1?$=$[uu(z[0])].apply($,z[3]):$=L.length==1&&Ml(L)?$[U]():$.thru(L)}return function(){var ie=arguments,se=ie[0];if($&&ie.length==1&&He(se))return $.plant(se).value();for(var ae=0,ve=c?s[ae].apply(this,ie):se;++ae<c;)ve=s[ae].call(this,ve);return ve}})}function iu(r,s,c,m,T,L,$,U,z,ie){var se=s&O,ae=s&b,ve=s&B,Ie=s&(_|k),je=s&J,Qe=ve?n:xo(r);function $e(){for(var it=arguments.length,at=X(it),Rn=it;Rn--;)at[Rn]=arguments[Rn];if(Ie)var mn=xs($e),Ln=rA(at,mn);if(m&&(at=rg(at,m,T,Ie)),L&&(at=ig(at,L,$,Ie)),it-=Ln,Ie&&it<ie){var Gt=ti(at,mn);return hg(r,s,iu,$e.placeholder,c,at,Gt,U,z,ie-it)}var cr=ae?c:this,$r=ve?cr[r]:r;return it=at.length,U?at=fx(at,U):je&&it>1&&at.reverse(),se&&z<it&&(at.length=z),this&&this!==an&&this instanceof $e&&($r=Qe||xo($r)),$r.apply(cr,at)}return $e}function lg(r,s){return function(c,m){return bE(c,r,s(m),{})}}function su(r,s){return function(c,m){var T;if(c===n&&m===n)return s;if(c!==n&&(T=c),m!==n){if(T===n)return m;typeof c=="string"||typeof m=="string"?(c=Bn(c),m=Bn(m)):(c=J0(c),m=J0(m)),T=r(c,m)}return T}}function Bl(r){return Lr(function(s){return s=Rt(s,Fn(Pe())),Ze(function(c){var m=this;return r(s,function(T){return On(T,m,c)})})})}function ou(r,s){s=s===n?" ":Bn(s);var c=s.length;if(c<2)return c?Cl(s,r):s;var m=Cl(s,Ka(r/ys(s)));return gs(s)?oi(or(m),0,r).join(""):m.slice(0,r)}function KE(r,s,c,m){var T=s&b,L=xo(r);function $(){for(var U=-1,z=arguments.length,ie=-1,se=m.length,ae=X(se+z),ve=this&&this!==an&&this instanceof $?L:r;++ie<se;)ae[ie]=m[ie];for(;z--;)ae[ie++]=arguments[++U];return On(ve,T?c:this,ae)}return $}function fg(r){return function(s,c,m){return m&&typeof m!="number"&&yn(s,c,m)&&(c=m=n),s=jr(s),c===n?(c=s,s=0):c=jr(c),m=m===n?s<c?1:-1:jr(m),FE(s,c,m,r)}}function au(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Yn(s),c=Yn(c)),r(s,c)}}function hg(r,s,c,m,T,L,$,U,z,ie){var se=s&_,ae=se?$:n,ve=se?n:$,Ie=se?L:n,je=se?n:L;s|=se?F:R,s&=~(se?R:F),s&N||(s&=-4);var Qe=[r,s,T,Ie,ae,je,ve,U,z,ie],$e=c.apply(n,Qe);return Ml(r)&&xg($e,Qe),$e.placeholder=m,Cg($e,r,s)}function Dl(r){var s=Zt[r];return function(c,m){if(c=Yn(c),m=m==null?0:ln(ze(m),292),m&&C0(c)){var T=(bt(c)+"e").split("e"),L=s(T[0]+"e"+(+T[1]+m));return T=(bt(L)+"e").split("e"),+(T[0]+"e"+(+T[1]-m))}return s(c)}}var zE=bs&&1/Pa(new bs([,-0]))[1]==ke?function(r){return new bs(r)}:tf;function dg(r){return function(s){var c=fn(s);return c==Lt?cl(s):c==Be?lA(s):nA(s,r(s))}}function Rr(r,s,c,m,T,L,$,U){var z=s&B;if(!z&&typeof r!="function")throw new Hn(u);var ie=m?m.length:0;if(ie||(s&=-97,m=T=n),$=$===n?$:en(ze($),0),U=U===n?U:ze(U),ie-=T?T.length:0,s&R){var se=m,ae=T;m=T=n}var ve=z?n:Pl(r),Ie=[r,s,c,m,T,se,ae,L,$,U];if(ve&&ux(Ie,ve),r=Ie[0],s=Ie[1],c=Ie[2],m=Ie[3],T=Ie[4],U=Ie[9]=Ie[9]===n?z?0:r.length:en(Ie[9]-ie,0),!U&&s&(_|k)&&(s&=-25),!s||s==b)var je=WE(r,s,c);else s==_||s==k?je=HE(r,s,U):(s==F||s==(b|F))&&!T.length?je=KE(r,s,c,m):je=iu.apply(n,Ie);var Qe=ve?z0:xg;return Cg(Qe(je,Ie),r,s)}function pg(r,s,c,m){return r===n||ur(r,ws[c])&&!St.call(m,c)?s:r}function gg(r,s,c,m,T,L){return jt(r)&&jt(s)&&(L.set(s,r),eu(r,s,n,gg,L),L.delete(s)),r}function GE(r){return ko(r)?n:r}function yg(r,s,c,m,T,L){var $=c&A,U=r.length,z=s.length;if(U!=z&&!($&&z>U))return!1;var ie=L.get(r),se=L.get(s);if(ie&&se)return ie==s&&se==r;var ae=-1,ve=!0,Ie=c&E?new Ti:n;for(L.set(r,s),L.set(s,r);++ae<U;){var je=r[ae],Qe=s[ae];if(m)var $e=$?m(Qe,je,ae,s,r,L):m(je,Qe,ae,r,s,L);if($e!==n){if($e)continue;ve=!1;break}if(Ie){if(!rl(s,function(it,at){if(!ho(Ie,at)&&(je===it||T(je,it,c,m,L)))return Ie.push(at)})){ve=!1;break}}else if(!(je===Qe||T(je,Qe,c,m,L))){ve=!1;break}}return L.delete(r),L.delete(s),ve}function JE(r,s,c,m,T,L,$){switch(c){case _e:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case we:return!(r.byteLength!=s.byteLength||!L(new Va(r),new Va(s)));case Te:case Re:case Pt:return ur(+r,+s);case Ne:return r.name==s.name&&r.message==s.message;case Ce:case pe:return r==s+"";case Lt:var U=cl;case Be:var z=m&A;if(U||(U=Pa),r.size!=s.size&&!z)return!1;var ie=$.get(r);if(ie)return ie==s;m|=E,$.set(r,s);var se=yg(U(r),U(s),m,T,L,$);return $.delete(r),se;case At:if(wo)return wo.call(r)==wo.call(s)}return!1}function YE(r,s,c,m,T,L){var $=c&A,U=Rl(r),z=U.length,ie=Rl(s),se=ie.length;if(z!=se&&!$)return!1;for(var ae=z;ae--;){var ve=U[ae];if(!($?ve in s:St.call(s,ve)))return!1}var Ie=L.get(r),je=L.get(s);if(Ie&&je)return Ie==s&&je==r;var Qe=!0;L.set(r,s),L.set(s,r);for(var $e=$;++ae<z;){ve=U[ae];var it=r[ve],at=s[ve];if(m)var Rn=$?m(at,it,ve,s,r,L):m(it,at,ve,r,s,L);if(!(Rn===n?it===at||T(it,at,c,m,L):Rn)){Qe=!1;break}$e||($e=ve=="constructor")}if(Qe&&!$e){var mn=r.constructor,Ln=s.constructor;mn!=Ln&&"constructor"in r&&"constructor"in s&&!(typeof mn=="function"&&mn instanceof mn&&typeof Ln=="function"&&Ln instanceof Ln)&&(Qe=!1)}return L.delete(r),L.delete(s),Qe}function Lr(r){return Vl(Ag(r,n,Fg),r+"")}function Rl(r){return P0(r,rn,jl)}function Ll(r){return P0(r,xn,mg)}var Pl=Ga?function(r){return Ga.get(r)}:tf;function uu(r){for(var s=r.name+"",c=vs[s],m=St.call(vs,s)?c.length:0;m--;){var T=c[m],L=T.func;if(L==null||L==r)return T.name}return s}function xs(r){var s=St.call(D,"placeholder")?D:r;return s.placeholder}function Pe(){var r=D.iteratee||Zl;return r=r===Zl?$0:r,arguments.length?r(arguments[0],arguments[1]):r}function cu(r,s){var c=r.__data__;return ix(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Nl(r){for(var s=rn(r),c=s.length;c--;){var m=s[c],T=r[m];s[c]=[m,T,vg(T)]}return s}function Fi(r,s){var c=aA(r,s);return j0(c)?c:n}function XE(r){var s=St.call(r,_i),c=r[_i];try{r[_i]=n;var m=!0}catch{}var T=Ma.call(r);return m&&(s?r[_i]=c:delete r[_i]),T}var jl=fl?function(r){return r==null?[]:(r=Ct(r),Zr(fl(r),function(s){return E0.call(r,s)}))}:nf,mg=fl?function(r){for(var s=[];r;)ei(s,jl(r)),r=qa(r);return s}:nf,fn=gn;(hl&&fn(new hl(new ArrayBuffer(1)))!=_e||go&&fn(new go)!=Lt||dl&&fn(dl.resolve())!=kn||bs&&fn(new bs)!=Be||yo&&fn(new yo)!=vt)&&(fn=function(r){var s=gn(r),c=s==wt?r.constructor:n,m=c?Bi(c):"";if(m)switch(m){case DA:return _e;case RA:return Lt;case LA:return kn;case PA:return Be;case NA:return vt}return s});function QE(r,s,c){for(var m=-1,T=c.length;++m<T;){var L=c[m],$=L.size;switch(L.type){case"drop":r+=$;break;case"dropRight":s-=$;break;case"take":s=ln(s,r+$);break;case"takeRight":r=en(r,s-$);break}}return{start:r,end:s}}function ZE(r){var s=r.match(pn);return s?s[1].split(M):[]}function wg(r,s,c){s=si(s,r);for(var m=-1,T=s.length,L=!1;++m<T;){var $=Sr(s[m]);if(!(L=r!=null&&c(r,$)))break;r=r[$]}return L||++m!=T?L:(T=r==null?0:r.length,!!T&&yu(T)&&Pr($,T)&&(He(r)||Di(r)))}function ex(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&St.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function bg(r){return typeof r.constructor=="function"&&!Co(r)?Ss(qa(r)):{}}function tx(r,s,c){var m=r.constructor;switch(s){case we:return Fl(r);case Te:case Re:return new m(+r);case _e:return jE(r,c);case ut:case I:case y:case w:case P:case V:case G:case ee:case Me:return tg(r,c);case Lt:return new m;case Pt:case pe:return new m(r);case Ce:return $E(r);case Be:return new m;case At:return ME(r)}}function nx(r,s){var c=s.length;if(!c)return r;var m=c-1;return s[m]=(c>1?"& ":"")+s[m],s=s.join(c>2?", ":" "),r.replace(uo,`{
|
|
144
|
+
/* [wrapped with `+s+`] */
|
|
145
|
+
`)}function rx(r){return He(r)||Di(r)||!!(x0&&r&&r[x0])}function Pr(r,s){var c=typeof r;return s=s??xe,!!s&&(c=="number"||c!="symbol"&&Dt.test(r))&&r>-1&&r%1==0&&r<s}function yn(r,s,c){if(!jt(c))return!1;var m=typeof s;return(m=="number"?En(c)&&Pr(s,c.length):m=="string"&&s in c)?ur(c[s],r):!1}function $l(r,s){if(He(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Dn(r)?!0:so.test(r)||!Ei.test(r)||s!=null&&r in Ct(s)}function ix(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Ml(r){var s=uu(r),c=D[s];if(typeof c!="function"||!(s in ot.prototype))return!1;if(r===c)return!0;var m=Pl(c);return!!m&&r===m[0]}function sx(r){return!!v0&&v0 in r}var ox=ja?Nr:rf;function Co(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ws;return r===c}function vg(r){return r===r&&!jt(r)}function Sg(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in Ct(c))}}function ax(r){var s=pu(r,function(m){return c.size===d&&c.clear(),m}),c=s.cache;return s}function ux(r,s){var c=r[1],m=s[1],T=c|m,L=T<(b|B|O),$=m==O&&c==_||m==O&&c==W&&r[7].length<=s[8]||m==(O|W)&&s[7].length<=s[8]&&c==_;if(!(L||$))return r;m&b&&(r[2]=s[2],T|=c&b?0:N);var U=s[3];if(U){var z=r[3];r[3]=z?rg(z,U,s[4]):U,r[4]=z?ti(r[3],g):s[4]}return U=s[5],U&&(z=r[5],r[5]=z?ig(z,U,s[6]):U,r[6]=z?ti(r[5],g):s[6]),U=s[7],U&&(r[7]=U),m&O&&(r[8]=r[8]==null?s[8]:ln(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=T,r}function cx(r){var s=[];if(r!=null)for(var c in Ct(r))s.push(c);return s}function lx(r){return Ma.call(r)}function Ag(r,s,c){return s=en(s===n?r.length-1:s,0),function(){for(var m=arguments,T=-1,L=en(m.length-s,0),$=X(L);++T<L;)$[T]=m[s+T];T=-1;for(var U=X(s+1);++T<s;)U[T]=m[T];return U[s]=c($),On(r,this,U)}}function Eg(r,s){return s.length<2?r:Oi(r,Gn(s,0,-1))}function fx(r,s){for(var c=r.length,m=ln(s.length,c),T=An(r);m--;){var L=s[m];r[m]=Pr(L,c)?T[L]:n}return r}function Ul(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var xg=_g(z0),_o=_A||function(r,s){return an.setTimeout(r,s)},Vl=_g(RE);function Cg(r,s,c){var m=s+"";return Vl(r,nx(m,hx(ZE(m),c)))}function _g(r){var s=0,c=0;return function(){var m=OA(),T=ye-(m-c);if(c=m,T>0){if(++s>=ge)return arguments[0]}else s=0;return r.apply(n,arguments)}}function lu(r,s){var c=-1,m=r.length,T=m-1;for(s=s===n?m:s;++c<s;){var L=xl(c,T),$=r[L];r[L]=r[c],r[c]=$}return r.length=s,r}var kg=ax(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(oo,function(c,m,T,L){s.push(T?L.replace(Fe,"$1"):m||c)}),s});function Sr(r){if(typeof r=="string"||Dn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Bi(r){if(r!=null){try{return $a.call(r)}catch{}try{return r+""}catch{}}return""}function hx(r,s){return Wn(Q,function(c){var m="_."+c[0];s&c[1]&&!Ra(r,m)&&r.push(m)}),r.sort()}function Tg(r){if(r instanceof ot)return r.clone();var s=new Kn(r.__wrapped__,r.__chain__);return s.__actions__=An(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function dx(r,s,c){(c?yn(r,s,c):s===n)?s=1:s=en(ze(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var T=0,L=0,$=X(Ka(m/s));T<m;)$[L++]=Gn(r,T,T+=s);return $}function px(r){for(var s=-1,c=r==null?0:r.length,m=0,T=[];++s<c;){var L=r[s];L&&(T[m++]=L)}return T}function gx(){var r=arguments.length;if(!r)return[];for(var s=X(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return ei(He(c)?An(c):[c],un(s,1))}var yx=Ze(function(r,s){return zt(r)?vo(r,un(s,1,zt,!0)):[]}),mx=Ze(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?vo(r,un(s,1,zt,!0),Pe(c,2)):[]}),wx=Ze(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?vo(r,un(s,1,zt,!0),n,c):[]});function bx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),Gn(r,s<0?0:s,m)):[]}function vx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),s=m-s,Gn(r,0,s<0?0:s)):[]}function Sx(r,s){return r&&r.length?nu(r,Pe(s,3),!0,!0):[]}function Ax(r,s){return r&&r.length?nu(r,Pe(s,3),!0):[]}function Ex(r,s,c,m){var T=r==null?0:r.length;return T?(c&&typeof c!="number"&&yn(r,s,c)&&(c=0,m=T),gE(r,s,c,m)):[]}function Ig(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=c==null?0:ze(c);return T<0&&(T=en(m+T,0)),La(r,Pe(s,3),T)}function Og(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=m-1;return c!==n&&(T=ze(c),T=c<0?en(m+T,0):ln(T,m-1)),La(r,Pe(s,3),T,!0)}function Fg(r){var s=r==null?0:r.length;return s?un(r,1):[]}function xx(r){var s=r==null?0:r.length;return s?un(r,ke):[]}function Cx(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:ze(s),un(r,s)):[]}function _x(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var T=r[s];m[T[0]]=T[1]}return m}function Bg(r){return r&&r.length?r[0]:n}function kx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=c==null?0:ze(c);return T<0&&(T=en(m+T,0)),ps(r,s,T)}function Tx(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var Ix=Ze(function(r){var s=Rt(r,Il);return s.length&&s[0]===r[0]?bl(s):[]}),Ox=Ze(function(r){var s=Jn(r),c=Rt(r,Il);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?bl(c,Pe(s,2)):[]}),Fx=Ze(function(r){var s=Jn(r),c=Rt(r,Il);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?bl(c,n,s):[]});function Bx(r,s){return r==null?"":TA.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function Dx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=m;return c!==n&&(T=ze(c),T=T<0?en(m+T,0):ln(T,m-1)),s===s?hA(r,s,T):La(r,h0,T,!0)}function Rx(r,s){return r&&r.length?q0(r,ze(s)):n}var Lx=Ze(Dg);function Dg(r,s){return r&&r.length&&s&&s.length?El(r,s):r}function Px(r,s,c){return r&&r.length&&s&&s.length?El(r,s,Pe(c,2)):r}function Nx(r,s,c){return r&&r.length&&s&&s.length?El(r,s,n,c):r}var jx=Lr(function(r,s){var c=r==null?0:r.length,m=gl(r,s);return K0(r,Rt(s,function(T){return Pr(T,c)?+T:T}).sort(ng)),m});function $x(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,T=[],L=r.length;for(s=Pe(s,3);++m<L;){var $=r[m];s($,m,r)&&(c.push($),T.push(m))}return K0(r,T),c}function ql(r){return r==null?r:BA.call(r)}function Mx(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&yn(r,s,c)?(s=0,c=m):(s=s==null?0:ze(s),c=c===n?m:ze(c)),Gn(r,s,c)):[]}function Ux(r,s){return tu(r,s)}function Vx(r,s,c){return _l(r,s,Pe(c,2))}function qx(r,s){var c=r==null?0:r.length;if(c){var m=tu(r,s);if(m<c&&ur(r[m],s))return m}return-1}function Wx(r,s){return tu(r,s,!0)}function Hx(r,s,c){return _l(r,s,Pe(c,2),!0)}function Kx(r,s){var c=r==null?0:r.length;if(c){var m=tu(r,s,!0)-1;if(ur(r[m],s))return m}return-1}function zx(r){return r&&r.length?G0(r):[]}function Gx(r,s){return r&&r.length?G0(r,Pe(s,2)):[]}function Jx(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function Yx(r,s,c){return r&&r.length?(s=c||s===n?1:ze(s),Gn(r,0,s<0?0:s)):[]}function Xx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),s=m-s,Gn(r,s<0?0:s,m)):[]}function Qx(r,s){return r&&r.length?nu(r,Pe(s,3),!1,!0):[]}function Zx(r,s){return r&&r.length?nu(r,Pe(s,3)):[]}var eC=Ze(function(r){return ii(un(r,1,zt,!0))}),tC=Ze(function(r){var s=Jn(r);return zt(s)&&(s=n),ii(un(r,1,zt,!0),Pe(s,2))}),nC=Ze(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,ii(un(r,1,zt,!0),n,s)});function rC(r){return r&&r.length?ii(r):[]}function iC(r,s){return r&&r.length?ii(r,Pe(s,2)):[]}function sC(r,s){return s=typeof s=="function"?s:n,r&&r.length?ii(r,n,s):[]}function Wl(r){if(!(r&&r.length))return[];var s=0;return r=Zr(r,function(c){if(zt(c))return s=en(c.length,s),!0}),al(s,function(c){return Rt(r,il(c))})}function Rg(r,s){if(!(r&&r.length))return[];var c=Wl(r);return s==null?c:Rt(c,function(m){return On(s,n,m)})}var oC=Ze(function(r,s){return zt(r)?vo(r,s):[]}),aC=Ze(function(r){return Tl(Zr(r,zt))}),uC=Ze(function(r){var s=Jn(r);return zt(s)&&(s=n),Tl(Zr(r,zt),Pe(s,2))}),cC=Ze(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,Tl(Zr(r,zt),n,s)}),lC=Ze(Wl);function fC(r,s){return Q0(r||[],s||[],bo)}function hC(r,s){return Q0(r||[],s||[],Eo)}var dC=Ze(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,Rg(r,c)});function Lg(r){var s=D(r);return s.__chain__=!0,s}function pC(r,s){return s(r),r}function fu(r,s){return s(r)}var gC=Lr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,T=function(L){return gl(L,r)};return s>1||this.__actions__.length||!(m instanceof ot)||!Pr(c)?this.thru(T):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:fu,args:[T],thisArg:n}),new Kn(m,this.__chain__).thru(function(L){return s&&!L.length&&L.push(n),L}))});function yC(){return Lg(this)}function mC(){return new Kn(this.value(),this.__chain__)}function wC(){this.__values__===n&&(this.__values__=Jg(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function bC(){return this}function vC(r){for(var s,c=this;c instanceof Ya;){var m=Tg(c);m.__index__=0,m.__values__=n,s?T.__wrapped__=m:s=m;var T=m;c=c.__wrapped__}return T.__wrapped__=r,s}function SC(){var r=this.__wrapped__;if(r instanceof ot){var s=r;return this.__actions__.length&&(s=new ot(this)),s=s.reverse(),s.__actions__.push({func:fu,args:[ql],thisArg:n}),new Kn(s,this.__chain__)}return this.thru(ql)}function AC(){return X0(this.__wrapped__,this.__actions__)}var EC=ru(function(r,s,c){St.call(r,c)?++r[c]:Dr(r,c,1)});function xC(r,s,c){var m=He(r)?l0:pE;return c&&yn(r,s,c)&&(s=n),m(r,Pe(s,3))}function CC(r,s){var c=He(r)?Zr:R0;return c(r,Pe(s,3))}var _C=ug(Ig),kC=ug(Og);function TC(r,s){return un(hu(r,s),1)}function IC(r,s){return un(hu(r,s),ke)}function OC(r,s,c){return c=c===n?1:ze(c),un(hu(r,s),c)}function Pg(r,s){var c=He(r)?Wn:ri;return c(r,Pe(s,3))}function Ng(r,s){var c=He(r)?JS:D0;return c(r,Pe(s,3))}var FC=ru(function(r,s,c){St.call(r,c)?r[c].push(s):Dr(r,c,[s])});function BC(r,s,c,m){r=En(r)?r:_s(r),c=c&&!m?ze(c):0;var T=r.length;return c<0&&(c=en(T+c,0)),mu(r)?c<=T&&r.indexOf(s,c)>-1:!!T&&ps(r,s,c)>-1}var DC=Ze(function(r,s,c){var m=-1,T=typeof s=="function",L=En(r)?X(r.length):[];return ri(r,function($){L[++m]=T?On(s,$,c):So($,s,c)}),L}),RC=ru(function(r,s,c){Dr(r,c,s)});function hu(r,s){var c=He(r)?Rt:M0;return c(r,Pe(s,3))}function LC(r,s,c,m){return r==null?[]:(He(s)||(s=s==null?[]:[s]),c=m?n:c,He(c)||(c=c==null?[]:[c]),W0(r,s,c))}var PC=ru(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function NC(r,s,c){var m=He(r)?nl:p0,T=arguments.length<3;return m(r,Pe(s,4),c,T,ri)}function jC(r,s,c){var m=He(r)?YS:p0,T=arguments.length<3;return m(r,Pe(s,4),c,T,D0)}function $C(r,s){var c=He(r)?Zr:R0;return c(r,gu(Pe(s,3)))}function MC(r){var s=He(r)?I0:BE;return s(r)}function UC(r,s,c){(c?yn(r,s,c):s===n)?s=1:s=ze(s);var m=He(r)?cE:DE;return m(r,s)}function VC(r){var s=He(r)?lE:LE;return s(r)}function qC(r){if(r==null)return 0;if(En(r))return mu(r)?ys(r):r.length;var s=fn(r);return s==Lt||s==Be?r.size:Sl(r).length}function WC(r,s,c){var m=He(r)?rl:PE;return c&&yn(r,s,c)&&(s=n),m(r,Pe(s,3))}var HC=Ze(function(r,s){if(r==null)return[];var c=s.length;return c>1&&yn(r,s[0],s[1])?s=[]:c>2&&yn(s[0],s[1],s[2])&&(s=[s[0]]),W0(r,un(s,1),[])}),du=CA||function(){return an.Date.now()};function KC(r,s){if(typeof s!="function")throw new Hn(u);return r=ze(r),function(){if(--r<1)return s.apply(this,arguments)}}function jg(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Rr(r,O,n,n,n,n,s)}function $g(r,s){var c;if(typeof s!="function")throw new Hn(u);return r=ze(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var Hl=Ze(function(r,s,c){var m=b;if(c.length){var T=ti(c,xs(Hl));m|=F}return Rr(r,m,s,c,T)}),Mg=Ze(function(r,s,c){var m=b|B;if(c.length){var T=ti(c,xs(Mg));m|=F}return Rr(s,m,r,c,T)});function Ug(r,s,c){s=c?n:s;var m=Rr(r,_,n,n,n,n,n,s);return m.placeholder=Ug.placeholder,m}function Vg(r,s,c){s=c?n:s;var m=Rr(r,k,n,n,n,n,n,s);return m.placeholder=Vg.placeholder,m}function qg(r,s,c){var m,T,L,$,U,z,ie=0,se=!1,ae=!1,ve=!0;if(typeof r!="function")throw new Hn(u);s=Yn(s)||0,jt(c)&&(se=!!c.leading,ae="maxWait"in c,L=ae?en(Yn(c.maxWait)||0,s):L,ve="trailing"in c?!!c.trailing:ve);function Ie(Gt){var cr=m,$r=T;return m=T=n,ie=Gt,$=r.apply($r,cr),$}function je(Gt){return ie=Gt,U=_o(it,s),se?Ie(Gt):$}function Qe(Gt){var cr=Gt-z,$r=Gt-ie,u1=s-cr;return ae?ln(u1,L-$r):u1}function $e(Gt){var cr=Gt-z,$r=Gt-ie;return z===n||cr>=s||cr<0||ae&&$r>=L}function it(){var Gt=du();if($e(Gt))return at(Gt);U=_o(it,Qe(Gt))}function at(Gt){return U=n,ve&&m?Ie(Gt):(m=T=n,$)}function Rn(){U!==n&&Z0(U),ie=0,m=z=T=U=n}function mn(){return U===n?$:at(du())}function Ln(){var Gt=du(),cr=$e(Gt);if(m=arguments,T=this,z=Gt,cr){if(U===n)return je(z);if(ae)return Z0(U),U=_o(it,s),Ie(z)}return U===n&&(U=_o(it,s)),$}return Ln.cancel=Rn,Ln.flush=mn,Ln}var zC=Ze(function(r,s){return B0(r,1,s)}),GC=Ze(function(r,s,c){return B0(r,Yn(s)||0,c)});function JC(r){return Rr(r,J)}function pu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Hn(u);var c=function(){var m=arguments,T=s?s.apply(this,m):m[0],L=c.cache;if(L.has(T))return L.get(T);var $=r.apply(this,m);return c.cache=L.set(T,$)||L,$};return c.cache=new(pu.Cache||Br),c}pu.Cache=Br;function gu(r){if(typeof r!="function")throw new Hn(u);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function YC(r){return $g(2,r)}var XC=NE(function(r,s){s=s.length==1&&He(s[0])?Rt(s[0],Fn(Pe())):Rt(un(s,1),Fn(Pe()));var c=s.length;return Ze(function(m){for(var T=-1,L=ln(m.length,c);++T<L;)m[T]=s[T].call(this,m[T]);return On(r,this,m)})}),Kl=Ze(function(r,s){var c=ti(s,xs(Kl));return Rr(r,F,n,s,c)}),Wg=Ze(function(r,s){var c=ti(s,xs(Wg));return Rr(r,R,n,s,c)}),QC=Lr(function(r,s){return Rr(r,W,n,n,n,s)});function ZC(r,s){if(typeof r!="function")throw new Hn(u);return s=s===n?s:ze(s),Ze(r,s)}function e3(r,s){if(typeof r!="function")throw new Hn(u);return s=s==null?0:en(ze(s),0),Ze(function(c){var m=c[s],T=oi(c,0,s);return m&&ei(T,m),On(r,this,T)})}function t3(r,s,c){var m=!0,T=!0;if(typeof r!="function")throw new Hn(u);return jt(c)&&(m="leading"in c?!!c.leading:m,T="trailing"in c?!!c.trailing:T),qg(r,s,{leading:m,maxWait:s,trailing:T})}function n3(r){return jg(r,1)}function r3(r,s){return Kl(Ol(s),r)}function i3(){if(!arguments.length)return[];var r=arguments[0];return He(r)?r:[r]}function s3(r){return zn(r,C)}function o3(r,s){return s=typeof s=="function"?s:n,zn(r,C,s)}function a3(r){return zn(r,p|C)}function u3(r,s){return s=typeof s=="function"?s:n,zn(r,p|C,s)}function c3(r,s){return s==null||F0(r,s,rn(s))}function ur(r,s){return r===s||r!==r&&s!==s}var l3=au(wl),f3=au(function(r,s){return r>=s}),Di=N0(function(){return arguments}())?N0:function(r){return $t(r)&&St.call(r,"callee")&&!E0.call(r,"callee")},He=X.isArray,h3=i0?Fn(i0):vE;function En(r){return r!=null&&yu(r.length)&&!Nr(r)}function zt(r){return $t(r)&&En(r)}function d3(r){return r===!0||r===!1||$t(r)&&gn(r)==Te}var ai=kA||rf,p3=s0?Fn(s0):SE;function g3(r){return $t(r)&&r.nodeType===1&&!ko(r)}function y3(r){if(r==null)return!0;if(En(r)&&(He(r)||typeof r=="string"||typeof r.splice=="function"||ai(r)||Cs(r)||Di(r)))return!r.length;var s=fn(r);if(s==Lt||s==Be)return!r.size;if(Co(r))return!Sl(r).length;for(var c in r)if(St.call(r,c))return!1;return!0}function m3(r,s){return Ao(r,s)}function w3(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?Ao(r,s,n,c):!!m}function zl(r){if(!$t(r))return!1;var s=gn(r);return s==Ne||s==Oe||typeof r.message=="string"&&typeof r.name=="string"&&!ko(r)}function b3(r){return typeof r=="number"&&C0(r)}function Nr(r){if(!jt(r))return!1;var s=gn(r);return s==kt||s==nn||s==Ye||s==Sn}function Hg(r){return typeof r=="number"&&r==ze(r)}function yu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=xe}function jt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function $t(r){return r!=null&&typeof r=="object"}var Kg=o0?Fn(o0):EE;function v3(r,s){return r===s||vl(r,s,Nl(s))}function S3(r,s,c){return c=typeof c=="function"?c:n,vl(r,s,Nl(s),c)}function A3(r){return zg(r)&&r!=+r}function E3(r){if(ox(r))throw new Ve(a);return j0(r)}function x3(r){return r===null}function C3(r){return r==null}function zg(r){return typeof r=="number"||$t(r)&&gn(r)==Pt}function ko(r){if(!$t(r)||gn(r)!=wt)return!1;var s=qa(r);if(s===null)return!0;var c=St.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&$a.call(c)==SA}var Gl=a0?Fn(a0):xE;function _3(r){return Hg(r)&&r>=-9007199254740991&&r<=xe}var Gg=u0?Fn(u0):CE;function mu(r){return typeof r=="string"||!He(r)&&$t(r)&&gn(r)==pe}function Dn(r){return typeof r=="symbol"||$t(r)&&gn(r)==At}var Cs=c0?Fn(c0):_E;function k3(r){return r===n}function T3(r){return $t(r)&&fn(r)==vt}function I3(r){return $t(r)&&gn(r)==rt}var O3=au(Al),F3=au(function(r,s){return r<=s});function Jg(r){if(!r)return[];if(En(r))return mu(r)?or(r):An(r);if(po&&r[po])return cA(r[po]());var s=fn(r),c=s==Lt?cl:s==Be?Pa:_s;return c(r)}function jr(r){if(!r)return r===0?r:0;if(r=Yn(r),r===ke||r===-1/0){var s=r<0?-1:1;return s*tt}return r===r?r:0}function ze(r){var s=jr(r),c=s%1;return s===s?c?s-c:s:0}function Yg(r){return r?Ii(ze(r),0,Se):0}function Yn(r){if(typeof r=="number")return r;if(Dn(r))return Ae;if(jt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=jt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=g0(r);var c=Xe.test(r);return c||Ft.test(r)?KS(r.slice(2),c?2:8):nt.test(r)?Ae:+r}function Xg(r){return vr(r,xn(r))}function B3(r){return r?Ii(ze(r),-9007199254740991,xe):r===0?r:0}function bt(r){return r==null?"":Bn(r)}var D3=As(function(r,s){if(Co(s)||En(s)){vr(s,rn(s),r);return}for(var c in s)St.call(s,c)&&bo(r,c,s[c])}),Qg=As(function(r,s){vr(s,xn(s),r)}),wu=As(function(r,s,c,m){vr(s,xn(s),r,m)}),R3=As(function(r,s,c,m){vr(s,rn(s),r,m)}),L3=Lr(gl);function P3(r,s){var c=Ss(r);return s==null?c:O0(c,s)}var N3=Ze(function(r,s){r=Ct(r);var c=-1,m=s.length,T=m>2?s[2]:n;for(T&&yn(s[0],s[1],T)&&(m=1);++c<m;)for(var L=s[c],$=xn(L),U=-1,z=$.length;++U<z;){var ie=$[U],se=r[ie];(se===n||ur(se,ws[ie])&&!St.call(r,ie))&&(r[ie]=L[ie])}return r}),j3=Ze(function(r){return r.push(n,gg),On(Zg,n,r)});function $3(r,s){return f0(r,Pe(s,3),br)}function M3(r,s){return f0(r,Pe(s,3),ml)}function U3(r,s){return r==null?r:yl(r,Pe(s,3),xn)}function V3(r,s){return r==null?r:L0(r,Pe(s,3),xn)}function q3(r,s){return r&&br(r,Pe(s,3))}function W3(r,s){return r&&ml(r,Pe(s,3))}function H3(r){return r==null?[]:Za(r,rn(r))}function K3(r){return r==null?[]:Za(r,xn(r))}function Jl(r,s,c){var m=r==null?n:Oi(r,s);return m===n?c:m}function z3(r,s){return r!=null&&wg(r,s,yE)}function Yl(r,s){return r!=null&&wg(r,s,mE)}var G3=lg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Ma.call(s)),r[s]=c},Ql(Cn)),J3=lg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Ma.call(s)),St.call(r,s)?r[s].push(c):r[s]=[c]},Pe),Y3=Ze(So);function rn(r){return En(r)?T0(r):Sl(r)}function xn(r){return En(r)?T0(r,!0):kE(r)}function X3(r,s){var c={};return s=Pe(s,3),br(r,function(m,T,L){Dr(c,s(m,T,L),m)}),c}function Q3(r,s){var c={};return s=Pe(s,3),br(r,function(m,T,L){Dr(c,T,s(m,T,L))}),c}var Z3=As(function(r,s,c){eu(r,s,c)}),Zg=As(function(r,s,c,m){eu(r,s,c,m)}),e_=Lr(function(r,s){var c={};if(r==null)return c;var m=!1;s=Rt(s,function(L){return L=si(L,r),m||(m=L.length>1),L}),vr(r,Ll(r),c),m&&(c=zn(c,p|v|C,GE));for(var T=s.length;T--;)kl(c,s[T]);return c});function t_(r,s){return e1(r,gu(Pe(s)))}var n_=Lr(function(r,s){return r==null?{}:IE(r,s)});function e1(r,s){if(r==null)return{};var c=Rt(Ll(r),function(m){return[m]});return s=Pe(s),H0(r,c,function(m,T){return s(m,T[0])})}function r_(r,s,c){s=si(s,r);var m=-1,T=s.length;for(T||(T=1,r=n);++m<T;){var L=r==null?n:r[Sr(s[m])];L===n&&(m=T,L=c),r=Nr(L)?L.call(r):L}return r}function i_(r,s,c){return r==null?r:Eo(r,s,c)}function s_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Eo(r,s,c,m)}var t1=dg(rn),n1=dg(xn);function o_(r,s,c){var m=He(r),T=m||ai(r)||Cs(r);if(s=Pe(s,4),c==null){var L=r&&r.constructor;T?c=m?new L:[]:jt(r)?c=Nr(L)?Ss(qa(r)):{}:c={}}return(T?Wn:br)(r,function($,U,z){return s(c,$,U,z)}),c}function a_(r,s){return r==null?!0:kl(r,s)}function u_(r,s,c){return r==null?r:Y0(r,s,Ol(c))}function c_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Y0(r,s,Ol(c),m)}function _s(r){return r==null?[]:ul(r,rn(r))}function l_(r){return r==null?[]:ul(r,xn(r))}function f_(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Yn(c),c=c===c?c:0),s!==n&&(s=Yn(s),s=s===s?s:0),Ii(Yn(r),s,c)}function h_(r,s,c){return s=jr(s),c===n?(c=s,s=0):c=jr(c),r=Yn(r),wE(r,s,c)}function d_(r,s,c){if(c&&typeof c!="boolean"&&yn(r,s,c)&&(s=c=n),c===n&&(typeof s=="boolean"?(c=s,s=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&s===n?(r=0,s=1):(r=jr(r),s===n?(s=r,r=0):s=jr(s)),r>s){var m=r;r=s,s=m}if(c||r%1||s%1){var T=_0();return ln(r+T*(s-r+HS("1e-"+((T+"").length-1))),s)}return xl(r,s)}var p_=Es(function(r,s,c){return s=s.toLowerCase(),r+(c?r1(s):s)});function r1(r){return Xl(bt(r).toLowerCase())}function i1(r){return r=bt(r),r&&r.replace(cn,iA).replace(LS,"")}function g_(r,s,c){r=bt(r),s=Bn(s);var m=r.length;c=c===n?m:Ii(ze(c),0,m);var T=c;return c-=s.length,c>=0&&r.slice(c,T)==s}function y_(r){return r=bt(r),r&&us.test(r)?r.replace(Jr,sA):r}function m_(r){return r=bt(r),r&&ir.test(r)?r.replace(Or,"\\$&"):r}var w_=Es(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),b_=Es(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),v_=ag("toLowerCase");function S_(r,s,c){r=bt(r),s=ze(s);var m=s?ys(r):0;if(!s||m>=s)return r;var T=(s-m)/2;return ou(za(T),c)+r+ou(Ka(T),c)}function A_(r,s,c){r=bt(r),s=ze(s);var m=s?ys(r):0;return s&&m<s?r+ou(s-m,c):r}function E_(r,s,c){r=bt(r),s=ze(s);var m=s?ys(r):0;return s&&m<s?ou(s-m,c)+r:r}function x_(r,s,c){return c||s==null?s=0:s&&(s=+s),FA(bt(r).replace(Xr,""),s||0)}function C_(r,s,c){return(c?yn(r,s,c):s===n)?s=1:s=ze(s),Cl(bt(r),s)}function __(){var r=arguments,s=bt(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var k_=Es(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function T_(r,s,c){return c&&typeof c!="number"&&yn(r,s,c)&&(s=c=n),c=c===n?Se:c>>>0,c?(r=bt(r),r&&(typeof s=="string"||s!=null&&!Gl(s))&&(s=Bn(s),!s&&gs(r))?oi(or(r),0,c):r.split(s,c)):[]}var I_=Es(function(r,s,c){return r+(c?" ":"")+Xl(s)});function O_(r,s,c){return r=bt(r),c=c==null?0:Ii(ze(c),0,r.length),s=Bn(s),r.slice(c,c+s.length)==s}function F_(r,s,c){var m=D.templateSettings;c&&yn(r,s,c)&&(s=n),r=bt(r),s=wu({},s,m,pg);var T=wu({},s.imports,m.imports,pg),L=rn(T),$=ul(T,L),U,z,ie=0,se=s.interpolate||Tn,ae="__p += '",ve=ll((s.escape||Tn).source+"|"+se.source+"|"+(se===Yr?lt:Tn).source+"|"+(s.evaluate||Tn).source+"|$","g"),Ie="//# sourceURL="+(St.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++MS+"]")+`
|
|
146
|
+
`;r.replace(ve,function($e,it,at,Rn,mn,Ln){return at||(at=Rn),ae+=r.slice(ie,Ln).replace(sr,oA),it&&(U=!0,ae+=`' +
|
|
147
|
+
__e(`+it+`) +
|
|
148
|
+
'`),mn&&(z=!0,ae+=`';
|
|
149
|
+
`+mn+`;
|
|
150
|
+
__p += '`),at&&(ae+=`' +
|
|
151
|
+
((__t = (`+at+`)) == null ? '' : __t) +
|
|
152
|
+
'`),ie=Ln+$e.length,$e}),ae+=`';
|
|
153
|
+
`;var je=St.call(s,"variable")&&s.variable;if(!je)ae=`with (obj) {
|
|
154
|
+
`+ae+`
|
|
155
|
+
}
|
|
156
|
+
`;else if(be.test(je))throw new Ve(l);ae=(z?ae.replace(pt,""):ae).replace(ct,"$1").replace(dt,"$1;"),ae="function("+(je||"obj")+`) {
|
|
157
|
+
`+(je?"":`obj || (obj = {});
|
|
158
|
+
`)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
|
|
159
|
+
function print() { __p += __j.call(arguments, '') }
|
|
160
|
+
`:`;
|
|
161
|
+
`)+ae+`return __p
|
|
162
|
+
}`;var Qe=o1(function(){return mt(L,Ie+"return "+ae).apply(n,$)});if(Qe.source=ae,zl(Qe))throw Qe;return Qe}function B_(r){return bt(r).toLowerCase()}function D_(r){return bt(r).toUpperCase()}function R_(r,s,c){if(r=bt(r),r&&(c||s===n))return g0(r);if(!r||!(s=Bn(s)))return r;var m=or(r),T=or(s),L=y0(m,T),$=m0(m,T)+1;return oi(m,L,$).join("")}function L_(r,s,c){if(r=bt(r),r&&(c||s===n))return r.slice(0,b0(r)+1);if(!r||!(s=Bn(s)))return r;var m=or(r),T=m0(m,or(s))+1;return oi(m,0,T).join("")}function P_(r,s,c){if(r=bt(r),r&&(c||s===n))return r.replace(Xr,"");if(!r||!(s=Bn(s)))return r;var m=or(r),T=y0(m,or(s));return oi(m,T).join("")}function N_(r,s){var c=le,m=ce;if(jt(s)){var T="separator"in s?s.separator:T;c="length"in s?ze(s.length):c,m="omission"in s?Bn(s.omission):m}r=bt(r);var L=r.length;if(gs(r)){var $=or(r);L=$.length}if(c>=L)return r;var U=c-ys(m);if(U<1)return m;var z=$?oi($,0,U).join(""):r.slice(0,U);if(T===n)return z+m;if($&&(U+=z.length-U),Gl(T)){if(r.slice(U).search(T)){var ie,se=z;for(T.global||(T=ll(T.source,bt(ft.exec(T))+"g")),T.lastIndex=0;ie=T.exec(se);)var ae=ie.index;z=z.slice(0,ae===n?U:ae)}}else if(r.indexOf(Bn(T),U)!=U){var ve=z.lastIndexOf(T);ve>-1&&(z=z.slice(0,ve))}return z+m}function j_(r){return r=bt(r),r&&Ai.test(r)?r.replace(st,dA):r}var $_=Es(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Xl=ag("toUpperCase");function s1(r,s,c){return r=bt(r),s=c?n:s,s===n?uA(r)?yA(r):ZS(r):r.match(s)||[]}var o1=Ze(function(r,s){try{return On(r,n,s)}catch(c){return zl(c)?c:new Ve(c)}}),M_=Lr(function(r,s){return Wn(s,function(c){c=Sr(c),Dr(r,c,Hl(r[c],r))}),r});function U_(r){var s=r==null?0:r.length,c=Pe();return r=s?Rt(r,function(m){if(typeof m[1]!="function")throw new Hn(u);return[c(m[0]),m[1]]}):[],Ze(function(m){for(var T=-1;++T<s;){var L=r[T];if(On(L[0],this,m))return On(L[1],this,m)}})}function V_(r){return dE(zn(r,p))}function Ql(r){return function(){return r}}function q_(r,s){return r==null||r!==r?s:r}var W_=cg(),H_=cg(!0);function Cn(r){return r}function Zl(r){return $0(typeof r=="function"?r:zn(r,p))}function K_(r){return U0(zn(r,p))}function z_(r,s){return V0(r,zn(s,p))}var G_=Ze(function(r,s){return function(c){return So(c,r,s)}}),J_=Ze(function(r,s){return function(c){return So(r,c,s)}});function ef(r,s,c){var m=rn(s),T=Za(s,m);c==null&&!(jt(s)&&(T.length||!m.length))&&(c=s,s=r,r=this,T=Za(s,rn(s)));var L=!(jt(c)&&"chain"in c)||!!c.chain,$=Nr(r);return Wn(T,function(U){var z=s[U];r[U]=z,$&&(r.prototype[U]=function(){var ie=this.__chain__;if(L||ie){var se=r(this.__wrapped__),ae=se.__actions__=An(this.__actions__);return ae.push({func:z,args:arguments,thisArg:r}),se.__chain__=ie,se}return z.apply(r,ei([this.value()],arguments))})}),r}function Y_(){return an._===this&&(an._=AA),this}function tf(){}function X_(r){return r=ze(r),Ze(function(s){return q0(s,r)})}var Q_=Bl(Rt),Z_=Bl(l0),e8=Bl(rl);function a1(r){return $l(r)?il(Sr(r)):OE(r)}function t8(r){return function(s){return r==null?n:Oi(r,s)}}var n8=fg(),r8=fg(!0);function nf(){return[]}function rf(){return!1}function i8(){return{}}function s8(){return""}function o8(){return!0}function a8(r,s){if(r=ze(r),r<1||r>xe)return[];var c=Se,m=ln(r,Se);s=Pe(s),r-=Se;for(var T=al(m,s);++c<r;)s(c);return T}function u8(r){return He(r)?Rt(r,Sr):Dn(r)?[r]:An(kg(bt(r)))}function c8(r){var s=++vA;return bt(r)+s}var l8=su(function(r,s){return r+s},0),f8=Dl("ceil"),h8=su(function(r,s){return r/s},1),d8=Dl("floor");function p8(r){return r&&r.length?Qa(r,Cn,wl):n}function g8(r,s){return r&&r.length?Qa(r,Pe(s,2),wl):n}function y8(r){return d0(r,Cn)}function m8(r,s){return d0(r,Pe(s,2))}function w8(r){return r&&r.length?Qa(r,Cn,Al):n}function b8(r,s){return r&&r.length?Qa(r,Pe(s,2),Al):n}var v8=su(function(r,s){return r*s},1),S8=Dl("round"),A8=su(function(r,s){return r-s},0);function E8(r){return r&&r.length?ol(r,Cn):0}function x8(r,s){return r&&r.length?ol(r,Pe(s,2)):0}return D.after=KC,D.ary=jg,D.assign=D3,D.assignIn=Qg,D.assignInWith=wu,D.assignWith=R3,D.at=L3,D.before=$g,D.bind=Hl,D.bindAll=M_,D.bindKey=Mg,D.castArray=i3,D.chain=Lg,D.chunk=dx,D.compact=px,D.concat=gx,D.cond=U_,D.conforms=V_,D.constant=Ql,D.countBy=EC,D.create=P3,D.curry=Ug,D.curryRight=Vg,D.debounce=qg,D.defaults=N3,D.defaultsDeep=j3,D.defer=zC,D.delay=GC,D.difference=yx,D.differenceBy=mx,D.differenceWith=wx,D.drop=bx,D.dropRight=vx,D.dropRightWhile=Sx,D.dropWhile=Ax,D.fill=Ex,D.filter=CC,D.flatMap=TC,D.flatMapDeep=IC,D.flatMapDepth=OC,D.flatten=Fg,D.flattenDeep=xx,D.flattenDepth=Cx,D.flip=JC,D.flow=W_,D.flowRight=H_,D.fromPairs=_x,D.functions=H3,D.functionsIn=K3,D.groupBy=FC,D.initial=Tx,D.intersection=Ix,D.intersectionBy=Ox,D.intersectionWith=Fx,D.invert=G3,D.invertBy=J3,D.invokeMap=DC,D.iteratee=Zl,D.keyBy=RC,D.keys=rn,D.keysIn=xn,D.map=hu,D.mapKeys=X3,D.mapValues=Q3,D.matches=K_,D.matchesProperty=z_,D.memoize=pu,D.merge=Z3,D.mergeWith=Zg,D.method=G_,D.methodOf=J_,D.mixin=ef,D.negate=gu,D.nthArg=X_,D.omit=e_,D.omitBy=t_,D.once=YC,D.orderBy=LC,D.over=Q_,D.overArgs=XC,D.overEvery=Z_,D.overSome=e8,D.partial=Kl,D.partialRight=Wg,D.partition=PC,D.pick=n_,D.pickBy=e1,D.property=a1,D.propertyOf=t8,D.pull=Lx,D.pullAll=Dg,D.pullAllBy=Px,D.pullAllWith=Nx,D.pullAt=jx,D.range=n8,D.rangeRight=r8,D.rearg=QC,D.reject=$C,D.remove=$x,D.rest=ZC,D.reverse=ql,D.sampleSize=UC,D.set=i_,D.setWith=s_,D.shuffle=VC,D.slice=Mx,D.sortBy=HC,D.sortedUniq=zx,D.sortedUniqBy=Gx,D.split=T_,D.spread=e3,D.tail=Jx,D.take=Yx,D.takeRight=Xx,D.takeRightWhile=Qx,D.takeWhile=Zx,D.tap=pC,D.throttle=t3,D.thru=fu,D.toArray=Jg,D.toPairs=t1,D.toPairsIn=n1,D.toPath=u8,D.toPlainObject=Xg,D.transform=o_,D.unary=n3,D.union=eC,D.unionBy=tC,D.unionWith=nC,D.uniq=rC,D.uniqBy=iC,D.uniqWith=sC,D.unset=a_,D.unzip=Wl,D.unzipWith=Rg,D.update=u_,D.updateWith=c_,D.values=_s,D.valuesIn=l_,D.without=oC,D.words=s1,D.wrap=r3,D.xor=aC,D.xorBy=uC,D.xorWith=cC,D.zip=lC,D.zipObject=fC,D.zipObjectDeep=hC,D.zipWith=dC,D.entries=t1,D.entriesIn=n1,D.extend=Qg,D.extendWith=wu,ef(D,D),D.add=l8,D.attempt=o1,D.camelCase=p_,D.capitalize=r1,D.ceil=f8,D.clamp=f_,D.clone=s3,D.cloneDeep=a3,D.cloneDeepWith=u3,D.cloneWith=o3,D.conformsTo=c3,D.deburr=i1,D.defaultTo=q_,D.divide=h8,D.endsWith=g_,D.eq=ur,D.escape=y_,D.escapeRegExp=m_,D.every=xC,D.find=_C,D.findIndex=Ig,D.findKey=$3,D.findLast=kC,D.findLastIndex=Og,D.findLastKey=M3,D.floor=d8,D.forEach=Pg,D.forEachRight=Ng,D.forIn=U3,D.forInRight=V3,D.forOwn=q3,D.forOwnRight=W3,D.get=Jl,D.gt=l3,D.gte=f3,D.has=z3,D.hasIn=Yl,D.head=Bg,D.identity=Cn,D.includes=BC,D.indexOf=kx,D.inRange=h_,D.invoke=Y3,D.isArguments=Di,D.isArray=He,D.isArrayBuffer=h3,D.isArrayLike=En,D.isArrayLikeObject=zt,D.isBoolean=d3,D.isBuffer=ai,D.isDate=p3,D.isElement=g3,D.isEmpty=y3,D.isEqual=m3,D.isEqualWith=w3,D.isError=zl,D.isFinite=b3,D.isFunction=Nr,D.isInteger=Hg,D.isLength=yu,D.isMap=Kg,D.isMatch=v3,D.isMatchWith=S3,D.isNaN=A3,D.isNative=E3,D.isNil=C3,D.isNull=x3,D.isNumber=zg,D.isObject=jt,D.isObjectLike=$t,D.isPlainObject=ko,D.isRegExp=Gl,D.isSafeInteger=_3,D.isSet=Gg,D.isString=mu,D.isSymbol=Dn,D.isTypedArray=Cs,D.isUndefined=k3,D.isWeakMap=T3,D.isWeakSet=I3,D.join=Bx,D.kebabCase=w_,D.last=Jn,D.lastIndexOf=Dx,D.lowerCase=b_,D.lowerFirst=v_,D.lt=O3,D.lte=F3,D.max=p8,D.maxBy=g8,D.mean=y8,D.meanBy=m8,D.min=w8,D.minBy=b8,D.stubArray=nf,D.stubFalse=rf,D.stubObject=i8,D.stubString=s8,D.stubTrue=o8,D.multiply=v8,D.nth=Rx,D.noConflict=Y_,D.noop=tf,D.now=du,D.pad=S_,D.padEnd=A_,D.padStart=E_,D.parseInt=x_,D.random=d_,D.reduce=NC,D.reduceRight=jC,D.repeat=C_,D.replace=__,D.result=r_,D.round=S8,D.runInContext=K,D.sample=MC,D.size=qC,D.snakeCase=k_,D.some=WC,D.sortedIndex=Ux,D.sortedIndexBy=Vx,D.sortedIndexOf=qx,D.sortedLastIndex=Wx,D.sortedLastIndexBy=Hx,D.sortedLastIndexOf=Kx,D.startCase=I_,D.startsWith=O_,D.subtract=A8,D.sum=E8,D.sumBy=x8,D.template=F_,D.times=a8,D.toFinite=jr,D.toInteger=ze,D.toLength=Yg,D.toLower=B_,D.toNumber=Yn,D.toSafeInteger=B3,D.toString=bt,D.toUpper=D_,D.trim=R_,D.trimEnd=L_,D.trimStart=P_,D.truncate=N_,D.unescape=j_,D.uniqueId=c8,D.upperCase=$_,D.upperFirst=Xl,D.each=Pg,D.eachRight=Ng,D.first=Bg,ef(D,function(){var r={};return br(D,function(s,c){St.call(D.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),D.VERSION=i,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){D[r].placeholder=D}),Wn(["drop","take"],function(r,s){ot.prototype[r]=function(c){c=c===n?1:en(ze(c),0);var m=this.__filtered__&&!s?new ot(this):this.clone();return m.__filtered__?m.__takeCount__=ln(c,m.__takeCount__):m.__views__.push({size:ln(c,Se),type:r+(m.__dir__<0?"Right":"")}),m},ot.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Wn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==he||c==Le;ot.prototype[r]=function(T){var L=this.clone();return L.__iteratees__.push({iteratee:Pe(T,3),type:c}),L.__filtered__=L.__filtered__||m,L}}),Wn(["head","last"],function(r,s){var c="take"+(s?"Right":"");ot.prototype[r]=function(){return this[c](1).value()[0]}}),Wn(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");ot.prototype[r]=function(){return this.__filtered__?new ot(this):this[c](1)}}),ot.prototype.compact=function(){return this.filter(Cn)},ot.prototype.find=function(r){return this.filter(r).head()},ot.prototype.findLast=function(r){return this.reverse().find(r)},ot.prototype.invokeMap=Ze(function(r,s){return typeof r=="function"?new ot(this):this.map(function(c){return So(c,r,s)})}),ot.prototype.reject=function(r){return this.filter(gu(Pe(r)))},ot.prototype.slice=function(r,s){r=ze(r);var c=this;return c.__filtered__&&(r>0||s<0)?new ot(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=ze(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},ot.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ot.prototype.toArray=function(){return this.take(Se)},br(ot.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),T=D[m?"take"+(s=="last"?"Right":""):s],L=m||/^find/.test(s);T&&(D.prototype[s]=function(){var $=this.__wrapped__,U=m?[1]:arguments,z=$ instanceof ot,ie=U[0],se=z||He($),ae=function(it){var at=T.apply(D,ei([it],U));return m&&ve?at[0]:at};se&&c&&typeof ie=="function"&&ie.length!=1&&(z=se=!1);var ve=this.__chain__,Ie=!!this.__actions__.length,je=L&&!ve,Qe=z&&!Ie;if(!L&&se){$=Qe?$:new ot(this);var $e=r.apply($,U);return $e.__actions__.push({func:fu,args:[ae],thisArg:n}),new Kn($e,ve)}return je&&Qe?r.apply(this,U):($e=this.thru(ae),je?m?$e.value()[0]:$e.value():$e)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(r){var s=Na[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);D.prototype[r]=function(){var T=arguments;if(m&&!this.__chain__){var L=this.value();return s.apply(He(L)?L:[],T)}return this[c](function($){return s.apply(He($)?$:[],T)})}}),br(ot.prototype,function(r,s){var c=D[s];if(c){var m=c.name+"";St.call(vs,m)||(vs[m]=[]),vs[m].push({name:s,func:c})}}),vs[iu(n,B).name]=[{name:"wrapper",func:n}],ot.prototype.clone=jA,ot.prototype.reverse=$A,ot.prototype.value=MA,D.prototype.at=gC,D.prototype.chain=yC,D.prototype.commit=mC,D.prototype.next=wC,D.prototype.plant=vC,D.prototype.reverse=SC,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=AC,D.prototype.first=D.prototype.head,po&&(D.prototype[po]=bC),D},ms=mA();Ci?((Ci.exports=ms)._=ms,Zc._=ms):an._=ms}).call(Xn)}(ea,ea.exports);var Wr=ea.exports;const Ut=Su(Wr),e2={ShortenedText:Je.div`
|
|
163
|
+
max-width: ${({$maxWidth:e})=>e}px;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
text-overflow: ellipsis;
|
|
167
|
+
`},zi=({text:e,trimLength:t,maxWidth:n=200})=>{if(t){const i=e.substring(0,t);return S.jsx(q.Tooltip,{title:e,placement:"top",children:i})}return S.jsx(q.Tooltip,{title:e,children:S.jsx(e2.ShortenedText,{$maxWidth:n,children:e})})},t2=({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i,close:o})=>{const a=(l,f)=>{f({closeDropdown:!1})},u=l=>{l()};return S.jsxs("div",{style:{padding:8},onKeyDown:l=>l.stopPropagation(),children:[S.jsx(q.Input,{placeholder:"search",value:t[0],onChange:l=>{e(l.target.value?[l.target.value]:[]),a(l.target.value?[l.target.value]:[],n)},onPressEnter:()=>a(t,n),style:{marginBottom:8,display:"block"}}),S.jsxs(q.Space,{children:[S.jsx(q.Button,{onClick:()=>{i&&(i(),u(i)),a([],n)},size:"small",style:{width:90},children:"Reset"}),S.jsx(q.Button,{type:"link",size:"small",onClick:()=>{o()},children:"close"})]})]})},n2=Je.div`
|
|
168
|
+
td {
|
|
169
|
+
cursor: ${({$isCursorPointer:e})=>e&&"pointer"};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&& .ant-table-container {
|
|
173
|
+
border: ${({$borderless:e,$isDark:t})=>e?"0":t?" 1px solid rgba(255, 255, 255, 0.10)":" 1px solid #EAEAEC"};
|
|
174
|
+
border-bottom: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&& .ant-table-cell {
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
line-height: 22px;
|
|
180
|
+
padding: 10px 16px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&& thead .ant-table-cell {
|
|
184
|
+
padding: 10px 16px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&& .controls {
|
|
188
|
+
padding: 9px 12px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&& .ant-table-pagination {
|
|
192
|
+
border: ${({$borderless:e,$isDark:t})=>e?"0":t?"1px solid rgba(255, 255, 255, 0.10)":"1px solid #EAEAEC"};
|
|
193
|
+
border-radius: 0 0 8px 8px;
|
|
194
|
+
border-top: 0;
|
|
195
|
+
margin: 0;
|
|
196
|
+
padding: 8px 16px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&& .ant-pagination-total-text {
|
|
200
|
+
position: ${({$isTotalLeft:e})=>e?"initial":"absolute"};
|
|
201
|
+
right: 16px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&& .ant-table-expanded-row-fixed {
|
|
205
|
+
width: auto !important;
|
|
206
|
+
}
|
|
207
|
+
`,r2=Je.div`
|
|
208
|
+
&& .ant-table-row .hideable {
|
|
209
|
+
display: none;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&& .ant-table-row:hover .hideable {
|
|
213
|
+
display: grid;
|
|
214
|
+
grid-template-columns: repeat(2, 1fr);
|
|
215
|
+
column-gap: 4px;
|
|
216
|
+
}
|
|
217
|
+
`,Vh={TableContainer:n2,HideableControls:r2},qh=Je(q.Button)`
|
|
218
|
+
height: 24px !important;
|
|
219
|
+
`,i2=Je.div`
|
|
220
|
+
text-align: ${({$align:e})=>e};
|
|
221
|
+
`,Wh=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>S.jsx(q.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?S.jsxs(q.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),S.jsx(q.Tooltip,{title:S.jsx(S.Fragment,{children:n(e.slice(t))}),children:S.jsxs(q.Tag,{children:["+",e.length-t]},"more")})]}):S.jsx(q.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},Hh=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),Kh=({columns:e,additionalPrinterColumnsUndefinedValues:t,additionalPrinterColumnsTrimLengths:n,additionalPrinterColumnsColWidths:i})=>{if(e)return e.map(o=>{const a=t?.find(({key:f})=>f===o.key)?.value,u=n?.find(({key:f})=>f===o.key)?.value,l=i?.find(({key:f})=>f===o.key)?.value;return{...o,render:f=>typeof f=="object"&&!Array.isArray(f)?Hh(f)?S.jsx(Wh,{tags:Object.entries(f).map(([d,g])=>`${d}: ${String(g)}`),trimLength:u}):S.jsx(zi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(d=>d&&!Array.isArray(d))?S.jsx(Wh,{tags:f.map(d=>d.toLocaleString()),trimLength:u}):S.jsx(zi,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?S.jsx(wn.CheckOutlined,{style:{color:"green"}}):S.jsx(wn.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?S.jsx(zi,{trimLength:u,text:String(f)}):typeof f=="string"?S.jsx(zi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?S.jsx(zi,{trimLength:u,text:a}):S.jsx(zi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:v})=>S.jsx(t2,{setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:v}),filterIcon:f=>S.jsx(wn.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?Wr.get(d,g):d[g];if(typeof p=="object"&&!Array.isArray(p))return JSON.stringify(p).toLowerCase().includes(f.toLowerCase());if(Array.isArray(p))return p.some(v=>v.toLowerCase().includes(f.toLowerCase()));if(typeof p=="boolean"){const v=f.toLowerCase()==="true";return p===v}return typeof p=="number"?String(p).includes(f.toLowerCase()):typeof p=="string"?p.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?Wr.get(f,g):f[g],v=Array.isArray(g)?Wr.get(d,g):d[g];return typeof p=="object"&&!Array.isArray(p)&&p!==null?typeof v=="object"&&!Array.isArray(v)&&v!==null?Object.keys(p).length-Object.keys(v).length:Object.keys(p).length?-1:1:Array.isArray(p)?Array.isArray(v)?p.length-v.length:p.length?-1:1:typeof p=="boolean"?p===v?0:p?-1:1:typeof p=="number"?typeof v=="number"?p-v:p?-1:1:typeof p=="string"?typeof v=="string"?p.localeCompare(v):p?-1:1:0}}})},zh=({enrichedColumns:e,navigate:t,baseprefix:n,editIcon:i,deleteIcon:o})=>{if(e)return[...e,{title:"",dataIndex:"internalDataForControls",key:"controls",className:"controls",width:120,render:a=>S.jsxs(i2,{$align:"right",className:"hideable",children:[S.jsx(qh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),t(`${n}/${a.cluster}${a.namespace?`/${a.namespace}`:""}${a.syntheticProject?`/${a.syntheticProject}`:""}/${a.pathPrefix}/${a.apiGroupAndVersion}/${a.typeName}/${a.entryName}?backlink=${a.backlink}`)},icon:i||S.jsx(wn.EditOutlined,{size:14}),disabled:!a.permissions.canUpdate}),S.jsx(qh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),a.onDeleteHandle(a.entryName,`${a.deletePathPrefix}/${a.apiGroupAndVersion}${a.namespace?`/namespaces/${a.namespace}`:""}/${a.typeName}/${a.entryName}`)},icon:o||S.jsx(wn.DeleteOutlined,{size:14}),disabled:!a.permissions.canDelete})]})}]},Gh=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:d,withoutControls:g=!1,tableProps:p})=>{const v=lr.useNavigate();if(!i)return null;const C=Kh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!C)return null;const A=g?C:zh({enrichedColumns:C,navigate:v,baseprefix:t,editIcon:p?.editIcon,deleteIcon:p?.deleteIcon});if(!A)return null;const E=b=>`Total: ${b}`;return S.jsx(Vh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:p?.borderless,$isTotalLeft:p?.isTotalLeft,children:S.jsx(Vh.HideableControls,{children:S.jsx(q.Table,{dataSource:n,columns:A,pagination:{position:p?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:E},scroll:{x:"max-content"},rowSelection:d?{type:"checkbox",selectedRowKeys:d.selectedRowKeys,onChange:(b,B)=>{d.onChange(b,B.map(({internalDataForControls:N})=>({name:N.entryName,endpoint:`${N.deletePathPrefix}/${N.apiGroupAndVersion}${N.namespace?`/namespaces/${N.namespace}`:""}/${N.typeName}/${N.entryName}`})))}}:void 0,onRow:b=>({onClick:()=>{if(o&&a){const B=Wr.get(b,a),N=typeof B=="string"?B:JSON.stringify(B),_=o.replaceAll("~recordValue~",N);v(_)}}})})})})};function ta(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Jh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(d,g){if(!o[d]){if(!i[d]){var p=typeof ta=="function"&&ta;if(!g&&p)return p(d,!0);if(l)return l(d,!0);var v=new Error("Cannot find module '"+d+"'");throw v.code="MODULE_NOT_FOUND",v}var C=o[d]={exports:{}};i[d][0].call(C.exports,function(A){var E=i[d][1][A];return u(E||A)},C,C.exports,n,i,o,a)}return o[d].exports}for(var l=typeof ta=="function"&&ta,f=0;f<a.length;f++)u(a[f]);return u}({"./aesprim":[function(n,i,o){(function(a,u){u(typeof o<"u"?o:a.esprima={})})(this,function(a){var u,l,f,d,g,p,v,C,A,E,b,B,N,_,k,F,R,O;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},l={},l[u.BooleanLiteral]="Boolean",l[u.EOF]="<end>",l[u.Identifier]="Identifier",l[u.Keyword]="Keyword",l[u.NullLiteral]="Null",l[u.NumericLiteral]="Numeric",l[u.Punctuator]="Punctuator",l[u.StringLiteral]="String",l[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],d={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},g={Data:1,Get:2,Set:4},p={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},v={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function W(h,x){if(!h)throw new Error("ASSERT: "+x)}function J(h){return h>=48&&h<=57}function le(h){return"0123456789abcdefABCDEF".indexOf(h)>=0}function ce(h){return"01234567".indexOf(h)>=0}function ge(h){return h===32||h===9||h===11||h===12||h===160||h>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(h)>=0}function ye(h){return h===10||h===13||h===8232||h===8233}function he(h){return h==64||h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h===92||h>=128&&v.NonAsciiIdentifierStart.test(String.fromCharCode(h))}function me(h){return h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h>=48&&h<=57||h===92||h>=128&&v.NonAsciiIdentifierPart.test(String.fromCharCode(h))}function Le(h){switch(h){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function ke(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function xe(h){return h==="eval"||h==="arguments"}function tt(h){if(E&&ke(h))return!0;switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try"||h==="let";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}}function Ae(h,x,j,H,ne){var de;W(typeof j=="number","Comment must have valid position"),!(R.lastCommentStart>=j)&&(R.lastCommentStart=j,de={type:h,value:x},O.range&&(de.range=[j,H]),O.loc&&(de.loc=ne),O.comments.push(de),O.attachComment&&(O.leadingComments.push(de),O.trailingComments.push(de)))}function Se(h){var x,j,H,ne;for(x=b-h,j={start:{line:B,column:b-N-h}};b<_;)if(H=A.charCodeAt(b),++b,ye(H)){O.comments&&(ne=A.slice(x+h,b-1),j.end={line:B,column:b-N-1},Ae("Line",ne,x,b-1,j)),H===13&&A.charCodeAt(b)===10&&++b,++B,N=b;return}O.comments&&(ne=A.slice(x+h,b),j.end={line:B,column:b-N},Ae("Line",ne,x,b,j))}function We(){var h,x,j,H;for(O.comments&&(h=b-2,x={start:{line:B,column:b-N-2}});b<_;)if(j=A.charCodeAt(b),ye(j))j===13&&A.charCodeAt(b+1)===10&&++b,++B,++b,N=b,b>=_&&we({},p.UnexpectedToken,"ILLEGAL");else if(j===42){if(A.charCodeAt(b+1)===47){++b,++b,O.comments&&(H=A.slice(h+2,b-2),x.end={line:B,column:b-N},Ae("Block",H,h,b,x));return}++b}else++b;we({},p.UnexpectedToken,"ILLEGAL")}function Y(){var h,x;for(x=b===0;b<_;)if(h=A.charCodeAt(b),ge(h))++b;else if(ye(h))++b,h===13&&A.charCodeAt(b)===10&&++b,++B,N=b,x=!0;else if(h===47)if(h=A.charCodeAt(b+1),h===47)++b,++b,Se(2),x=!0;else if(h===42)++b,++b,We();else break;else if(x&&h===45)if(A.charCodeAt(b+1)===45&&A.charCodeAt(b+2)===62)b+=3,Se(3);else break;else if(h===60)if(A.slice(b+1,b+4)==="!--")++b,++b,++b,++b,Se(4);else break;else break}function Q(h){var x,j,H,ne=0;for(j=h==="u"?4:2,x=0;x<j;++x)if(b<_&&le(A[b]))H=A[b++],ne=ne*16+"0123456789abcdef".indexOf(H.toLowerCase());else return"";return String.fromCharCode(ne)}function ue(){var h,x;for(h=A.charCodeAt(b++),x=String.fromCharCode(h),h===92&&(A.charCodeAt(b)!==117&&we({},p.UnexpectedToken,"ILLEGAL"),++b,h=Q("u"),(!h||h==="\\"||!he(h.charCodeAt(0)))&&we({},p.UnexpectedToken,"ILLEGAL"),x=h);b<_&&(h=A.charCodeAt(b),!!me(h));)++b,x+=String.fromCharCode(h),h===92&&(x=x.substr(0,x.length-1),A.charCodeAt(b)!==117&&we({},p.UnexpectedToken,"ILLEGAL"),++b,h=Q("u"),(!h||h==="\\"||!me(h.charCodeAt(0)))&&we({},p.UnexpectedToken,"ILLEGAL"),x+=h);return x}function De(){var h,x;for(h=b++;b<_;){if(x=A.charCodeAt(b),x===92)return b=h,ue();if(me(x))++b;else break}return A.slice(h,b)}function Ye(){var h,x,j;return h=b,x=A.charCodeAt(b)===92?ue():De(),x.length===1?j=u.Identifier:tt(x)?j=u.Keyword:x==="null"?j=u.NullLiteral:x==="true"||x==="false"?j=u.BooleanLiteral:j=u.Identifier,{type:j,value:x,lineNumber:B,lineStart:N,start:h,end:b}}function Te(){var h=b,x=A.charCodeAt(b),j,H=A[b],ne,de,Ke;switch(x){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++b,O.tokenize&&(x===40?O.openParenToken=O.tokens.length:x===123&&(O.openCurlyToken=O.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(x),lineNumber:B,lineStart:N,start:h,end:b};default:if(j=A.charCodeAt(b+1),j===61)switch(x){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return b+=2,{type:u.Punctuator,value:String.fromCharCode(x)+String.fromCharCode(j),lineNumber:B,lineStart:N,start:h,end:b};case 33:case 61:return b+=2,A.charCodeAt(b)===61&&++b,{type:u.Punctuator,value:A.slice(h,b),lineNumber:B,lineStart:N,start:h,end:b}}}if(Ke=A.substr(b,4),Ke===">>>=")return b+=4,{type:u.Punctuator,value:Ke,lineNumber:B,lineStart:N,start:h,end:b};if(de=Ke.substr(0,3),de===">>>"||de==="<<="||de===">>=")return b+=3,{type:u.Punctuator,value:de,lineNumber:B,lineStart:N,start:h,end:b};if(ne=de.substr(0,2),H===ne[1]&&"+-<>&|".indexOf(H)>=0||ne==="=>")return b+=2,{type:u.Punctuator,value:ne,lineNumber:B,lineStart:N,start:h,end:b};if("<>=!+-*%&|^/".indexOf(H)>=0)return++b,{type:u.Punctuator,value:H,lineNumber:B,lineStart:N,start:h,end:b};we({},p.UnexpectedToken,"ILLEGAL")}function Re(h){for(var x="";b<_&&le(A[b]);)x+=A[b++];return x.length===0&&we({},p.UnexpectedToken,"ILLEGAL"),he(A.charCodeAt(b))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+x,16),lineNumber:B,lineStart:N,start:h,end:b}}function Oe(h){for(var x="0"+A[b++];b<_&&ce(A[b]);)x+=A[b++];return(he(A.charCodeAt(b))||J(A.charCodeAt(b)))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(x,8),octal:!0,lineNumber:B,lineStart:N,start:h,end:b}}function Ne(){var h,x,j;if(j=A[b],W(J(j.charCodeAt(0))||j===".","Numeric literal must start with a decimal digit or a decimal point"),x=b,h="",j!=="."){if(h=A[b++],j=A[b],h==="0"){if(j==="x"||j==="X")return++b,Re(x);if(ce(j))return Oe(x);j&&J(j.charCodeAt(0))&&we({},p.UnexpectedToken,"ILLEGAL")}for(;J(A.charCodeAt(b));)h+=A[b++];j=A[b]}if(j==="."){for(h+=A[b++];J(A.charCodeAt(b));)h+=A[b++];j=A[b]}if(j==="e"||j==="E")if(h+=A[b++],j=A[b],(j==="+"||j==="-")&&(h+=A[b++]),J(A.charCodeAt(b)))for(;J(A.charCodeAt(b));)h+=A[b++];else we({},p.UnexpectedToken,"ILLEGAL");return he(A.charCodeAt(b))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(h),lineNumber:B,lineStart:N,start:x,end:b}}function kt(){var h="",x,j,H,ne,de,Ke,yt=!1,Qt,Kt;for(Qt=B,Kt=N,x=A[b],W(x==="'"||x==='"',"String literal must starts with a quote"),j=b,++b;b<_;)if(H=A[b++],H===x){x="";break}else if(H==="\\")if(H=A[b++],!H||!ye(H.charCodeAt(0)))switch(H){case"u":case"x":Ke=b,de=Q(H),de?h+=de:(b=Ke,h+=H);break;case"n":h+=`
|
|
222
|
+
`;break;case"r":h+="\r";break;case"t":h+=" ";break;case"b":h+="\b";break;case"f":h+="\f";break;case"v":h+="\v";break;default:ce(H)?(ne="01234567".indexOf(H),ne!==0&&(yt=!0),b<_&&ce(A[b])&&(yt=!0,ne=ne*8+"01234567".indexOf(A[b++]),"0123".indexOf(H)>=0&&b<_&&ce(A[b])&&(ne=ne*8+"01234567".indexOf(A[b++]))),h+=String.fromCharCode(ne)):h+=H;break}else++B,H==="\r"&&A[b]===`
|
|
223
|
+
`&&++b,N=b;else{if(ye(H.charCodeAt(0)))break;h+=H}return x!==""&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:h,octal:yt,startLineNumber:Qt,startLineStart:Kt,lineNumber:B,lineStart:N,start:j,end:b}}function nn(h,x){var j;try{j=new RegExp(h,x)}catch{we({},p.InvalidRegExp)}return j}function Lt(){var h,x,j,H,ne;for(h=A[b],W(h==="/","Regular expression literal must start with a slash"),x=A[b++],j=!1,H=!1;b<_;)if(h=A[b++],x+=h,h==="\\")h=A[b++],ye(h.charCodeAt(0))&&we({},p.UnterminatedRegExp),x+=h;else if(ye(h.charCodeAt(0)))we({},p.UnterminatedRegExp);else if(j)h==="]"&&(j=!1);else if(h==="/"){H=!0;break}else h==="["&&(j=!0);return H||we({},p.UnterminatedRegExp),ne=x.substr(1,x.length-2),{value:ne,literal:x}}function Pt(){var h,x,j,H;for(x="",j="";b<_&&(h=A[b],!!me(h.charCodeAt(0)));)if(++b,h==="\\"&&b<_)if(h=A[b],h==="u"){if(++b,H=b,h=Q("u"),h)for(j+=h,x+="\\u";H<b;++H)x+=A[H];else b=H,j+="u",x+="\\u";_e({},p.UnexpectedToken,"ILLEGAL")}else x+="\\",_e({},p.UnexpectedToken,"ILLEGAL");else j+=h,x+=h;return{value:j,literal:x}}function Nt(){var h,x,j,H;return F=null,Y(),h=b,x=Lt(),j=Pt(),H=nn(x.value,j.value),O.tokenize?{type:u.RegularExpression,value:H,lineNumber:B,lineStart:N,start:h,end:b}:{literal:x.literal+j.literal,value:H,start:h,end:b}}function wt(){var h,x,j,H;return Y(),h=b,x={start:{line:B,column:b-N}},j=Nt(),x.end={line:B,column:b-N},O.tokenize||(O.tokens.length>0&&(H=O.tokens[O.tokens.length-1],H.range[0]===h&&H.type==="Punctuator"&&(H.value==="/"||H.value==="/=")&&O.tokens.pop()),O.tokens.push({type:"RegularExpression",value:j.literal,range:[h,b],loc:x})),j}function kn(h){return h.type===u.Identifier||h.type===u.Keyword||h.type===u.BooleanLiteral||h.type===u.NullLiteral}function Sn(){var h,x;if(h=O.tokens[O.tokens.length-1],!h)return wt();if(h.type==="Punctuator"){if(h.value==="]")return Te();if(h.value===")")return x=O.tokens[O.openParenToken-1],x&&x.type==="Keyword"&&(x.value==="if"||x.value==="while"||x.value==="for"||x.value==="with")?wt():Te();if(h.value==="}"){if(O.tokens[O.openCurlyToken-3]&&O.tokens[O.openCurlyToken-3].type==="Keyword"){if(x=O.tokens[O.openCurlyToken-4],!x)return Te()}else if(O.tokens[O.openCurlyToken-4]&&O.tokens[O.openCurlyToken-4].type==="Keyword"){if(x=O.tokens[O.openCurlyToken-5],!x)return wt()}else return Te();return f.indexOf(x.value)>=0?Te():wt()}return wt()}return h.type==="Keyword"?wt():Te()}function Ce(){var h;return Y(),b>=_?{type:u.EOF,lineNumber:B,lineStart:N,start:b,end:b}:(h=A.charCodeAt(b),he(h)?Ye():h===40||h===41||h===59?Te():h===39||h===34?kt():h===46?J(A.charCodeAt(b+1))?Ne():Te():J(h)?Ne():O.tokenize&&h===47?Sn():Te())}function Be(){var h,x,j;return Y(),h={start:{line:B,column:b-N}},x=Ce(),h.end={line:B,column:b-N},x.type!==u.EOF&&(j=A.slice(x.start,x.end),O.tokens.push({type:l[x.type],value:j,range:[x.start,x.end],loc:h})),x}function pe(){var h;return h=F,b=h.end,B=h.lineNumber,N=h.lineStart,F=typeof O.tokens<"u"?Be():Ce(),b=h.end,B=h.lineNumber,N=h.lineStart,h}function At(){var h,x,j;h=b,x=B,j=N,F=typeof O.tokens<"u"?Be():Ce(),b=h,B=x,N=j}function xt(h,x){this.line=h,this.column=x}function vt(h,x,j,H){this.start=new xt(h,x),this.end=new xt(j,H)}C={name:"SyntaxTree",processComment:function(h){var x,j;if(!(h.type===d.Program&&h.body.length>0)){for(O.trailingComments.length>0?O.trailingComments[0].range[0]>=h.range[1]?(j=O.trailingComments,O.trailingComments=[]):O.trailingComments.length=0:O.bottomRightStack.length>0&&O.bottomRightStack[O.bottomRightStack.length-1].trailingComments&&O.bottomRightStack[O.bottomRightStack.length-1].trailingComments[0].range[0]>=h.range[1]&&(j=O.bottomRightStack[O.bottomRightStack.length-1].trailingComments,delete O.bottomRightStack[O.bottomRightStack.length-1].trailingComments);O.bottomRightStack.length>0&&O.bottomRightStack[O.bottomRightStack.length-1].range[0]>=h.range[0];)x=O.bottomRightStack.pop();x?x.leadingComments&&x.leadingComments[x.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=x.leadingComments,delete x.leadingComments):O.leadingComments.length>0&&O.leadingComments[O.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=O.leadingComments,O.leadingComments=[]),j&&(h.trailingComments=j),O.bottomRightStack.push(h)}},markEnd:function(h,x){return O.range&&(h.range=[x.start,b]),O.loc&&(h.loc=new vt(x.startLineNumber===void 0?x.lineNumber:x.startLineNumber,x.start-(x.startLineStart===void 0?x.lineStart:x.startLineStart),B,b-N),this.postProcess(h)),O.attachComment&&this.processComment(h),h},postProcess:function(h){return O.source&&(h.loc.source=O.source),h},createArrayExpression:function(h){return{type:d.ArrayExpression,elements:h}},createAssignmentExpression:function(h,x,j){return{type:d.AssignmentExpression,operator:h,left:x,right:j}},createBinaryExpression:function(h,x,j){var H=h==="||"||h==="&&"?d.LogicalExpression:d.BinaryExpression;return{type:H,operator:h,left:x,right:j}},createBlockStatement:function(h){return{type:d.BlockStatement,body:h}},createBreakStatement:function(h){return{type:d.BreakStatement,label:h}},createCallExpression:function(h,x){return{type:d.CallExpression,callee:h,arguments:x}},createCatchClause:function(h,x){return{type:d.CatchClause,param:h,body:x}},createConditionalExpression:function(h,x,j){return{type:d.ConditionalExpression,test:h,consequent:x,alternate:j}},createContinueStatement:function(h){return{type:d.ContinueStatement,label:h}},createDebuggerStatement:function(){return{type:d.DebuggerStatement}},createDoWhileStatement:function(h,x){return{type:d.DoWhileStatement,body:h,test:x}},createEmptyStatement:function(){return{type:d.EmptyStatement}},createExpressionStatement:function(h){return{type:d.ExpressionStatement,expression:h}},createForStatement:function(h,x,j,H){return{type:d.ForStatement,init:h,test:x,update:j,body:H}},createForInStatement:function(h,x,j){return{type:d.ForInStatement,left:h,right:x,body:j,each:!1}},createFunctionDeclaration:function(h,x,j,H){return{type:d.FunctionDeclaration,id:h,params:x,defaults:j,body:H,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(h,x,j,H){return{type:d.FunctionExpression,id:h,params:x,defaults:j,body:H,rest:null,generator:!1,expression:!1}},createIdentifier:function(h){return{type:d.Identifier,name:h}},createIfStatement:function(h,x,j){return{type:d.IfStatement,test:h,consequent:x,alternate:j}},createLabeledStatement:function(h,x){return{type:d.LabeledStatement,label:h,body:x}},createLiteral:function(h){return{type:d.Literal,value:h.value,raw:A.slice(h.start,h.end)}},createMemberExpression:function(h,x,j){return{type:d.MemberExpression,computed:h==="[",object:x,property:j}},createNewExpression:function(h,x){return{type:d.NewExpression,callee:h,arguments:x}},createObjectExpression:function(h){return{type:d.ObjectExpression,properties:h}},createPostfixExpression:function(h,x){return{type:d.UpdateExpression,operator:h,argument:x,prefix:!1}},createProgram:function(h){return{type:d.Program,body:h}},createProperty:function(h,x,j){return{type:d.Property,key:x,value:j,kind:h}},createReturnStatement:function(h){return{type:d.ReturnStatement,argument:h}},createSequenceExpression:function(h){return{type:d.SequenceExpression,expressions:h}},createSwitchCase:function(h,x){return{type:d.SwitchCase,test:h,consequent:x}},createSwitchStatement:function(h,x){return{type:d.SwitchStatement,discriminant:h,cases:x}},createThisExpression:function(){return{type:d.ThisExpression}},createThrowStatement:function(h){return{type:d.ThrowStatement,argument:h}},createTryStatement:function(h,x,j,H){return{type:d.TryStatement,block:h,guardedHandlers:x,handlers:j,finalizer:H}},createUnaryExpression:function(h,x){return h==="++"||h==="--"?{type:d.UpdateExpression,operator:h,argument:x,prefix:!0}:{type:d.UnaryExpression,operator:h,argument:x,prefix:!0}},createVariableDeclaration:function(h,x){return{type:d.VariableDeclaration,declarations:h,kind:x}},createVariableDeclarator:function(h,x){return{type:d.VariableDeclarator,id:h,init:x}},createWhileStatement:function(h,x){return{type:d.WhileStatement,test:h,body:x}},createWithStatement:function(h,x){return{type:d.WithStatement,object:h,body:x}}};function rt(){var h,x,j,H;return h=b,x=B,j=N,Y(),H=B!==x,b=h,B=x,N=j,H}function we(h,x){var j,H=Array.prototype.slice.call(arguments,2),ne=x.replace(/%(\d)/g,function(de,Ke){return W(Ke<H.length,"Message reference must be in range"),H[Ke]});throw typeof h.lineNumber=="number"?(j=new Error("Line "+h.lineNumber+": "+ne),j.index=h.start,j.lineNumber=h.lineNumber,j.column=h.start-N+1):(j=new Error("Line "+B+": "+ne),j.index=b,j.lineNumber=B,j.column=b-N+1),j.description=ne,j}function _e(){try{we.apply(null,arguments)}catch(h){if(O.errors)O.errors.push(h);else throw h}}function ut(h){if(h.type===u.EOF&&we(h,p.UnexpectedEOS),h.type===u.NumericLiteral&&we(h,p.UnexpectedNumber),h.type===u.StringLiteral&&we(h,p.UnexpectedString),h.type===u.Identifier&&we(h,p.UnexpectedIdentifier),h.type===u.Keyword){if(Le(h.value))we(h,p.UnexpectedReserved);else if(E&&ke(h.value)){_e(h,p.StrictReservedWord);return}we(h,p.UnexpectedToken,h.value)}we(h,p.UnexpectedToken,h.value)}function I(h){var x=pe();(x.type!==u.Punctuator||x.value!==h)&&ut(x)}function y(h){var x=pe();(x.type!==u.Keyword||x.value!==h)&&ut(x)}function w(h){return F.type===u.Punctuator&&F.value===h}function P(h){return F.type===u.Keyword&&F.value===h}function V(){var h;return F.type!==u.Punctuator?!1:(h=F.value,h==="="||h==="*="||h==="/="||h==="%="||h==="+="||h==="-="||h==="<<="||h===">>="||h===">>>="||h==="&="||h==="^="||h==="|=")}function G(){var h;if(A.charCodeAt(b)===59||w(";")){pe();return}h=B,Y(),B===h&&F.type!==u.EOF&&!w("}")&&ut(F)}function ee(h){return h.type===d.Identifier||h.type===d.MemberExpression}function Me(){var h=[],x;for(x=F,I("[");!w("]");)w(",")?(pe(),h.push(null)):(h.push(pn()),w("]")||I(","));return pe(),k.markEnd(k.createArrayExpression(h),x)}function pt(h,x){var j,H,ne;return j=E,ne=F,H=fs(),x&&E&&xe(h[0].name)&&_e(x,p.StrictParamName),E=j,k.markEnd(k.createFunctionExpression(null,h,[],H),ne)}function ct(){var h,x;return x=F,h=pe(),h.type===u.StringLiteral||h.type===u.NumericLiteral?(E&&h.octal&&_e(h,p.StrictOctalLiteral),k.markEnd(k.createLiteral(h),x)):k.markEnd(k.createIdentifier(h.value),x)}function dt(){var h,x,j,H,ne,de;if(h=F,de=F,h.type===u.Identifier)return j=ct(),h.value==="get"&&!w(":")?(x=ct(),I("("),I(")"),H=pt([]),k.markEnd(k.createProperty("get",x,H),de)):h.value==="set"&&!w(":")?(x=ct(),I("("),h=F,h.type!==u.Identifier?(I(")"),_e(h,p.UnexpectedToken,h.value),H=pt([])):(ne=[Fe()],I(")"),H=pt(ne,h)),k.markEnd(k.createProperty("set",x,H),de)):(I(":"),H=pn(),k.markEnd(k.createProperty("init",j,H),de));if(h.type===u.EOF||h.type===u.Punctuator)ut(h);else return x=ct(),I(":"),H=pn(),k.markEnd(k.createProperty("init",x,H),de)}function st(){var h=[],x,j,H,ne,de={},Ke=String,yt;for(yt=F,I("{");!w("}");)x=dt(),x.key.type===d.Identifier?j=x.key.name:j=Ke(x.key.value),ne=x.kind==="init"?g.Data:x.kind==="get"?g.Get:g.Set,H="$"+j,Object.prototype.hasOwnProperty.call(de,H)?(de[H]===g.Data?E&&ne===g.Data?_e({},p.StrictDuplicateProperty):ne!==g.Data&&_e({},p.AccessorDataProperty):ne===g.Data?_e({},p.AccessorDataProperty):de[H]&ne&&_e({},p.AccessorGetSet),de[H]|=ne):de[H]=ne,h.push(x),w("}")||I(",");return I("}"),k.markEnd(k.createObjectExpression(h),yt)}function Jr(){var h;return I("("),h=M(),I(")"),h}function Ai(){var h,x,j,H;if(w("("))return Jr();if(w("["))return Me();if(w("{"))return st();if(h=F.type,H=F,h===u.Identifier)j=k.createIdentifier(pe().value);else if(h===u.StringLiteral||h===u.NumericLiteral)E&&F.octal&&_e(F,p.StrictOctalLiteral),j=k.createLiteral(pe());else if(h===u.Keyword){if(P("function"))return Xc();P("this")?(pe(),j=k.createThisExpression()):ut(pe())}else h===u.BooleanLiteral?(x=pe(),x.value=x.value==="true",j=k.createLiteral(x)):h===u.NullLiteral?(x=pe(),x.value=null,j=k.createLiteral(x)):w("/")||w("/=")?(typeof O.tokens<"u"?j=k.createLiteral(wt()):j=k.createLiteral(Nt()),At()):ut(pe());return k.markEnd(j,H)}function us(){var h=[];if(I("("),!w(")"))for(;b<_&&(h.push(pn()),!w(")"));)I(",");return I(")"),h}function cs(){var h,x;return x=F,h=pe(),kn(h)||ut(h),k.markEnd(k.createIdentifier(h.value),x)}function ls(){return I("."),cs()}function Yr(){var h;return I("["),h=M(),I("]"),h}function Ei(){var h,x,j;return j=F,y("new"),h=oo(),x=w("(")?us():[],k.markEnd(k.createNewExpression(h,x),j)}function so(){var h,x,j,H,ne;for(ne=F,h=R.allowIn,R.allowIn=!0,x=P("new")?Ei():Ai(),R.allowIn=h;;){if(w("."))H=ls(),x=k.createMemberExpression(".",x,H);else if(w("("))j=us(),x=k.createCallExpression(x,j);else if(w("["))H=Yr(),x=k.createMemberExpression("[",x,H);else break;k.markEnd(x,ne)}return x}function oo(){var h,x,j,H;for(H=F,h=R.allowIn,x=P("new")?Ei():Ai(),R.allowIn=h;w(".")||w("[");)w("[")?(j=Yr(),x=k.createMemberExpression("[",x,j)):(j=ls(),x=k.createMemberExpression(".",x,j)),k.markEnd(x,H);return x}function Or(){var h,x,j=F;return h=so(),F.type===u.Punctuator&&(w("++")||w("--"))&&!rt()&&(E&&h.type===d.Identifier&&xe(h.name)&&_e({},p.StrictLHSPostfix),ee(h)||_e({},p.InvalidLHSInAssignment),x=pe(),h=k.markEnd(k.createPostfixExpression(x.value,h),j)),h}function ir(){var h,x,j;return F.type!==u.Punctuator&&F.type!==u.Keyword?x=Or():w("++")||w("--")?(j=F,h=pe(),x=ir(),E&&x.type===d.Identifier&&xe(x.name)&&_e({},p.StrictLHSPrefix),ee(x)||_e({},p.InvalidLHSInAssignment),x=k.createUnaryExpression(h.value,x),x=k.markEnd(x,j)):w("+")||w("-")||w("~")||w("!")?(j=F,h=pe(),x=ir(),x=k.createUnaryExpression(h.value,x),x=k.markEnd(x,j)):P("delete")||P("void")||P("typeof")?(j=F,h=pe(),x=ir(),x=k.createUnaryExpression(h.value,x),x=k.markEnd(x,j),E&&x.operator==="delete"&&x.argument.type===d.Identifier&&_e({},p.StrictDelete)):x=Or(),x}function Xr(h,x){var j=0;if(h.type!==u.Punctuator&&h.type!==u.Keyword)return 0;switch(h.value){case"||":j=1;break;case"&&":j=2;break;case"|":j=3;break;case"^":j=4;break;case"&":j=5;break;case"==":case"!=":case"===":case"!==":j=6;break;case"<":case">":case"<=":case">=":case"instanceof":j=7;break;case"in":j=x?7:0;break;case"<<":case">>":case">>>":j=8;break;case"+":case"-":j=9;break;case"*":case"/":case"%":j=11;break}return j}function ao(){var h,x,j,H,ne,de,Ke,yt,Qt,Kt;if(h=F,Qt=ir(),H=F,ne=Xr(H,R.allowIn),ne===0)return Qt;for(H.prec=ne,pe(),x=[h,F],Ke=ir(),de=[Qt,H,Ke];(ne=Xr(F,R.allowIn))>0;){for(;de.length>2&&ne<=de[de.length-2].prec;)Ke=de.pop(),yt=de.pop().value,Qt=de.pop(),j=k.createBinaryExpression(yt,Qt,Ke),x.pop(),h=x[x.length-1],k.markEnd(j,h),de.push(j);H=pe(),H.prec=ne,de.push(H),x.push(F),j=ir(),de.push(j)}for(Kt=de.length-1,j=de[Kt],x.pop();Kt>1;)j=k.createBinaryExpression(de[Kt-1].value,de[Kt-2],j),Kt-=2,h=x.pop(),k.markEnd(j,h);return j}function uo(){var h,x,j,H,ne;return ne=F,h=ao(),w("?")&&(pe(),x=R.allowIn,R.allowIn=!0,j=pn(),R.allowIn=x,I(":"),H=pn(),h=k.createConditionalExpression(h,j,H),k.markEnd(h,ne)),h}function pn(){var h,x,j,H,ne;return h=F,ne=F,H=x=uo(),V()&&(ee(x)||_e({},p.InvalidLHSInAssignment),E&&x.type===d.Identifier&&xe(x.name)&&_e(h,p.StrictLHSAssignment),h=pe(),j=pn(),H=k.markEnd(k.createAssignmentExpression(h.value,x,j),ne)),H}function M(){var h,x=F;if(h=pn(),w(",")){for(h=k.createSequenceExpression([h]);b<_&&w(",");)pe(),h.expressions.push(pn());k.markEnd(h,x)}return h}function fe(){for(var h=[],x;b<_&&!(w("}")||(x=Qr(),typeof x>"u"));)h.push(x);return h}function be(){var h,x;return x=F,I("{"),h=fe(),I("}"),k.markEnd(k.createBlockStatement(h),x)}function Fe(){var h,x;return x=F,h=pe(),h.type!==u.Identifier&&ut(h),k.markEnd(k.createIdentifier(h.value),x)}function lt(h){var x=null,j,H;return H=F,j=Fe(),E&&xe(j.name)&&_e({},p.StrictVarName),h==="const"?(I("="),x=pn()):w("=")&&(pe(),x=pn()),k.markEnd(k.createVariableDeclarator(j,x),H)}function ft(h){var x=[];do{if(x.push(lt(h)),!w(","))break;pe()}while(b<_);return x}function nt(){var h;return y("var"),h=ft(),G(),k.createVariableDeclaration(h,"var")}function Xe(h){var x,j;return j=F,y(h),x=ft(h),G(),k.markEnd(k.createVariableDeclaration(x,h),j)}function Xt(){return I(";"),k.createEmptyStatement()}function Ft(){var h=M();return G(),k.createExpressionStatement(h)}function Dt(){var h,x,j;return y("if"),I("("),h=M(),I(")"),x=In(),P("else")?(pe(),j=In()):j=null,k.createIfStatement(h,x,j)}function cn(){var h,x,j;return y("do"),j=R.inIteration,R.inIteration=!0,h=In(),R.inIteration=j,y("while"),I("("),x=M(),I(")"),w(";")&&pe(),k.createDoWhileStatement(h,x)}function Tn(){var h,x,j;return y("while"),I("("),h=M(),I(")"),j=R.inIteration,R.inIteration=!0,x=In(),R.inIteration=j,k.createWhileStatement(h,x)}function sr(){var h,x,j;return j=F,h=pe(),x=ft(),k.markEnd(k.createVariableDeclaration(x,h.value),j)}function Ht(){var h,x,j,H,ne,de,Ke;return h=x=j=null,y("for"),I("("),w(";")?pe():(P("var")||P("let")?(R.allowIn=!1,h=sr(),R.allowIn=!0,h.declarations.length===1&&P("in")&&(pe(),H=h,ne=M(),h=null)):(R.allowIn=!1,h=M(),R.allowIn=!0,P("in")&&(ee(h)||_e({},p.InvalidLHSInForIn),pe(),H=h,ne=M(),h=null)),typeof H>"u"&&I(";")),typeof H>"u"&&(w(";")||(x=M()),I(";"),w(")")||(j=M())),I(")"),Ke=R.inIteration,R.inIteration=!0,de=In(),R.inIteration=Ke,typeof H>"u"?k.createForStatement(h,x,j,de):k.createForInStatement(H,ne,de)}function xi(){var h=null,x;return y("continue"),A.charCodeAt(b)===59?(pe(),R.inIteration||we({},p.IllegalContinue),k.createContinueStatement(null)):rt()?(R.inIteration||we({},p.IllegalContinue),k.createContinueStatement(null)):(F.type===u.Identifier&&(h=Fe(),x="$"+h.name,Object.prototype.hasOwnProperty.call(R.labelSet,x)||we({},p.UnknownLabel,h.name)),G(),h===null&&!R.inIteration&&we({},p.IllegalContinue),k.createContinueStatement(h))}function co(){var h=null,x;return y("break"),A.charCodeAt(b)===59?(pe(),R.inIteration||R.inSwitch||we({},p.IllegalBreak),k.createBreakStatement(null)):rt()?(R.inIteration||R.inSwitch||we({},p.IllegalBreak),k.createBreakStatement(null)):(F.type===u.Identifier&&(h=Fe(),x="$"+h.name,Object.prototype.hasOwnProperty.call(R.labelSet,x)||we({},p.UnknownLabel,h.name)),G(),h===null&&!(R.inIteration||R.inSwitch)&&we({},p.IllegalBreak),k.createBreakStatement(h))}function lo(){var h=null;return y("return"),R.inFunctionBody||_e({},p.IllegalReturn),A.charCodeAt(b)===32&&he(A.charCodeAt(b+1))?(h=M(),G(),k.createReturnStatement(h)):rt()?k.createReturnStatement(null):(w(";")||!w("}")&&F.type!==u.EOF&&(h=M()),G(),k.createReturnStatement(h))}function ka(){var h,x;return E&&(Y(),_e({},p.StrictModeWith)),y("with"),I("("),h=M(),I(")"),x=In(),k.createWithStatement(h,x)}function Ta(){var h,x=[],j,H;for(H=F,P("default")?(pe(),h=null):(y("case"),h=M()),I(":");b<_&&!(w("}")||P("default")||P("case"));)j=In(),x.push(j);return k.markEnd(k.createSwitchCase(h,x),H)}function Ia(){var h,x,j,H,ne;if(y("switch"),I("("),h=M(),I(")"),I("{"),x=[],w("}"))return pe(),k.createSwitchStatement(h,x);for(H=R.inSwitch,R.inSwitch=!0,ne=!1;b<_&&!w("}");)j=Ta(),j.test===null&&(ne&&we({},p.MultipleDefaultsInSwitch),ne=!0),x.push(j);return R.inSwitch=H,I("}"),k.createSwitchStatement(h,x)}function zc(){var h;return y("throw"),rt()&&we({},p.NewlineAfterThrow),h=M(),G(),k.createThrowStatement(h)}function Gc(){var h,x,j;return j=F,y("catch"),I("("),w(")")&&ut(F),h=Fe(),E&&xe(h.name)&&_e({},p.StrictCatchVariable),I(")"),x=be(),k.markEnd(k.createCatchClause(h,x),j)}function Jc(){var h,x=[],j=null;return y("try"),h=be(),P("catch")&&x.push(Gc()),P("finally")&&(pe(),j=be()),x.length===0&&!j&&we({},p.NoCatchOrFinally),k.createTryStatement(h,[],x,j)}function Yc(){return y("debugger"),G(),k.createDebuggerStatement()}function In(){var h=F.type,x,j,H,ne;if(h===u.EOF&&ut(F),h===u.Punctuator&&F.value==="{")return be();if(ne=F,h===u.Punctuator)switch(F.value){case";":return k.markEnd(Xt(),ne);case"(":return k.markEnd(Ft(),ne)}if(h===u.Keyword)switch(F.value){case"break":return k.markEnd(co(),ne);case"continue":return k.markEnd(xi(),ne);case"debugger":return k.markEnd(Yc(),ne);case"do":return k.markEnd(cn(),ne);case"for":return k.markEnd(Ht(),ne);case"function":return k.markEnd(hs(),ne);case"if":return k.markEnd(Dt(),ne);case"return":return k.markEnd(lo(),ne);case"switch":return k.markEnd(Ia(),ne);case"throw":return k.markEnd(zc(),ne);case"try":return k.markEnd(Jc(),ne);case"var":return k.markEnd(nt(),ne);case"while":return k.markEnd(Tn(),ne);case"with":return k.markEnd(ka(),ne)}return x=M(),x.type===d.Identifier&&w(":")?(pe(),H="$"+x.name,Object.prototype.hasOwnProperty.call(R.labelSet,H)&&we({},p.Redeclaration,"Label",x.name),R.labelSet[H]=!0,j=In(),delete R.labelSet[H],k.markEnd(k.createLabeledStatement(x,j),ne)):(G(),k.markEnd(k.createExpressionStatement(x),ne))}function fs(){var h,x=[],j,H,ne,de,Ke,yt,Qt,Kt;for(Kt=F,I("{");b<_&&!(F.type!==u.StringLiteral||(j=F,h=Qr(),x.push(h),h.expression.type!==d.Literal));)H=A.slice(j.start+1,j.end-1),H==="use strict"?(E=!0,ne&&_e(ne,p.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(de=R.labelSet,Ke=R.inIteration,yt=R.inSwitch,Qt=R.inFunctionBody,R.labelSet={},R.inIteration=!1,R.inSwitch=!1,R.inFunctionBody=!0;b<_&&!(w("}")||(h=Qr(),typeof h>"u"));)x.push(h);return I("}"),R.labelSet=de,R.inIteration=Ke,R.inSwitch=yt,R.inFunctionBody=Qt,k.markEnd(k.createBlockStatement(x),Kt)}function fo(h){var x,j=[],H,ne,de,Ke,yt;if(I("("),!w(")"))for(de={};b<_&&(H=F,x=Fe(),Ke="$"+H.value,E?(xe(H.value)&&(ne=H,yt=p.StrictParamName),Object.prototype.hasOwnProperty.call(de,Ke)&&(ne=H,yt=p.StrictParamDupe)):h||(xe(H.value)?(h=H,yt=p.StrictParamName):ke(H.value)?(h=H,yt=p.StrictReservedWord):Object.prototype.hasOwnProperty.call(de,Ke)&&(h=H,yt=p.StrictParamDupe)),j.push(x),de[Ke]=!0,!w(")"));)I(",");return I(")"),{params:j,stricted:ne,firstRestricted:h,message:yt}}function hs(){var h,x=[],j,H,ne,de,Ke,yt,Qt,Kt;return Kt=F,y("function"),H=F,h=Fe(),E?xe(H.value)&&_e(H,p.StrictFunctionName):xe(H.value)?(Ke=H,yt=p.StrictFunctionName):ke(H.value)&&(Ke=H,yt=p.StrictReservedWord),de=fo(Ke),x=de.params,ne=de.stricted,Ke=de.firstRestricted,de.message&&(yt=de.message),Qt=E,j=fs(),E&&Ke&&we(Ke,yt),E&&ne&&_e(ne,yt),E=Qt,k.markEnd(k.createFunctionDeclaration(h,x,[],j),Kt)}function Xc(){var h,x=null,j,H,ne,de,Ke=[],yt,Qt,Kt;return Kt=F,y("function"),w("(")||(h=F,x=Fe(),E?xe(h.value)&&_e(h,p.StrictFunctionName):xe(h.value)?(H=h,ne=p.StrictFunctionName):ke(h.value)&&(H=h,ne=p.StrictReservedWord)),de=fo(H),Ke=de.params,j=de.stricted,H=de.firstRestricted,de.message&&(ne=de.message),Qt=E,yt=fs(),E&&H&&we(H,ne),E&&j&&_e(j,ne),E=Qt,k.markEnd(k.createFunctionExpression(x,Ke,[],yt),Kt)}function Qr(){if(F.type===u.Keyword)switch(F.value){case"const":case"let":return Xe(F.value);case"function":return hs();default:return In()}if(F.type!==u.EOF)return In()}function ds(){for(var h,x=[],j,H,ne;b<_&&(j=F,!(j.type!==u.StringLiteral||(h=Qr(),x.push(h),h.expression.type!==d.Literal)));)H=A.slice(j.start+1,j.end-1),H==="use strict"?(E=!0,ne&&_e(ne,p.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(;b<_&&(h=Qr(),!(typeof h>"u"));)x.push(h);return x}function Oa(){var h,x;return Y(),At(),x=F,E=!1,h=ds(),k.markEnd(k.createProgram(h),x)}function Fa(){var h,x,j,H=[];for(h=0;h<O.tokens.length;++h)x=O.tokens[h],j={type:x.type,value:x.value},O.range&&(j.range=x.range),O.loc&&(j.loc=x.loc),H.push(j);O.tokens=H}function Ba(h,x){var j,H,ne;j=String,typeof h!="string"&&!(h instanceof String)&&(h=j(h)),k=C,A=h,b=0,B=A.length>0?1:0,N=0,_=A.length,F=null,R={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},O={},x=x||{},x.tokens=!0,O.tokens=[],O.tokenize=!0,O.openParenToken=-1,O.openCurlyToken=-1,O.range=typeof x.range=="boolean"&&x.range,O.loc=typeof x.loc=="boolean"&&x.loc,typeof x.comment=="boolean"&&x.comment&&(O.comments=[]),typeof x.tolerant=="boolean"&&x.tolerant&&(O.errors=[]);try{if(At(),F.type===u.EOF)return O.tokens;for(H=pe();F.type!==u.EOF;)try{H=pe()}catch(de){if(H=F,O.errors){O.errors.push(de);break}else throw de}Fa(),ne=O.tokens,typeof O.comments<"u"&&(ne.comments=O.comments),typeof O.errors<"u"&&(ne.errors=O.errors)}catch(de){throw de}finally{O={}}return ne}function Da(h,x){var j,H;H=String,typeof h!="string"&&!(h instanceof String)&&(h=H(h)),k=C,A=h,b=0,B=A.length>0?1:0,N=0,_=A.length,F=null,R={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},O={},typeof x<"u"&&(O.range=typeof x.range=="boolean"&&x.range,O.loc=typeof x.loc=="boolean"&&x.loc,O.attachComment=typeof x.attachComment=="boolean"&&x.attachComment,O.loc&&x.source!==null&&x.source!==void 0&&(O.source=H(x.source)),typeof x.tokens=="boolean"&&x.tokens&&(O.tokens=[]),typeof x.comment=="boolean"&&x.comment&&(O.comments=[]),typeof x.tolerant=="boolean"&&x.tolerant&&(O.errors=[]),O.attachComment&&(O.range=!0,O.comments=[],O.bottomRightStack=[],O.trailingComments=[],O.leadingComments=[]));try{j=Oa(),typeof O.comments<"u"&&(j.comments=O.comments),typeof O.tokens<"u"&&(Fa(),j.tokens=O.tokens),typeof O.errors<"u"&&(j.errors=O.errors)}catch(ne){throw ne}finally{O={}}return j}a.version="1.2.2",a.tokenize=Ba,a.parse=Da,a.Syntax=function(){var h,x={};typeof Object.create=="function"&&(x=Object.create(null));for(h in d)d.hasOwnProperty(h)&&(x[h]=d[h]);return typeof Object.freeze=="function"&&Object.freeze(x),x}()})},{}],1:[function(n,i,o){(function(a){var u=function(){var l={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(v,C,A,E,b,B,N){E.ast||(E.ast=f,f.initialize());var _=B.length-1;switch(b){case 1:return E.ast.set({expression:{type:"root",value:B[_]}}),E.ast.unshift(),E.ast.yield();case 2:return E.ast.set({expression:{type:"root",value:B[_-1]}}),E.ast.unshift(),E.ast.yield();case 3:return E.ast.unshift(),E.ast.yield();case 4:return E.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:B[_-1]}}),E.ast.unshift(),E.ast.yield();case 5:break;case 6:break;case 7:E.ast.set({operation:"member"}),E.ast.push();break;case 8:E.ast.set({operation:"subscript"}),E.ast.push();break;case 9:E.ast.set({scope:"child"});break;case 10:E.ast.set({scope:"descendant"});break;case 11:break;case 12:E.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:E.ast.set({expression:{type:"wildcard",value:B[_]}});break;case 15:E.ast.set({expression:{type:"identifier",value:B[_]}});break;case 16:E.ast.set({expression:{type:"script_expression",value:B[_]}});break;case 17:E.ast.set({expression:{type:"numeric_literal",value:parseInt(B[_])}});break;case 18:break;case 19:E.ast.set({scope:"child"});break;case 20:E.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:B[_].length>1?E.ast.set({expression:{type:"union",value:B[_]}}):this.$=B[_];break;case 25:this.$=[B[_]];break;case 26:this.$=B[_-2].concat(B[_]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(B[_])}},E.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:B[_]}},E.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:B[_]}},E.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:B[_]}},E.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:B[_]}},E.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:B[_]}},E.ast.set(this.$);break;case 33:this.$=B[_];break;case 34:this.$=B[_];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(v,C){if(C.recoverable)this.trace(v);else throw new Error(v)},parse:function(v){var C=this,A=[0],E=[null],b=[],B=this.table,N="",_=0,k=0,F=2,R=1,O=b.slice.call(arguments,1);this.lexer.setInput(v),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var W=this.lexer.yylloc;b.push(W);var J=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function le(){var Se;return Se=C.lexer.lex()||R,typeof Se!="number"&&(Se=C.symbols_[Se]||Se),Se}for(var ce,ge,ye,he,me={},Le,ke,xe,tt;;){if(ge=A[A.length-1],this.defaultActions[ge]?ye=this.defaultActions[ge]:((ce===null||typeof ce>"u")&&(ce=le()),ye=B[ge]&&B[ge][ce]),typeof ye>"u"||!ye.length||!ye[0]){var Ae="";tt=[];for(Le in B[ge])this.terminals_[Le]&&Le>F&&tt.push("'"+this.terminals_[Le]+"'");this.lexer.showPosition?Ae="Parse error on line "+(_+1)+`:
|
|
224
|
+
`+this.lexer.showPosition()+`
|
|
225
|
+
Expecting `+tt.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":Ae="Parse error on line "+(_+1)+": Unexpected "+(ce==R?"end of input":"'"+(this.terminals_[ce]||ce)+"'"),this.parseError(Ae,{text:this.lexer.match,token:this.terminals_[ce]||ce,line:this.lexer.yylineno,loc:W,expected:tt})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+ce);switch(ye[0]){case 1:A.push(ce),E.push(this.lexer.yytext),b.push(this.lexer.yylloc),A.push(ye[1]),ce=null,k=this.lexer.yyleng,N=this.lexer.yytext,_=this.lexer.yylineno,W=this.lexer.yylloc;break;case 2:if(ke=this.productions_[ye[1]][1],me.$=E[E.length-ke],me._$={first_line:b[b.length-(ke||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(ke||1)].first_column,last_column:b[b.length-1].last_column},J&&(me._$.range=[b[b.length-(ke||1)].range[0],b[b.length-1].range[1]]),he=this.performAction.apply(me,[N,k,_,this.yy,ye[1],E,b].concat(O)),typeof he<"u")return he;ke&&(A=A.slice(0,-1*ke*2),E=E.slice(0,-1*ke),b=b.slice(0,-1*ke)),A.push(this.productions_[ye[1]][0]),E.push(me.$),b.push(me._$),xe=B[A[A.length-2]][A[A.length-1]],A.push(xe);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(p){for(var v in p)this._node[v]=p[v];return this._node},node:function(p){return arguments.length&&(this._node=p),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var p=this._nodes;return this.initialize(),p}},d=function(){var p={EOF:1,parseError:function(C,A){if(this.yy.parser)this.yy.parser.parseError(C,A);else throw new Error(C)},setInput:function(v){return this._input=v,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var C=v.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),v},unput:function(v){var C=v.length,A=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C-1),this.offset-=C;var E=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),A.length-1&&(this.yylineno-=A.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:A?(A.length===E.length?this.yylloc.first_column:0)+E[E.length-A.length].length-A[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
226
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(v){this.unput(this.match.slice(v))},pastInput:function(){var v=this.matched.substr(0,this.matched.length-this.match.length);return(v.length>20?"...":"")+v.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var v=this.match;return v.length<20&&(v+=this._input.substr(0,20-v.length)),(v.substr(0,20)+(v.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var v=this.pastInput(),C=new Array(v.length+1).join("-");return v+this.upcomingInput()+`
|
|
227
|
+
`+C+"^"},test_match:function(v,C){var A,E,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),E=v[0].match(/(?:\r\n?|\n).*/g),E&&(this.yylineno+=E.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:E?E[E.length-1].length-E[E.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+v[0].length},this.yytext+=v[0],this.match+=v[0],this.matches=v,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(v[0].length),this.matched+=v[0],A=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),A)return A;if(this._backtrack){for(var B in b)this[B]=b[B];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var v,C,A,E;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),B=0;B<b.length;B++)if(A=this._input.match(this.rules[b[B]]),A&&(!C||A[0].length>C[0].length)){if(C=A,E=B,this.options.backtrack_lexer){if(v=this.test_match(A,b[B]),v!==!1)return v;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(v=this.test_match(C,b[E]),v!==!1?v:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
228
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var C=this.next();return C||this.lex()},begin:function(C){this.conditionStack.push(C)},popState:function(){var C=this.conditionStack.length-1;return C>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},pushState:function(C){this.begin(C)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(C,A,E,b){switch(E){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return A.yytext=A.yytext.substr(1,A.yyleng-2),32;case 11:return A.yytext=A.yytext.substr(1,A.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return p}();l.lexer=d;function g(){this.yy={}}return g.prototype=l,l.Parser=g,new g}();typeof n<"u"&&typeof o<"u"&&(o.parser=u,o.Parser=u.Parser,o.parse=function(){return u.parse.apply(u,arguments)},o.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),a.exit(1));var d=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return o.parser.parse(d)},typeof i<"u"&&n.main===i&&o.main(a.argv.slice(1)))}).call(this,n("_process"))},{_process:14,fs:12,path:13}],2:[function(n,i,o){i.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(n,i,o){var a=n("./dict"),u=n("fs"),l={lex:{macros:{esc:"\\\\",int:a.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[a.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[a.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[a.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};u.readFileSync&&(l.moduleInclude=u.readFileSync(n.resolve("../include/module.js")),l.actionInclude=u.readFileSync(n.resolve("../include/action.js"))),i.exports=l},{"./dict":2,fs:12}],4:[function(n,i,o){var a=n("./aesprim"),u=n("./slice"),l=n("static-eval"),f=n("underscore").uniq,d=function(){return this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.traverse=C(!0),this.descend=C()},d.prototype.keys=Object.keys,d.prototype.resolve=function(_){var k=[_.operation,_.scope,_.expression.type].join("-"),F=this._fns[k];if(!F)throw new Error("couldn't resolve key: "+k);return F.bind(this)},d.prototype.register=function(_,k){if(!k instanceof Function)throw new Error("handler must be a function");this._fns[_]=k},d.prototype._fns={"member-child-identifier":function(_,k){var F=_.expression.value,R=k.value;if(R instanceof Object&&F in R)return[{value:R[F],path:k.path.concat(F)}]},"member-descendant-identifier":E(function(_,k,F){return _==F}),"subscript-child-numeric_literal":A(function(_,k,F){return _===F}),"member-child-numeric_literal":A(function(_,k,F){return String(_)===String(F)}),"subscript-descendant-numeric_literal":E(function(_,k,F){return _===F}),"member-child-wildcard":A(function(){return!0}),"member-descendant-wildcard":E(function(){return!0}),"subscript-descendant-wildcard":E(function(){return!0}),"subscript-child-wildcard":A(function(){return!0}),"subscript-child-slice":function(_,k){if(p(k.value)){var F=_.expression.value.split(":").map(N),R=k.value.map(function(O,W){return{value:O,path:k.path.concat(W)}});return u.apply(null,[R].concat(F))}},"subscript-child-union":function(_,k){var F=[];return _.expression.value.forEach(function(R){var O={operation:"subscript",scope:"child",expression:R.expression},W=this.resolve(O),J=W(O,k);J&&(F=F.concat(J))},this),B(F)},"subscript-descendant-union":function(_,k,F){var R=n(".."),O=this,W=[],J=R.nodes(k,"$..*").slice(1);return J.forEach(function(le){W.length>=F||_.expression.value.forEach(function(ce){var ge={operation:"subscript",scope:"child",expression:ce.expression},ye=O.resolve(ge),he=ye(ge,le);W=W.concat(he)})}),B(W)},"subscript-child-filter_expression":function(_,k,F){var R=_.expression.value.slice(2,-1),O=a.parse(R).body[0].expression,W=function(J,le){return b(O,{"@":le})};return this.descend(k,null,W,F)},"subscript-descendant-filter_expression":function(_,k,F){var R=_.expression.value.slice(2,-1),O=a.parse(R).body[0].expression,W=function(J,le){return b(O,{"@":le})};return this.traverse(k,null,W,F)},"subscript-child-script_expression":function(_,k){var F=_.expression.value.slice(1,-1);return g(k,F,"$[{{value}}]")},"member-child-script_expression":function(_,k){var F=_.expression.value.slice(1,-1);return g(k,F,"$.{{value}}")},"member-descendant-script_expression":function(_,k){var F=_.expression.value.slice(1,-1);return g(k,F,"$..value")}},d.prototype._fns["subscript-child-string_literal"]=d.prototype._fns["member-child-identifier"],d.prototype._fns["member-descendant-numeric_literal"]=d.prototype._fns["subscript-descendant-string_literal"]=d.prototype._fns["member-descendant-identifier"];function g(_,k,F){var R=n("./index"),O=a.parse(k).body[0].expression,W=b(O,{"@":_.value}),J=F.replace(/\{\{\s*value\s*\}\}/g,W),le=R.nodes(_.value,J);return le.forEach(function(ce){ce.path=_.path.concat(ce.path.slice(1))}),le}function p(_){return Array.isArray(_)}function v(_){return _&&!(_ instanceof Array)&&_ instanceof Object}function C(_){return function(k,F,R,O){var W=k.value,J=k.path,le=[],ce=function(ge,ye){p(ge)?(ge.forEach(function(he,me){le.length>=O||R(me,he,F)&&le.push({path:ye.concat(me),value:he})}),ge.forEach(function(he,me){le.length>=O||_&&ce(he,ye.concat(me))})):v(ge)&&(this.keys(ge).forEach(function(he){le.length>=O||R(he,ge[he],F)&&le.push({path:ye.concat(he),value:ge[he]})}),this.keys(ge).forEach(function(he){le.length>=O||_&&ce(ge[he],ye.concat(he))}))}.bind(this);return ce(W,J),le}}function A(_){return function(k,F,R){return this.descend(F,k.expression.value,_,R)}}function E(_){return function(k,F,R){return this.traverse(F,k.expression.value,_,R)}}function b(){try{return l.apply(this,arguments)}catch{}}function B(_){return _=_.filter(function(k){return k}),f(_,function(k){return k.path.map(function(F){return String(F).replace("-","--")}).join("-")})}function N(_){var k=String(_);return k.match(/^-?[0-9]+$/)?parseInt(k):null}i.exports=d},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(n,i,o){var a=n("assert"),u=n("./dict"),l=n("./parser"),f=n("./handlers"),d=function(){this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.parser=new l,this.handlers=new f},d.prototype.parse=function(v){return a.ok(g(v),"we need a path"),this.parser.parse(v)},d.prototype.parent=function(v,C){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var A=this.nodes(v,C)[0];return A.path.pop(),this.value(v,A.path)},d.prototype.apply=function(v,C,A){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),a.equal(typeof A,"function","fn needs to be function");var E=this.nodes(v,C).sort(function(b,B){return B.path.length-b.path.length});return E.forEach(function(b){var B=b.path.pop(),N=this.value(v,this.stringify(b.path)),_=b.value=A.call(v,N[B]);N[B]=_},this),E},d.prototype.value=function(v,C,A){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),arguments.length>=3){var E=this.nodes(v,C).shift();if(!E)return this._vivify(v,C,A);var b=E.path.slice(-1).shift(),B=this.parent(v,this.stringify(E.path));B[b]=A}return this.query(v,this.stringify(C),1).shift()},d.prototype._vivify=function(v,C,A){var E=this;a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var b=this.parser.parse(C).map(function(N){return N.expression.value}),B=function(N,_){var k=N.pop(),F=E.value(v,N);F||(B(N.concat(),typeof k=="string"?{}:[]),F=E.value(v,N)),F[k]=_};return B(b,A),this.query(v,C)[0]},d.prototype.query=function(v,C,A){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(g(C),"we need a path");var E=this.nodes(v,C,A).map(function(b){return b.value});return E},d.prototype.paths=function(v,C,A){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var E=this.nodes(v,C,A).map(function(b){return b.path});return E},d.prototype.nodes=function(v,C,A){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),A===0)return[];var E=this.parser.parse(C),b=this.handlers,B=[{path:["$"],value:v}],N=[];return E.length&&E[0].expression.type=="root"&&E.shift(),E.length?(E.forEach(function(_,k){if(!(N.length>=A)){var F=b.resolve(_),R=[];B.forEach(function(O){if(!(N.length>=A)){var W=F(_,O,A);k==E.length-1?N=N.concat(W||[]):R=R.concat(W||[])}}),B=R}}),A?N.slice(0,A):N):B},d.prototype.stringify=function(v){a.ok(v,"we need a path");var C="$",A={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return v=this._normalize(v),v.forEach(function(E){if(E.expression.type!="root"){var b=[E.scope,E.operation].join("-"),B=A[b],N;if(E.expression.type=="string_literal"?N=JSON.stringify(E.expression.value):N=E.expression.value,!B)throw new Error("couldn't find template "+b);C+=B.replace(/{{value}}/,N)}}),C},d.prototype._normalize=function(v){if(a.ok(v,"we need a path"),typeof v=="string")return this.parser.parse(v);if(Array.isArray(v)&&typeof v[0]=="string"){var C=[{expression:{type:"root",value:"$"}}];return v.forEach(function(A,E){if(!(A=="$"&&E===0))if(typeof A=="string"&&A.match("^"+u.identifier+"$"))C.push({operation:"member",scope:"child",expression:{value:A,type:"identifier"}});else{var b=typeof A=="number"?"numeric_literal":"string_literal";C.push({operation:"subscript",scope:"child",expression:{value:A,type:b}})}}),C}else if(Array.isArray(v)&&typeof v[0]=="object")return v;throw new Error("couldn't understand path "+v)};function g(v){return Object.prototype.toString.call(v)=="[object String]"}d.Handlers=f,d.Parser=l;var p=new d;p.JSONPath=d,i.exports=p},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(n,i,o){var a=n("./grammar"),u=n("../generated/parser"),l=function(){var f=new u.Parser,d=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),d.apply(f,arguments)},f};l.grammar=a,i.exports=l},{"../generated/parser":1,"./grammar":3}],7:[function(n,i,o){i.exports=function(u,l,f,d){if(typeof l=="string")throw new Error("start cannot be a string");if(typeof f=="string")throw new Error("end cannot be a string");if(typeof d=="string")throw new Error("step cannot be a string");var g=u.length;if(d===0)throw new Error("step cannot be zero");if(d=d?a(d):1,l=l<0?g+l:l,f=f<0?g+f:f,l=a(l===0?0:l||(d>0?0:g-1)),f=a(f===0?0:f||(d>0?g:-1)),l=d>0?Math.max(0,l):Math.min(g,l),f=d>0?Math.min(f,g):Math.max(-1,f),d>0&&f<=l)return[];if(d<0&&l<=f)return[];for(var p=[],v=l;v!=f&&!(d<0&&v<=f||d>0&&v>=f);v+=d)p.push(u[v]);return p};function a(u){return String(u).match(/^[0-9]+$/)?parseInt(u):Number.isFinite(u)?parseInt(u,10):0}},{}],8:[function(n,i,o){var a=n("util/"),u=Array.prototype.slice,l=Object.prototype.hasOwnProperty,f=i.exports=C;f.AssertionError=function(F){this.name="AssertionError",this.actual=F.actual,this.expected=F.expected,this.operator=F.operator,F.message?(this.message=F.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var R=F.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,R);else{var O=new Error;if(O.stack){var W=O.stack,J=R.name,le=W.indexOf(`
|
|
229
|
+
`+J);if(le>=0){var ce=W.indexOf(`
|
|
230
|
+
`,le+1);W=W.substring(ce+1)}this.stack=W}}},a.inherits(f.AssertionError,Error);function d(k,F){return a.isUndefined(F)?""+F:a.isNumber(F)&&!isFinite(F)||a.isFunction(F)||a.isRegExp(F)?F.toString():F}function g(k,F){return a.isString(k)?k.length<F?k:k.slice(0,F):k}function p(k){return g(JSON.stringify(k.actual,d),128)+" "+k.operator+" "+g(JSON.stringify(k.expected,d),128)}function v(k,F,R,O,W){throw new f.AssertionError({message:R,actual:k,expected:F,operator:O,stackStartFunction:W})}f.fail=v;function C(k,F){k||v(k,!0,F,"==",f.ok)}f.ok=C,f.equal=function(F,R,O){F!=R&&v(F,R,O,"==",f.equal)},f.notEqual=function(F,R,O){F==R&&v(F,R,O,"!=",f.notEqual)},f.deepEqual=function(F,R,O){A(F,R)||v(F,R,O,"deepEqual",f.deepEqual)};function A(k,F){if(k===F)return!0;if(a.isBuffer(k)&&a.isBuffer(F)){if(k.length!=F.length)return!1;for(var R=0;R<k.length;R++)if(k[R]!==F[R])return!1;return!0}else return a.isDate(k)&&a.isDate(F)?k.getTime()===F.getTime():a.isRegExp(k)&&a.isRegExp(F)?k.source===F.source&&k.global===F.global&&k.multiline===F.multiline&&k.lastIndex===F.lastIndex&&k.ignoreCase===F.ignoreCase:!a.isObject(k)&&!a.isObject(F)?k==F:b(k,F)}function E(k){return Object.prototype.toString.call(k)=="[object Arguments]"}function b(k,F){if(a.isNullOrUndefined(k)||a.isNullOrUndefined(F)||k.prototype!==F.prototype)return!1;if(a.isPrimitive(k)||a.isPrimitive(F))return k===F;var R=E(k),O=E(F);if(R&&!O||!R&&O)return!1;if(R)return k=u.call(k),F=u.call(F),A(k,F);var W=_(k),J=_(F),le,ce;if(W.length!=J.length)return!1;for(W.sort(),J.sort(),ce=W.length-1;ce>=0;ce--)if(W[ce]!=J[ce])return!1;for(ce=W.length-1;ce>=0;ce--)if(le=W[ce],!A(k[le],F[le]))return!1;return!0}f.notDeepEqual=function(F,R,O){A(F,R)&&v(F,R,O,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(F,R,O){F!==R&&v(F,R,O,"===",f.strictEqual)},f.notStrictEqual=function(F,R,O){F===R&&v(F,R,O,"!==",f.notStrictEqual)};function B(k,F){return!k||!F?!1:Object.prototype.toString.call(F)=="[object RegExp]"?F.test(k):k instanceof F?!0:F.call({},k)===!0}function N(k,F,R,O){var W;a.isString(R)&&(O=R,R=null);try{F()}catch(J){W=J}if(O=(R&&R.name?" ("+R.name+").":".")+(O?" "+O:"."),k&&!W&&v(W,R,"Missing expected exception"+O),!k&&B(W,R)&&v(W,R,"Got unwanted exception"+O),k&&W&&R&&!B(W,R)||!k&&W)throw W}f.throws=function(k,F,R){N.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(k,F){N.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(k){if(k)throw k};var _=Object.keys||function(k){var F=[];for(var R in k)l.call(k,R)&&F.push(R);return F}},{"util/":11}],9:[function(n,i,o){typeof Object.create=="function"?i.exports=function(u,l){u.super_=l,u.prototype=Object.create(l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(u,l){u.super_=l;var f=function(){};f.prototype=l.prototype,u.prototype=new f,u.prototype.constructor=u}},{}],10:[function(n,i,o){i.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],11:[function(n,i,o){(function(a,u){var l=/%[sdj%]/g;o.format=function(Y){if(!J(Y)){for(var Q=[],ue=0;ue<arguments.length;ue++)Q.push(g(arguments[ue]));return Q.join(" ")}for(var ue=1,De=arguments,Ye=De.length,Te=String(Y).replace(l,function(Oe){if(Oe==="%%")return"%";if(ue>=Ye)return Oe;switch(Oe){case"%s":return String(De[ue++]);case"%d":return Number(De[ue++]);case"%j":try{return JSON.stringify(De[ue++])}catch{return"[Circular]"}default:return Oe}}),Re=De[ue];ue<Ye;Re=De[++ue])R(Re)||!ye(Re)?Te+=" "+Re:Te+=" "+g(Re);return Te},o.deprecate=function(Y,Q){if(ce(u.process))return function(){return o.deprecate(Y,Q).apply(this,arguments)};if(a.noDeprecation===!0)return Y;var ue=!1;function De(){if(!ue){if(a.throwDeprecation)throw new Error(Q);a.traceDeprecation?console.trace(Q):console.error(Q),ue=!0}return Y.apply(this,arguments)}return De};var f={},d;o.debuglog=function(Y){if(ce(d)&&(d=a.env.NODE_DEBUG||""),Y=Y.toUpperCase(),!f[Y])if(new RegExp("\\b"+Y+"\\b","i").test(d)){var Q=a.pid;f[Y]=function(){var ue=o.format.apply(o,arguments);console.error("%s %d: %s",Y,Q,ue)}}else f[Y]=function(){};return f[Y]};function g(Y,Q){var ue={seen:[],stylize:v};return arguments.length>=3&&(ue.depth=arguments[2]),arguments.length>=4&&(ue.colors=arguments[3]),F(Q)?ue.showHidden=Q:Q&&o._extend(ue,Q),ce(ue.showHidden)&&(ue.showHidden=!1),ce(ue.depth)&&(ue.depth=2),ce(ue.colors)&&(ue.colors=!1),ce(ue.customInspect)&&(ue.customInspect=!0),ue.colors&&(ue.stylize=p),A(ue,Y,ue.depth)}o.inspect=g,g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(Y,Q){var ue=g.styles[Q];return ue?"\x1B["+g.colors[ue][0]+"m"+Y+"\x1B["+g.colors[ue][1]+"m":Y}function v(Y,Q){return Y}function C(Y){var Q={};return Y.forEach(function(ue,De){Q[ue]=!0}),Q}function A(Y,Q,ue){if(Y.customInspect&&Q&&Le(Q.inspect)&&Q.inspect!==o.inspect&&!(Q.constructor&&Q.constructor.prototype===Q)){var De=Q.inspect(ue,Y);return J(De)||(De=A(Y,De,ue)),De}var Ye=E(Y,Q);if(Ye)return Ye;var Te=Object.keys(Q),Re=C(Te);if(Y.showHidden&&(Te=Object.getOwnPropertyNames(Q)),me(Q)&&(Te.indexOf("message")>=0||Te.indexOf("description")>=0))return b(Q);if(Te.length===0){if(Le(Q)){var Oe=Q.name?": "+Q.name:"";return Y.stylize("[Function"+Oe+"]","special")}if(ge(Q))return Y.stylize(RegExp.prototype.toString.call(Q),"regexp");if(he(Q))return Y.stylize(Date.prototype.toString.call(Q),"date");if(me(Q))return b(Q)}var Ne="",kt=!1,nn=["{","}"];if(k(Q)&&(kt=!0,nn=["[","]"]),Le(Q)){var Lt=Q.name?": "+Q.name:"";Ne=" [Function"+Lt+"]"}if(ge(Q)&&(Ne=" "+RegExp.prototype.toString.call(Q)),he(Q)&&(Ne=" "+Date.prototype.toUTCString.call(Q)),me(Q)&&(Ne=" "+b(Q)),Te.length===0&&(!kt||Q.length==0))return nn[0]+Ne+nn[1];if(ue<0)return ge(Q)?Y.stylize(RegExp.prototype.toString.call(Q),"regexp"):Y.stylize("[Object]","special");Y.seen.push(Q);var Pt;return kt?Pt=B(Y,Q,ue,Re,Te):Pt=Te.map(function(Nt){return N(Y,Q,ue,Re,Nt,kt)}),Y.seen.pop(),_(Pt,Ne,nn)}function E(Y,Q){if(ce(Q))return Y.stylize("undefined","undefined");if(J(Q)){var ue="'"+JSON.stringify(Q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Y.stylize(ue,"string")}if(W(Q))return Y.stylize(""+Q,"number");if(F(Q))return Y.stylize(""+Q,"boolean");if(R(Q))return Y.stylize("null","null")}function b(Y){return"["+Error.prototype.toString.call(Y)+"]"}function B(Y,Q,ue,De,Ye){for(var Te=[],Re=0,Oe=Q.length;Re<Oe;++Re)We(Q,String(Re))?Te.push(N(Y,Q,ue,De,String(Re),!0)):Te.push("");return Ye.forEach(function(Ne){Ne.match(/^\d+$/)||Te.push(N(Y,Q,ue,De,Ne,!0))}),Te}function N(Y,Q,ue,De,Ye,Te){var Re,Oe,Ne;if(Ne=Object.getOwnPropertyDescriptor(Q,Ye)||{value:Q[Ye]},Ne.get?Ne.set?Oe=Y.stylize("[Getter/Setter]","special"):Oe=Y.stylize("[Getter]","special"):Ne.set&&(Oe=Y.stylize("[Setter]","special")),We(De,Ye)||(Re="["+Ye+"]"),Oe||(Y.seen.indexOf(Ne.value)<0?(R(ue)?Oe=A(Y,Ne.value,null):Oe=A(Y,Ne.value,ue-1),Oe.indexOf(`
|
|
231
|
+
`)>-1&&(Te?Oe=Oe.split(`
|
|
232
|
+
`).map(function(kt){return" "+kt}).join(`
|
|
233
|
+
`).substr(2):Oe=`
|
|
234
|
+
`+Oe.split(`
|
|
235
|
+
`).map(function(kt){return" "+kt}).join(`
|
|
236
|
+
`))):Oe=Y.stylize("[Circular]","special")),ce(Re)){if(Te&&Ye.match(/^\d+$/))return Oe;Re=JSON.stringify(""+Ye),Re.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Re=Re.substr(1,Re.length-2),Re=Y.stylize(Re,"name")):(Re=Re.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Re=Y.stylize(Re,"string"))}return Re+": "+Oe}function _(Y,Q,ue){var De=Y.reduce(function(Ye,Te){return Te.indexOf(`
|
|
237
|
+
`)>=0,Ye+Te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return De>60?ue[0]+(Q===""?"":Q+`
|
|
238
|
+
`)+" "+Y.join(`,
|
|
239
|
+
`)+" "+ue[1]:ue[0]+Q+" "+Y.join(", ")+" "+ue[1]}function k(Y){return Array.isArray(Y)}o.isArray=k;function F(Y){return typeof Y=="boolean"}o.isBoolean=F;function R(Y){return Y===null}o.isNull=R;function O(Y){return Y==null}o.isNullOrUndefined=O;function W(Y){return typeof Y=="number"}o.isNumber=W;function J(Y){return typeof Y=="string"}o.isString=J;function le(Y){return typeof Y=="symbol"}o.isSymbol=le;function ce(Y){return Y===void 0}o.isUndefined=ce;function ge(Y){return ye(Y)&&xe(Y)==="[object RegExp]"}o.isRegExp=ge;function ye(Y){return typeof Y=="object"&&Y!==null}o.isObject=ye;function he(Y){return ye(Y)&&xe(Y)==="[object Date]"}o.isDate=he;function me(Y){return ye(Y)&&(xe(Y)==="[object Error]"||Y instanceof Error)}o.isError=me;function Le(Y){return typeof Y=="function"}o.isFunction=Le;function ke(Y){return Y===null||typeof Y=="boolean"||typeof Y=="number"||typeof Y=="string"||typeof Y=="symbol"||typeof Y>"u"}o.isPrimitive=ke,o.isBuffer=n("./support/isBuffer");function xe(Y){return Object.prototype.toString.call(Y)}function tt(Y){return Y<10?"0"+Y.toString(10):Y.toString(10)}var Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Se(){var Y=new Date,Q=[tt(Y.getHours()),tt(Y.getMinutes()),tt(Y.getSeconds())].join(":");return[Y.getDate(),Ae[Y.getMonth()],Q].join(" ")}o.log=function(){console.log("%s - %s",Se(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(Y,Q){if(!Q||!ye(Q))return Y;for(var ue=Object.keys(Q),De=ue.length;De--;)Y[ue[De]]=Q[ue[De]];return Y};function We(Y,Q){return Object.prototype.hasOwnProperty.call(Y,Q)}}).call(this,n("_process"),typeof Xn<"u"?Xn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,o){},{}],13:[function(n,i,o){(function(a){function u(g,p){for(var v=0,C=g.length-1;C>=0;C--){var A=g[C];A==="."?g.splice(C,1):A===".."?(g.splice(C,1),v++):v&&(g.splice(C,1),v--)}if(p)for(;v--;v)g.unshift("..");return g}o.resolve=function(){for(var g="",p=!1,v=arguments.length-1;v>=-1&&!p;v--){var C=v>=0?arguments[v]:a.cwd();if(typeof C!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!C)continue;g=C+"/"+g,p=C.charAt(0)==="/"}return g=u(f(g.split("/"),function(A){return!!A}),!p).join("/"),(p?"/":"")+g||"."},o.normalize=function(g){var p=o.isAbsolute(g),v=d(g,-1)==="/";return g=u(f(g.split("/"),function(C){return!!C}),!p).join("/"),!g&&!p&&(g="."),g&&v&&(g+="/"),(p?"/":"")+g},o.isAbsolute=function(g){return g.charAt(0)==="/"},o.join=function(){var g=Array.prototype.slice.call(arguments,0);return o.normalize(f(g,function(p,v){if(typeof p!="string")throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},o.relative=function(g,p){g=o.resolve(g).substr(1),p=o.resolve(p).substr(1);function v(_){for(var k=0;k<_.length&&_[k]==="";k++);for(var F=_.length-1;F>=0&&_[F]==="";F--);return k>F?[]:_.slice(k,F-k+1)}for(var C=v(g.split("/")),A=v(p.split("/")),E=Math.min(C.length,A.length),b=E,B=0;B<E;B++)if(C[B]!==A[B]){b=B;break}for(var N=[],B=b;B<C.length;B++)N.push("..");return N=N.concat(A.slice(b)),N.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var p=g.charCodeAt(0),v=p===47,C=-1,A=!0,E=g.length-1;E>=1;--E)if(p=g.charCodeAt(E),p===47){if(!A){C=E;break}}else A=!1;return C===-1?v?"/":".":v&&C===1?"/":g.slice(0,C)};function l(g){typeof g!="string"&&(g=g+"");var p=0,v=-1,C=!0,A;for(A=g.length-1;A>=0;--A)if(g.charCodeAt(A)===47){if(!C){p=A+1;break}}else v===-1&&(C=!1,v=A+1);return v===-1?"":g.slice(p,v)}o.basename=function(g,p){var v=l(g);return p&&v.substr(-1*p.length)===p&&(v=v.substr(0,v.length-p.length)),v},o.extname=function(g){typeof g!="string"&&(g=g+"");for(var p=-1,v=0,C=-1,A=!0,E=0,b=g.length-1;b>=0;--b){var B=g.charCodeAt(b);if(B===47){if(!A){v=b+1;break}continue}C===-1&&(A=!1,C=b+1),B===46?p===-1?p=b:E!==1&&(E=1):p!==-1&&(E=-1)}return p===-1||C===-1||E===0||E===1&&p===C-1&&p===v+1?"":g.slice(p,C)};function f(g,p){if(g.filter)return g.filter(p);for(var v=[],C=0;C<g.length;C++)p(g[C],C,g)&&v.push(g[C]);return v}var d="ab".substr(-1)==="b"?function(g,p,v){return g.substr(p,v)}:function(g,p,v){return p<0&&(p=g.length+p),g.substr(p,v)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,o){var a=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=d}catch{l=d}})();function g(k){if(u===setTimeout)return setTimeout(k,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(k,0);try{return u(k,0)}catch{try{return u.call(null,k,0)}catch{return u.call(this,k,0)}}}function p(k){if(l===clearTimeout)return clearTimeout(k);if((l===d||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(k);try{return l(k)}catch{try{return l.call(null,k)}catch{return l.call(this,k)}}}var v=[],C=!1,A,E=-1;function b(){!C||!A||(C=!1,A.length?v=A.concat(v):E=-1,v.length&&B())}function B(){if(!C){var k=g(b);C=!0;for(var F=v.length;F;){for(A=v,v=[];++E<F;)A&&A[E].run();E=-1,F=v.length}A=null,C=!1,p(k)}}a.nextTick=function(k){var F=new Array(arguments.length-1);if(arguments.length>1)for(var R=1;R<arguments.length;R++)F[R-1]=arguments[R];v.push(new N(k,F)),v.length===1&&!C&&g(B)};function N(k,F){this.fun=k,this.array=F}N.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function _(){}a.on=_,a.addListener=_,a.once=_,a.off=_,a.removeListener=_,a.removeAllListeners=_,a.emit=_,a.prependListener=_,a.prependOnceListener=_,a.listeners=function(k){return[]},a.binding=function(k){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(k){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(n,i,o){var a=n("escodegen").generate;i.exports=function(u,l){l||(l={});var f={},d=function g(p,v){if(p.type==="Literal")return p.value;if(p.type==="UnaryExpression"){var C=g(p.argument);return p.operator==="+"?+C:p.operator==="-"?-C:p.operator==="~"?~C:p.operator==="!"?!C:f}else if(p.type==="ArrayExpression"){for(var A=[],E=0,b=p.elements.length;E<b;E++){var B=g(p.elements[E]);if(B===f)return f;A.push(B)}return A}else if(p.type==="ObjectExpression"){for(var N={},E=0;E<p.properties.length;E++){var _=p.properties[E],k=_.value===null?_.value:g(_.value);if(k===f)return f;N[_.key.value||_.key.name]=k}return N}else if(p.type==="BinaryExpression"||p.type==="LogicalExpression"){var b=g(p.left);if(b===f)return f;var F=g(p.right);if(F===f)return f;var R=p.operator;return R==="=="?b==F:R==="==="?b===F:R==="!="?b!=F:R==="!=="?b!==F:R==="+"?b+F:R==="-"?b-F:R==="*"?b*F:R==="/"?b/F:R==="%"?b%F:R==="<"?b<F:R==="<="?b<=F:R===">"?b>F:R===">="?b>=F:R==="|"?b|F:R==="&"?b&F:R==="^"?b^F:R==="&&"?b&&F:R==="||"?b||F:f}else{if(p.type==="Identifier")return{}.hasOwnProperty.call(l,p.name)?l[p.name]:f;if(p.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(p.type==="CallExpression"){var O=g(p.callee);if(O===f||typeof O!="function")return f;var W=p.callee.object?g(p.callee.object):f;W===f&&(W=null);for(var J=[],E=0,b=p.arguments.length;E<b;E++){var B=g(p.arguments[E]);if(B===f)return f;J.push(B)}return O.apply(W,J)}else if(p.type==="MemberExpression"){var N=g(p.object);if(N===f||typeof N=="function")return f;if(p.property.type==="Identifier")return N[p.property.name];var _=g(p.property);return _===f?f:N[_]}else if(p.type==="ConditionalExpression"){var C=g(p.test);return C===f?f:g(C?p.consequent:p.alternate)}else if(p.type==="ExpressionStatement"){var C=g(p.expression);return C===f?f:C}else{if(p.type==="ReturnStatement")return g(p.argument);if(p.type==="FunctionExpression"){var le=p.body.body,ce={};Object.keys(l).forEach(function(Ae){ce[Ae]=l[Ae]});for(var E=0;E<p.params.length;E++){var ge=p.params[E];if(ge.type=="Identifier")l[ge.name]=null;else return f}for(var E in le)if(g(le[E])===f)return f;l=ce;var ye=Object.keys(l),he=ye.map(function(Ae){return l[Ae]});return Function(ye.join(", "),"return "+a(p)).apply(null,he)}else if(p.type==="TemplateLiteral"){for(var me="",E=0;E<p.expressions.length;E++)me+=g(p.quasis[E]),me+=g(p.expressions[E]);return me+=g(p.quasis[E]),me}else if(p.type==="TaggedTemplateExpression"){var Le=g(p.tag),ke=p.quasi,xe=ke.quasis.map(g),tt=ke.expressions.map(g);return Le.apply(null,[xe].concat(tt))}else return p.type==="TemplateElement"?p.value.cooked:f}}}(u);return d===f?void 0:d}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(Jh);var s2=Jh.exports;const Yh=Su(s2),Xh=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let d="";f.includes("[")&&(d=JSON.stringify(f),o.push({dataIndex:d,jsonPath:f}));const g=f.split(".").slice(1);return{title:l,dataIndex:d||g,key:l}}):t&&(a=[...Object.keys(t).map(l=>({title:l,dataIndex:l,key:l}))]);let u;return i?(u=e.map(l=>{if(typeof l=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,syntheticProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l,internalDataForControls:f}}return{key:JSON.stringify(l),...l}}return{}}),o.length>0&&(u=u.map(l=>{const f={};return o.forEach(({dataIndex:d,jsonPath:g})=>{const p=Yh.query(l,`$${g}`);f[d]=Array.isArray(p)&&p.length===1?p[0]:p}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&!Array.isArray(l)&&l.spec&&typeof l.spec=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,synthetichProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l.spec,internalDataForControls:f}}return{key:JSON.stringify(l.spec),...l.spec}}return{}}),{dataSource:u,columns:a}},o2=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:v})=>{if(!i&&!a)return null;const{dataSource:C,columns:A}=Xh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return S.jsx(Gh,{theme:e,baseprefix:t,dataSource:C,columns:A,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:v})};var a2="Expected a function",Qh=NaN,u2="[object Symbol]",c2=/^\s+|\s+$/g,l2=/^[-+]0x[0-9a-f]+$/i,f2=/^0b[01]+$/i,h2=/^0o[0-7]+$/i,d2=parseInt,p2=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,g2=typeof self=="object"&&self&&self.Object===Object&&self,y2=p2||g2||Function("return this")(),m2=Object.prototype,w2=m2.toString,b2=Math.max,v2=Math.min,rc=function(){return y2.Date.now()};function S2(e,t,n){var i,o,a,u,l,f,d=0,g=!1,p=!1,v=!0;if(typeof e!="function")throw new TypeError(a2);t=Zh(t)||0,ic(n)&&(g=!!n.leading,p="maxWait"in n,a=p?b2(Zh(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function C(R){var O=i,W=o;return i=o=void 0,d=R,u=e.apply(W,O),u}function A(R){return d=R,l=setTimeout(B,t),g?C(R):u}function E(R){var O=R-f,W=R-d,J=t-O;return p?v2(J,a-W):J}function b(R){var O=R-f,W=R-d;return f===void 0||O>=t||O<0||p&&W>=a}function B(){var R=rc();if(b(R))return N(R);l=setTimeout(B,E(R))}function N(R){return l=void 0,v&&i?C(R):(i=o=void 0,u)}function _(){l!==void 0&&clearTimeout(l),d=0,i=f=o=l=void 0}function k(){return l===void 0?u:N(rc())}function F(){var R=rc(),O=b(R);if(i=arguments,o=this,f=R,O){if(l===void 0)return A(f);if(p)return l=setTimeout(B,t),C(f)}return l===void 0&&(l=setTimeout(B,t)),u}return F.cancel=_,F.flush=k,F}function ic(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function A2(e){return!!e&&typeof e=="object"}function E2(e){return typeof e=="symbol"||A2(e)&&w2.call(e)==u2}function Zh(e){if(typeof e=="number")return e;if(E2(e))return Qh;if(ic(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ic(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(c2,"");var n=f2.test(e);return n||h2.test(e)?d2(e.slice(2),n?2:8):l2.test(e)?Qh:+e}var x2=S2;const ed=Su(x2);function C2(e){const t=Z.useRef(e);t.current=e,Z.useEffect(()=>()=>{t.current()},[])}function _2(e,t=500,n){const i=Z.useRef();C2(()=>{i.current&&i.current.cancel()});const o=Z.useMemo(()=>{const a=ed(e,t,n),u=(...l)=>a(...l);return u.cancel=()=>{a.cancel()},u.isPending=()=>!!i.current,u.flush=()=>a.flush(),u},[e,t,n]);return Z.useEffect(()=>{i.current=ed(e,t,n)},[e,t,n]),o}const td=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return Ue.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},Hr=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>bn.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await td({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),sc=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase()),na=(e,t,n=[])=>{const i=(a,u)=>a.length!==u.length?!1:a.every((l,f)=>l===u[f]),o=a=>t.some(u=>i(a,Array.isArray(u)?u:[u]));return typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(a=>{const u=[...n,a];if(typeof e[a]=="object"&&!Array.isArray(e[a])&&e[a]!==null)na(e[a],t,u),Object.keys(e[a]).length===0&&!o(u)&&delete e[a];else{const l=(typeof e[a]=="string"||Array.isArray(e[a]))&&e[a].length===0,f=e[a]===void 0;(l||f)&&!o(u)&&delete e[a]}}),e},Ps=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeNameBecauseOfSuddenBug"&&(e.nodeName=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&Ps(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>Ps(t))),e),oc=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeName"&&(e.nodeNameBecauseOfSuddenBug=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&oc(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>oc(t))),e);function Ns(e,t){const n=10**t;return Math.floor(e*n)/n}const k2=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Ns(n,1);if(t.endsWith("m"))n/=1e3;else if(t.endsWith("k"))n/=1e6;else if(t.endsWith("M"))n/=1e3;else if(t.endsWith("G"))n/=1;else if(t.endsWith("T"))n*=1e3;else if(t.endsWith("Ki"))n/=1024,n/=1e6;else if(t.endsWith("Mi"))n/=1e3,n/=1e3;else if(/^\d+(\.\d+)?$/.test(t))n/=1e9;else throw new Error("Invalid value");return Ns(n,1)},ac=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Ns(t,1)}return 0},uc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));if(e.endsWith("k"))t/=1e6;else if(e.endsWith("m"))t/=1e3;else if(e.endsWith("M"))t/=1e3;else if(e.endsWith("G"))t/=1;else if(e.endsWith("T"))t*=1e3;else if(e.endsWith("P"))t*=1e6;else if(e.endsWith("E"))t*=1e9;else if(e.endsWith("Ki"))t*=1024/1e9;else if(e.endsWith("Mi"))t/=1048.576;else if(e.endsWith("Gi"))t*=1.073741824;else if(e.endsWith("Ti"))t*=1.099511628;else if(e.endsWith("Pi"))t*=1.125899907;else if(e.endsWith("Ei"))t*=1.152921505;else throw new Error("Invalid value");return Ns(t,1)}return 0},js=(e,t,n,i=[])=>{let o=[];if(typeof e!="object"||e===null)return o;e[t]===n&&o.push([...i]);for(const a in e)if(e.hasOwnProperty(a)){const u=e[a];if(typeof u=="object"&&u!==null){const l=[...i,a],f=js(u,t,n,l);o=o.concat(f)}}return o},cc=(e,t)=>{const n=Ut.cloneDeep(e),i=js(t,"type","rangeInputCpu");return js(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=Ut.get(n,u);(l||l===0)&&Ut.set(n,u,`${l}G`)}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=Ut.get(n,u);(l||l===0)&&Ut.set(n,u,`${parseFloat(l)}`)}),n},nd=(e,t)=>{const n=Ut.cloneDeep(e),i=js(t,"type","rangeInputCpu");return js(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=Ut.get(n,u);(l||l===0)&&Ut.set(n,u,uc(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=Ut.get(n,u);(l||l===0)&&Ut.set(n,u,ac(l))}),n},lc=(e,t=[])=>(Array.isArray(e)?e.map((i,o)=>[o,i]):Object.entries(e)).flatMap(([i,o])=>{const a=[...t,i];return typeof o=="object"&&o!==null?[a,...lc(o,a)]:[a]}),rd=e=>e.map((t,n)=>e.slice(0,n+1));function T2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?id(Object(n),!0).forEach(function(i){T2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function I2(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function O2(e,t){if(e==null)return{};var n=I2(e,t),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function F2(e,t){return B2(e)||D2(e,t)||R2(e,t)||L2()}function B2(e){if(Array.isArray(e))return e}function D2(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],i=!0,o=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(i=(l=u.next()).done)&&(n.push(l.value),!(t&&n.length===t));i=!0);}catch(f){o=!0,a=f}finally{try{!i&&u.return!=null&&u.return()}finally{if(o)throw a}}return n}}function R2(e,t){if(e){if(typeof e=="string")return od(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return od(e,t)}}function od(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function L2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
240
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ad(Object(n),!0).forEach(function(i){P2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function N2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.reduceRight(function(o,a){return a(o)},i)}}function $s(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function ra(e){return{}.toString.call(e).includes("Object")}function j2(e){return!Object.keys(e).length}function Ms(e){return typeof e=="function"}function $2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function M2(e,t){return ra(t)||Kr("changeType"),Object.keys(t).some(function(n){return!$2(e,n)})&&Kr("changeField"),t}function U2(e){Ms(e)||Kr("selectorType")}function V2(e){Ms(e)||ra(e)||Kr("handlerType"),ra(e)&&Object.values(e).some(function(t){return!Ms(t)})&&Kr("handlersType")}function q2(e){e||Kr("initialIsRequired"),ra(e)||Kr("initialType"),j2(e)&&Kr("initialContent")}function W2(e,t){throw new Error(e[t]||e.default)}var H2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Kr=$s(W2)(H2),ia={changes:M2,selector:U2,handler:V2,initial:q2};function K2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ia.initial(e),ia.handler(t);var n={current:e},i=$s(J2)(n,t),o=$s(G2)(n),a=$s(ia.changes)(e),u=$s(z2)(n);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return ia.selector(d),d(n.current)}function f(d){N2(i,o,a,u)(d)}return[l,f]}function z2(e,t){return Ms(t)?t(e.current):t}function G2(e,t){return e.current=ud(ud({},e.current),t),t}function J2(e,t,n){return Ms(t)?t(e.current):Object.keys(n).forEach(function(i){var o;return(o=t[i])===null||o===void 0?void 0:o.call(t,e.current[i])}),n}var Y2={create:K2},X2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Q2(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function Z2(e){return{}.toString.call(e).includes("Object")}function ew(e){return e||ld("configIsRequired"),Z2(e)||ld("configType"),e.urls?(tw(),{paths:{vs:e.urls.monacoBase}}):e}function tw(){console.warn(cd.deprecation)}function nw(e,t){throw new Error(e[t]||e.default)}var cd={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
241
|
+
You are using deprecated way of configuration.
|
|
242
|
+
|
|
243
|
+
Instead of using
|
|
244
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
245
|
+
use
|
|
246
|
+
monaco.config({ paths: { vs: '...' } })
|
|
247
|
+
|
|
248
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
249
|
+
`},ld=Q2(nw)(cd),rw={config:ew},iw=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(o){return n.reduceRight(function(a,u){return u(a)},o)}};function fd(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],fd(e[n],t[n]))}),sd(sd({},e),t)}var sw={type:"cancelation",msg:"operation is manually canceled"};function fc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(sw):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var ow=Y2.create({config:X2,isInitialized:!1,resolve:null,reject:null,monaco:null}),hd=F2(ow,2),Us=hd[0],sa=hd[1];function aw(e){var t=rw.config(e),n=t.monaco,i=O2(t,["monaco"]);sa(function(o){return{config:fd(o.config,i),monaco:n}})}function uw(){var e=Us(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(sa({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),fc(hc);if(window.monaco&&window.monaco.editor)return dd(window.monaco),e.resolve(window.monaco),fc(hc);iw(cw,fw)(hw)}return fc(hc)}function cw(e){return document.body.appendChild(e)}function lw(e){var t=document.createElement("script");return e&&(t.src=e),t}function fw(e){var t=Us(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=lw("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function hw(){var e=Us(function(n){var i=n.config,o=n.resolve,a=n.reject;return{config:i,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){dd(n),e.resolve(n)},function(n){e.reject(n)})}function dd(e){Us().monaco||sa({monaco:e})}function dw(){return Us(function(e){var t=e.monaco;return t})}var hc=new Promise(function(e,t){return sa({resolve:e,reject:t})}),Vs={config:aw,init:uw,__getMonacoInstance:dw},pw={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},dc=pw,gw={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},yw=gw;function mw({children:e}){return Z.createElement("div",{style:yw.container},e)}var ww=mw,bw=ww;function vw({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Z.createElement("section",{style:{...dc.wrapper,width:e,height:t},...u},!n&&Z.createElement(bw,null,i),Z.createElement("div",{ref:o,style:{...dc.fullWidth,...!n&&dc.hide},className:a}))}var Sw=vw,pd=Z.memo(Sw);function Aw(e){Z.useEffect(e,[])}var pc=Aw;function Ew(e,t,n=!0){let i=Z.useRef(!0);Z.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=Ew;function qs(){}function Gi(e,t,n,i){return xw(e,i)||Cw(e,t,n,i)}function xw(e,t){return e.editor.getModel(gd(e,t))}function Cw(e,t,n,i){return e.editor.createModel(t,n,i?gd(e,i):void 0)}function gd(e,t){return e.Uri.parse(t)}function _w({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:d="light",loading:g="Loading...",options:p={},height:v="100%",width:C="100%",className:A,wrapperProps:E={},beforeMount:b=qs,onMount:B=qs}){let[N,_]=Z.useState(!1),[k,F]=Z.useState(!0),R=Z.useRef(null),O=Z.useRef(null),W=Z.useRef(null),J=Z.useRef(B),le=Z.useRef(b),ce=Z.useRef(!1);pc(()=>{let me=Vs.init();return me.then(Le=>(O.current=Le)&&F(!1)).catch(Le=>Le?.type!=="cancelation"&&console.error("Monaco initialization: error:",Le)),()=>R.current?he():me.cancel()}),_n(()=>{if(R.current&&O.current){let me=R.current.getOriginalEditor(),Le=Gi(O.current,e||"",i||n||"text",a||"");Le!==me.getModel()&&me.setModel(Le)}},[a],N),_n(()=>{if(R.current&&O.current){let me=R.current.getModifiedEditor(),Le=Gi(O.current,t||"",o||n||"text",u||"");Le!==me.getModel()&&me.setModel(Le)}},[u],N),_n(()=>{let me=R.current.getModifiedEditor();me.getOption(O.current.editor.EditorOption.readOnly)?me.setValue(t||""):t!==me.getValue()&&(me.executeEdits("",[{range:me.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),me.pushUndoStop())},[t],N),_n(()=>{R.current?.getModel()?.original.setValue(e||"")},[e],N),_n(()=>{let{original:me,modified:Le}=R.current.getModel();O.current.editor.setModelLanguage(me,i||n||"text"),O.current.editor.setModelLanguage(Le,o||n||"text")},[n,i,o],N),_n(()=>{O.current?.editor.setTheme(d)},[d],N),_n(()=>{R.current?.updateOptions(p)},[p],N);let ge=Z.useCallback(()=>{if(!O.current)return;le.current(O.current);let me=Gi(O.current,e||"",i||n||"text",a||""),Le=Gi(O.current,t||"",o||n||"text",u||"");R.current?.setModel({original:me,modified:Le})},[n,t,o,e,i,a,u]),ye=Z.useCallback(()=>{!ce.current&&W.current&&(R.current=O.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...p}),ge(),O.current?.editor.setTheme(d),_(!0),ce.current=!0)},[p,d,ge]);Z.useEffect(()=>{N&&J.current(R.current,O.current)},[N]),Z.useEffect(()=>{!k&&!N&&ye()},[k,N,ye]);function he(){let me=R.current?.getModel();l||me?.original?.dispose(),f||me?.modified?.dispose(),R.current?.dispose()}return Z.createElement(pd,{width:C,height:v,isEditorReady:N,loading:g,_ref:W,className:A,wrapperProps:E})}var kw=_w,Tw=Z.memo(kw);function Iw(){let[e,t]=Z.useState(Vs.__getMonacoInstance());return pc(()=>{let n;return e||(n=Vs.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var Ow=Iw;function Fw(e){let t=Z.useRef();return Z.useEffect(()=>{t.current=e},[e]),t.current}var Bw=Fw,oa=new Map;function Dw({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:d={},overrideServices:g={},saveViewState:p=!0,keepCurrentModel:v=!1,width:C="100%",height:A="100%",className:E,wrapperProps:b={},beforeMount:B=qs,onMount:N=qs,onChange:_,onValidate:k=qs}){let[F,R]=Z.useState(!1),[O,W]=Z.useState(!0),J=Z.useRef(null),le=Z.useRef(null),ce=Z.useRef(null),ge=Z.useRef(N),ye=Z.useRef(B),he=Z.useRef(),me=Z.useRef(i),Le=Bw(a),ke=Z.useRef(!1),xe=Z.useRef(!1);pc(()=>{let Se=Vs.init();return Se.then(We=>(J.current=We)&&W(!1)).catch(We=>We?.type!=="cancelation"&&console.error("Monaco initialization: error:",We)),()=>le.current?Ae():Se.cancel()}),_n(()=>{let Se=Gi(J.current,e||i||"",t||o||"",a||n||"");Se!==le.current?.getModel()&&(p&&oa.set(Le,le.current?.saveViewState()),le.current?.setModel(Se),p&&le.current?.restoreViewState(oa.get(a)))},[a],F),_n(()=>{le.current?.updateOptions(d)},[d],F),_n(()=>{!le.current||i===void 0||(le.current.getOption(J.current.editor.EditorOption.readOnly)?le.current.setValue(i):i!==le.current.getValue()&&(xe.current=!0,le.current.executeEdits("",[{range:le.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),le.current.pushUndoStop(),xe.current=!1))},[i],F),_n(()=>{let Se=le.current?.getModel();Se&&o&&J.current?.editor.setModelLanguage(Se,o)},[o],F),_n(()=>{l!==void 0&&le.current?.revealLine(l)},[l],F),_n(()=>{J.current?.editor.setTheme(u)},[u],F);let tt=Z.useCallback(()=>{if(!(!ce.current||!J.current)&&!ke.current){ye.current(J.current);let Se=a||n,We=Gi(J.current,i||e||"",t||o||"",Se||"");le.current=J.current?.editor.create(ce.current,{model:We,automaticLayout:!0,...d},g),p&&le.current.restoreViewState(oa.get(Se)),J.current.editor.setTheme(u),l!==void 0&&le.current.revealLine(l),R(!0),ke.current=!0}},[e,t,n,i,o,a,d,g,p,u,l]);Z.useEffect(()=>{F&&ge.current(le.current,J.current)},[F]),Z.useEffect(()=>{!O&&!F&&tt()},[O,F,tt]),me.current=i,Z.useEffect(()=>{F&&_&&(he.current?.dispose(),he.current=le.current?.onDidChangeModelContent(Se=>{xe.current||_(le.current.getValue(),Se)}))},[F,_]),Z.useEffect(()=>{if(F){let Se=J.current.editor.onDidChangeMarkers(We=>{let Y=le.current.getModel()?.uri;if(Y&&We.find(Q=>Q.path===Y.path)){let Q=J.current.editor.getModelMarkers({resource:Y});k?.(Q)}});return()=>{Se?.dispose()}}return()=>{}},[F,k]);function Ae(){he.current?.dispose(),v?p&&oa.set(a,le.current.saveViewState()):le.current.getModel()?.dispose(),le.current.dispose()}return Z.createElement(pd,{width:C,height:A,isEditorReady:F,loading:f,_ref:ce,className:E,wrapperProps:b})}var Rw=Dw,yd=Z.memo(Rw),gc=yd;const Lw=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Tw,Editor:yd,default:gc,loader:Vs,useMonaco:Ow},Symbol.toStringTag,{value:"Module"})),yc=Symbol.for("yaml.alias"),mc=Symbol.for("yaml.document"),zr=Symbol.for("yaml.map"),md=Symbol.for("yaml.pair"),yr=Symbol.for("yaml.scalar"),Ji=Symbol.for("yaml.seq"),Mn=Symbol.for("yaml.node.type"),Yi=e=>!!e&&typeof e=="object"&&e[Mn]===yc,Ws=e=>!!e&&typeof e=="object"&&e[Mn]===mc,Hs=e=>!!e&&typeof e=="object"&&e[Mn]===zr,Vt=e=>!!e&&typeof e=="object"&&e[Mn]===md,_t=e=>!!e&&typeof e=="object"&&e[Mn]===yr,Ks=e=>!!e&&typeof e=="object"&&e[Mn]===Ji;function qt(e){if(e&&typeof e=="object")switch(e[Mn]){case zr:case Ji:return!0}return!1}function Wt(e){if(e&&typeof e=="object")switch(e[Mn]){case yc:case zr:case yr:case Ji:return!0}return!1}const Pw=e=>(_t(e)||qt(e))&&!!e.anchor,gi=Symbol("break visit"),Nw=Symbol("skip children"),zs=Symbol("remove node");function yi(e,t){const n=jw(t);Ws(e)?Xi(null,e.contents,n,Object.freeze([e]))===zs&&(e.contents=null):Xi(null,e,n,Object.freeze([]))}yi.BREAK=gi,yi.SKIP=Nw,yi.REMOVE=zs;function Xi(e,t,n,i){const o=$w(e,t,n,i);if(Wt(o)||Vt(o))return Mw(e,i,o),Xi(e,o,n,i);if(typeof o!="symbol"){if(qt(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Xi(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===gi)return gi;u===zs&&(t.items.splice(a,1),a-=1)}}}else if(Vt(t)){i=Object.freeze(i.concat(t));const a=Xi("key",t.key,n,i);if(a===gi)return gi;a===zs&&(t.key=null);const u=Xi("value",t.value,n,i);if(u===gi)return gi;u===zs&&(t.value=null)}}return o}function jw(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function $w(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Hs(t))return n.Map?.(e,t,i);if(Ks(t))return n.Seq?.(e,t,i);if(Vt(t))return n.Pair?.(e,t,i);if(_t(t))return n.Scalar?.(e,t,i);if(Yi(t))return n.Alias?.(e,t,i)}function Mw(e,t,n){const i=t[t.length-1];if(qt(i))i.items[e]=n;else if(Vt(i))e==="key"?i.key=n:i.value=n;else if(Ws(i))i.contents=n;else{const o=Yi(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Uw={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Vw=e=>e.replace(/[!,[\]{}]/g,t=>Uw[t]);class hn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},hn.defaultYaml,t),this.tags=Object.assign({},hn.defaultTags,n)}clone(){const t=new hn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new hn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:hn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},hn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:hn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},hn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),o=i.shift();switch(o){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[a,u]=i;return this.tags[a]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[a]=i;if(a==="1.1"||a==="1.2")return this.yaml.version=a,!0;{const u=/^\d+\.\d+$/.test(a);return n(6,`Unsupported YAML version ${a}`,u),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const u=t.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,i,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const a=this.tags[i];if(a)try{return a+decodeURIComponent(o)}catch(u){return n(String(u)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+Vw(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let o;if(t&&i.length>0&&Wt(t.contents)){const a={};yi(t.contents,(u,l)=>{Wt(l)&&l.tag&&(a[l.tag]=!0)}),o=Object.keys(a)}else o=[];for(const[a,u]of i)a==="!!"&&u==="tag:yaml.org,2002:"||(!t||o.some(l=>l.startsWith(u)))&&n.push(`%TAG ${a} ${u}`);return n.join(`
|
|
250
|
+
`)}}hn.defaultYaml={explicit:!1,version:"1.2"},hn.defaultTags={"!!":"tag:yaml.org,2002:"};function wd(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function bd(e){const t=new Set;return yi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function vd(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function qw(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=bd(e));const u=vd(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(_t(u.node)||qt(u.node)))u.node.anchor=u.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=a,l}}},sourceObjects:i}}function Qi(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0,a=i.length;o<a;++o){const u=i[o],l=Qi(e,i,String(o),u);l===void 0?delete i[o]:l!==u&&(i[o]=l)}else if(i instanceof Map)for(const o of Array.from(i.keys())){const a=i.get(o),u=Qi(e,i,o,a);u===void 0?i.delete(o):u!==a&&i.set(o,u)}else if(i instanceof Set)for(const o of Array.from(i)){const a=Qi(e,i,o,o);a===void 0?i.delete(o):a!==o&&(i.delete(o),i.add(a))}else for(const[o,a]of Object.entries(i)){const u=Qi(e,i,o,a);u===void 0?delete i[o]:u!==a&&(i[o]=u)}return e.call(t,n,i)}function Un(e,t,n){if(Array.isArray(e))return e.map((i,o)=>Un(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Pw(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=a=>{i.res=a,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class wc{constructor(t){Object.defineProperty(this,Mn,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:a}={}){if(!Ws(t))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Un(this,"",u);if(typeof o=="function")for(const{count:f,res:d}of u.anchors.values())o(d,f);return typeof a=="function"?Qi(a,{"":l},"",l):l}}class bc extends wc{constructor(t){super(yc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return yi(t,{Node:(i,o)=>{if(o===this)return yi.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:a}=n,u=this.resolve(o);if(!u){const f=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(f)}let l=i.get(u);if(l||(Un(u,null,n),l=i.get(u)),!l||l.res===void 0){const f="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(f)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=aa(o,u,i)),l.count*l.aliasCount>a)){const f="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(f)}return l.res}toString(t,n,i){const o=`*${this.source}`;if(t){if(wd(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${o} `}return o}}function aa(e,t,n){if(Yi(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(qt(t)){let i=0;for(const o of t.items){const a=aa(e,o,n);a>i&&(i=a)}return i}else if(Vt(t)){const i=aa(e,t.key,n),o=aa(e,t.value,n);return Math.max(i,o)}return 1}const Sd=e=>!e||typeof e!="function"&&typeof e!="object";class qe extends wc{constructor(t){super(yr),this.value=t}toJSON(t,n){return n?.keep?this.value:Un(this.value,t,n)}toString(){return String(this.value)}}qe.BLOCK_FOLDED="BLOCK_FOLDED",qe.BLOCK_LITERAL="BLOCK_LITERAL",qe.PLAIN="PLAIN",qe.QUOTE_DOUBLE="QUOTE_DOUBLE",qe.QUOTE_SINGLE="QUOTE_SINGLE";const Ww="tag:yaml.org,2002:";function Hw(e,t,n){if(t){const i=n.filter(a=>a.tag===t),o=i.find(a=>!a.format)??i[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(i=>i.identify?.(e)&&!i.format)}function Gs(e,t,n){if(Ws(e)&&(e=e.contents),Wt(e))return e;if(Vt(e)){const p=n.schema[zr].createNode?.(n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:a,schema:u,sourceObjects:l}=n;let f;if(i&&e&&typeof e=="object"){if(f=l.get(e),f)return f.anchor||(f.anchor=o(e)),new bc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Ww+t.slice(2));let d=Hw(e,t,u.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new qe(e);return f&&(f.node=p),p}d=e instanceof Map?u[zr]:Symbol.iterator in Object(e)?u[Ji]:u[zr]}a&&(a(d),delete n.onTagObj);const g=d?.createNode?d.createNode(n.schema,e,n):typeof d?.nodeClass?.from=="function"?d.nodeClass.from(n.schema,e,n):new qe(e);return t?g.tag=t:d.default||(g.tag=d.tag),f&&(f.node=g),g}function ua(e,t,n){let i=n;for(let o=t.length-1;o>=0;--o){const a=t[o];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const u=[];u[a]=i,i=u}else i=new Map([[a,i]])}return Gs(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Js=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Ad extends wc{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>Wt(i)||Vt(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Js(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(qt(a))a.addIn(o,n);else if(a===void 0&&this.schema)this.set(i,ua(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}deleteIn(t){const[n,...i]=t;if(i.length===0)return this.delete(n);const o=this.get(n,!0);if(qt(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,a=this.get(i,!0);return o.length===0?!n&&_t(a)?a.value:a:qt(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Vt(n))return!1;const i=n.value;return i==null||t&&_t(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return qt(o)?o.hasIn(i):!1}setIn(t,n){const[i,...o]=t;if(o.length===0)this.set(i,n);else{const a=this.get(i,!0);if(qt(a))a.setIn(o,n);else if(a===void 0&&this.schema)this.set(i,ua(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const Kw=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function _r(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const mi=(e,t,n)=>e.endsWith(`
|
|
251
|
+
`)?_r(n,t):n.includes(`
|
|
252
|
+
`)?`
|
|
253
|
+
`+_r(n,t):(e.endsWith(" ")?"":" ")+n,Ed="flow",vc="block",ca="quoted";function la(e,t,n="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:a=20,onFold:u,onOverflow:l}={}){if(!o||o<0)return e;o<a&&(a=0);const f=Math.max(1+a,1+o-t.length);if(e.length<=f)return e;const d=[],g={};let p=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?d.push(0):p=o-i);let v,C,A=!1,E=-1,b=-1,B=-1;n===vc&&(E=xd(e,E,t.length),E!==-1&&(p=E+f));for(let _;_=e[E+=1];){if(n===ca&&_==="\\"){switch(b=E,e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}B=E}if(_===`
|
|
254
|
+
`)n===vc&&(E=xd(e,E,t.length)),p=E+t.length+f,v=void 0;else{if(_===" "&&C&&C!==" "&&C!==`
|
|
255
|
+
`&&C!==" "){const k=e[E+1];k&&k!==" "&&k!==`
|
|
256
|
+
`&&k!==" "&&(v=E)}if(E>=p)if(v)d.push(v),p=v+f,v=void 0;else if(n===ca){for(;C===" "||C===" ";)C=_,_=e[E+=1],A=!0;const k=E>B+1?E-2:b-1;if(g[k])return e;d.push(k),g[k]=!0,p=k+f,v=void 0}else A=!0}C=_}if(A&&l&&l(),d.length===0)return e;u&&u();let N=e.slice(0,d[0]);for(let _=0;_<d.length;++_){const k=d[_],F=d[_+1]||e.length;k===0?N=`
|
|
257
|
+
${t}${e.slice(0,F)}`:(n===ca&&g[k]&&(N+=`${e[k]}\\`),N+=`
|
|
258
|
+
${t}${e.slice(k+1,F)}`)}return N}function xd(e,t,n){let i=t,o=t+1,a=e[o];for(;a===" "||a===" ";)if(t<o+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
|
|
259
|
+
`);i=t,o=t+1,a=e[o]}return i}const fa=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),ha=e=>/^(%|---|\.\.\.)/m.test(e);function zw(e,t,n){if(!t||t<0)return!1;const i=t-n,o=e.length;if(o<=i)return!1;for(let a=0,u=0;a<o;++a)if(e[a]===`
|
|
260
|
+
`){if(a-u>i)return!0;if(u=a+1,o-u<=i)return!1}return!0}function Ys(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:i}=t,o=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(ha(e)?" ":"");let u="",l=0;for(let f=0,d=n[f];d;d=n[++f])if(d===" "&&n[f+1]==="\\"&&n[f+2]==="n"&&(u+=n.slice(l,f)+"\\ ",f+=1,l=f,d="\\"),d==="\\")switch(n[f+1]){case"u":{u+=n.slice(l,f);const g=n.substr(f+2,4);switch(g){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:g.substr(0,2)==="00"?u+="\\x"+g.substr(2):u+=n.substr(f,6)}f+=5,l=f+1}break;case"n":if(i||n[f+2]==='"'||n.length<o)f+=1;else{for(u+=n.slice(l,f)+`
|
|
261
|
+
|
|
262
|
+
`;n[f+2]==="\\"&&n[f+3]==="n"&&n[f+4]!=='"';)u+=`
|
|
263
|
+
`,f+=2;u+=a,n[f+2]===" "&&(u+="\\"),f+=1,l=f+1}break;default:f+=1}return u=l?u+n.slice(l):n,i?u:la(u,a,ca,fa(t,!1))}function Sc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
264
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return Ys(e,t);const n=t.indent||(ha(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
265
|
+
${n}`)+"'";return t.implicitKey?i:la(i,n,Ed,fa(t,!1))}function Zi(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=Ys;else{const o=e.includes('"'),a=e.includes("'");o&&!a?i=Sc:a&&!o?i=Ys:i=n?Sc:Ys}return i(e,t)}let Ac;try{Ac=new RegExp(`(^|(?<!
|
|
266
|
+
))
|
|
267
|
+
+(?!
|
|
268
|
+
|$)`,"g")}catch{Ac=/\n+(?!\n|$)/g}function da({comment:e,type:t,value:n},i,o,a){const{blockQuote:u,commentString:l,lineWidth:f}=i.options;if(!u||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Zi(n,i);const d=i.indent||(i.forceBlockIndent||ha(n)?" ":""),g=u==="literal"?!0:u==="folded"||t===qe.BLOCK_FOLDED?!1:t===qe.BLOCK_LITERAL?!0:!zw(n,f,d.length);if(!n)return g?`|
|
|
269
|
+
`:`>
|
|
270
|
+
`;let p,v;for(v=n.length;v>0;--v){const F=n[v-1];if(F!==`
|
|
271
|
+
`&&F!==" "&&F!==" ")break}let C=n.substring(v);const A=C.indexOf(`
|
|
272
|
+
`);A===-1?p="-":n===C||A!==C.length-1?(p="+",a&&a()):p="",C&&(n=n.slice(0,-C.length),C[C.length-1]===`
|
|
273
|
+
`&&(C=C.slice(0,-1)),C=C.replace(Ac,`$&${d}`));let E=!1,b,B=-1;for(b=0;b<n.length;++b){const F=n[b];if(F===" ")E=!0;else if(F===`
|
|
274
|
+
`)B=b;else break}let N=n.substring(0,B<b?B+1:b);N&&(n=n.substring(N.length),N=N.replace(/\n+/g,`$&${d}`));let k=(E?d?"2":"1":"")+p;if(e&&(k+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!g){const F=n.replace(/\n+/g,`
|
|
275
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let R=!1;const O=fa(i,!0);u!=="folded"&&t!==qe.BLOCK_FOLDED&&(O.onOverflow=()=>{R=!0});const W=la(`${N}${F}${C}`,d,vc,O);if(!R)return`>${k}
|
|
276
|
+
${d}${W}`}return n=n.replace(/\n+/g,`$&${d}`),`|${k}
|
|
277
|
+
${d}${N}${n}${C}`}function Gw(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:d,inFlow:g}=t;if(l&&a.includes(`
|
|
278
|
+
`)||g&&/[[\]{},]/.test(a))return Zi(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||g||!a.includes(`
|
|
279
|
+
`)?Zi(a,t):da(e,t,n,i);if(!l&&!g&&o!==qe.PLAIN&&a.includes(`
|
|
280
|
+
`))return da(e,t,n,i);if(ha(a)){if(f==="")return t.forceBlockIndent=!0,da(e,t,n,i);if(l&&f===d)return Zi(a,t)}const p=a.replace(/\n+/g,`$&
|
|
281
|
+
${f}`);if(u){const v=E=>E.default&&E.tag!=="tag:yaml.org,2002:str"&&E.test?.test(p),{compat:C,tags:A}=t.doc.schema;if(A.some(v)||C?.some(v))return Zi(a,t)}return l?p:la(p,f,Ed,fa(t,!1))}function Ec(e,t,n,i){const{implicitKey:o,inFlow:a}=t,u=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==qe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=qe.QUOTE_DOUBLE);const f=g=>{switch(g){case qe.BLOCK_FOLDED:case qe.BLOCK_LITERAL:return o||a?Zi(u.value,t):da(u,t,n,i);case qe.QUOTE_DOUBLE:return Ys(u.value,t);case qe.QUOTE_SINGLE:return Sc(u.value,t);case qe.PLAIN:return Gw(u,t,n,i);default:return null}};let d=f(l);if(d===null){const{defaultKeyType:g,defaultStringType:p}=t.options,v=o&&g||p;if(d=f(v),d===null)throw new Error(`Unsupported default string type ${v}`)}return d}function Cd(e,t){const n=Object.assign({blockQuote:!0,commentString:Kw,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function Jw(e,t){if(t.tag){const o=e.filter(a=>a.tag===t.tag);if(o.length>0)return o.find(a=>a.format===t.format)??o[0]}let n,i;if(_t(t)){i=t.value;let o=e.filter(a=>a.identify?.(i));if(o.length>1){const a=o.filter(u=>u.test);a.length>0&&(o=a)}n=o.find(a=>a.format===t.format)??o.find(a=>!a.format)}else i=t,n=e.find(o=>o.nodeClass&&i instanceof o.nodeClass);if(!n){const o=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${o} value`)}return n}function Yw(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(_t(e)||qt(e))&&e.anchor;a&&wd(a)&&(n.add(a),o.push(`&${a}`));const u=e.tag?e.tag:t.default?null:t.tag;return u&&o.push(i.directives.tagString(u)),o.join(" ")}function es(e,t,n,i){if(Vt(e))return e.toString(t,n,i);if(Yi(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const a=Wt(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=Jw(t.doc.schema.tags,a));const u=Yw(a,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l=typeof o.stringify=="function"?o.stringify(a,t,n,i):_t(a)?Ec(a,t,n,i):a.toString(t,n,i);return u?_t(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
|
|
282
|
+
${t.indent}${l}`:l}function Xw({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:d,indentSeq:g,simpleKeys:p}}=n;let v=Wt(e)&&e.comment||null;if(p){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(qt(e)||!Wt(e)&&typeof e=="object"){const O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let C=!p&&(!e||v&&t==null&&!n.inFlow||qt(e)||(_t(e)?e.type===qe.BLOCK_FOLDED||e.type===qe.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!C&&(p||!a),indent:l+f});let A=!1,E=!1,b=es(e,n,()=>A=!0,()=>E=!0);if(!C&&!n.inFlow&&b.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");C=!0}if(n.inFlow){if(a||t==null)return A&&i&&i(),b===""?"?":C?`? ${b}`:b}else if(a&&!p||t==null&&C)return b=`? ${b}`,v&&!A?b+=mi(b,n.indent,d(v)):E&&o&&o(),b;A&&(v=null),C?(v&&(b+=mi(b,n.indent,d(v))),b=`? ${b}
|
|
283
|
+
${l}:`):(b=`${b}:`,v&&(b+=mi(b,n.indent,d(v))));let B,N,_;Wt(t)?(B=!!t.spaceBefore,N=t.commentBefore,_=t.comment):(B=!1,N=null,_=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!C&&!v&&_t(t)&&(n.indentAtStart=b.length+1),E=!1,!g&&f.length>=2&&!n.inFlow&&!C&&Ks(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let k=!1;const F=es(t,n,()=>k=!0,()=>E=!0);let R=" ";if(v||B||N){if(R=B?`
|
|
284
|
+
`:"",N){const O=d(N);R+=`
|
|
285
|
+
${_r(O,n.indent)}`}F===""&&!n.inFlow?R===`
|
|
286
|
+
`&&(R=`
|
|
287
|
+
|
|
288
|
+
`):R+=`
|
|
289
|
+
${n.indent}`}else if(!C&&qt(t)){const O=F[0],W=F.indexOf(`
|
|
290
|
+
`),J=W!==-1,le=n.inFlow??t.flow??t.items.length===0;if(J||!le){let ce=!1;if(J&&(O==="&"||O==="!")){let ge=F.indexOf(" ");O==="&"&&ge!==-1&&ge<W&&F[ge+1]==="!"&&(ge=F.indexOf(" ",ge+1)),(ge===-1||W<ge)&&(ce=!0)}ce||(R=`
|
|
291
|
+
${n.indent}`)}}else(F===""||F[0]===`
|
|
292
|
+
`)&&(R="");return b+=R+F,n.inFlow?k&&i&&i():_&&!k?b+=mi(b,n.indent,d(_)):E&&o&&o(),b}function _d(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const pa="<<",kr={identify:e=>e===pa||typeof e=="symbol"&&e.description===pa,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new qe(Symbol(pa)),{addToJSMap:kd}),stringify:()=>pa},Qw=(e,t)=>(kr.identify(t)||_t(t)&&(!t.type||t.type===qe.PLAIN)&&kr.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===kr.tag&&n.default);function kd(e,t,n){if(n=e&&Yi(n)?n.resolve(e.doc):n,Ks(n))for(const i of n.items)xc(e,t,i);else if(Array.isArray(n))for(const i of n)xc(e,t,i);else xc(e,t,n)}function xc(e,t,n){const i=e&&Yi(n)?n.resolve(e.doc):n;if(!Hs(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[a,u]of o)t instanceof Map?t.has(a)||t.set(a,u):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0});return t}function Td(e,t,{key:n,value:i}){if(Wt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Qw(e,n))kd(e,t,i);else{const o=Un(n,"",e);if(t instanceof Map)t.set(o,Un(i,o,e));else if(t instanceof Set)t.add(o);else{const a=Zw(n,o,e),u=Un(i,a,e);a in t?Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[a]=u}}return t}function Zw(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Wt(e)&&n?.doc){const i=Cd(n.doc,{});i.anchors=new Set;for(const a of n.anchors.keys())i.anchors.add(a.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!n.mapKeyWarned){let a=JSON.stringify(o);a.length>40&&(a=a.substring(0,36)+'..."'),_d(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Cc(e,t,n){const i=Gs(e,void 0,n),o=Gs(t,void 0,n);return new dn(i,o)}class dn{constructor(t,n=null){Object.defineProperty(this,Mn,{value:md}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return Wt(n)&&(n=n.clone(t)),Wt(i)&&(i=i.clone(t)),new dn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return Td(n,i,this)}toString(t,n,i){return t?.doc?Xw(this,t,n,i):JSON.stringify(this)}}function Id(e,t,n){return(t.inFlow??e.flow?tb:eb)(e,t,n)}function eb({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:d}}=n,g=Object.assign({},n,{indent:a,type:null});let p=!1;const v=[];for(let A=0;A<t.length;++A){const E=t[A];let b=null;if(Wt(E))!p&&E.spaceBefore&&v.push(""),ga(n,v,E.commentBefore,p),E.comment&&(b=E.comment);else if(Vt(E)){const N=Wt(E.key)?E.key:null;N&&(!p&&N.spaceBefore&&v.push(""),ga(n,v,N.commentBefore,p))}p=!1;let B=es(E,g,()=>b=null,()=>p=!0);b&&(B+=mi(B,a,d(b))),p&&b&&(p=!1),v.push(i+B)}let C;if(v.length===0)C=o.start+o.end;else{C=v[0];for(let A=1;A<v.length;++A){const E=v[A];C+=E?`
|
|
293
|
+
${f}${E}`:`
|
|
294
|
+
`}}return e?(C+=`
|
|
295
|
+
`+_r(d(e),f),l&&l()):p&&u&&u(),C}function tb({items:e},t,{flowChars:n,itemIndent:i}){const{indent:o,indentStep:a,flowCollectionPadding:u,options:{commentString:l}}=t;i+=a;const f=Object.assign({},t,{indent:i,inFlow:!0,type:null});let d=!1,g=0;const p=[];for(let A=0;A<e.length;++A){const E=e[A];let b=null;if(Wt(E))E.spaceBefore&&p.push(""),ga(t,p,E.commentBefore,!1),E.comment&&(b=E.comment);else if(Vt(E)){const N=Wt(E.key)?E.key:null;N&&(N.spaceBefore&&p.push(""),ga(t,p,N.commentBefore,!1),N.comment&&(d=!0));const _=Wt(E.value)?E.value:null;_?(_.comment&&(b=_.comment),_.commentBefore&&(d=!0)):E.value==null&&N?.comment&&(b=N.comment)}b&&(d=!0);let B=es(E,f,()=>b=null);A<e.length-1&&(B+=","),b&&(B+=mi(B,i,l(b))),!d&&(p.length>g||B.includes(`
|
|
296
|
+
`))&&(d=!0),p.push(B),g=p.length}const{start:v,end:C}=n;if(p.length===0)return v+C;if(!d){const A=p.reduce((E,b)=>E+b.length+2,2);d=t.options.lineWidth>0&&A>t.options.lineWidth}if(d){let A=v;for(const E of p)A+=E?`
|
|
297
|
+
${a}${o}${E}`:`
|
|
298
|
+
`;return`${A}
|
|
299
|
+
${o}${C}`}else return`${v}${u}${p.join(" ")}${u}${C}`}function ga({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=_r(t(i),e);n.push(a.trimStart())}}function wi(e,t){const n=_t(t)?t.value:t;for(const i of e)if(Vt(i)&&(i.key===t||i.key===n||_t(i.key)&&i.key.value===n))return i}class Vn extends Ad{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(zr,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:a}=i,u=new this(t),l=(f,d)=>{if(typeof a=="function")d=a.call(n,f,d);else if(Array.isArray(a)&&!a.includes(f))return;(d!==void 0||o)&&u.items.push(Cc(f,d,i))};if(n instanceof Map)for(const[f,d]of n)l(f,d);else if(n&&typeof n=="object")for(const f of Object.keys(n))l(f,n[f]);return typeof t.sortMapEntries=="function"&&u.items.sort(t.sortMapEntries),u}add(t,n){let i;Vt(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new dn(t,t?.value):i=new dn(t.key,t.value);const o=wi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);_t(o.value)&&Sd(i.value)?o.value.value=i.value:o.value=i.value}else if(a){const u=this.items.findIndex(l=>a(i,l)<0);u===-1?this.items.push(i):this.items.splice(u,0,i)}else this.items.push(i)}delete(t){const n=wi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=wi(this.items,t)?.value;return(!n&&_t(o)?o.value:o)??void 0}has(t){return!!wi(this.items,t)}set(t,n){this.add(new dn(t,n),!0)}toJSON(t,n,i){const o=i?new i:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const a of this.items)Td(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Vt(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Id(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const ts={collection:"map",default:!0,nodeClass:Vn,tag:"tag:yaml.org,2002:map",resolve(e,t){return Hs(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Vn.from(e,t,n)};class bi extends Ad{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Ji,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=ya(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=ya(t);if(typeof i!="number")return;const o=this.items[i];return!n&&_t(o)?o.value:o}has(t){const n=ya(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=ya(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];_t(o)&&Sd(n)?o.value=n:this.items[i]=n}toJSON(t,n){const i=[];n?.onCreate&&n.onCreate(i);let o=0;for(const a of this.items)i.push(Un(a,String(o++),n));return i}toString(t,n,i){return t?Id(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n)){let u=0;for(let l of n){if(typeof o=="function"){const f=n instanceof Set?l:String(u++);l=o.call(n,f,l)}a.items.push(Gs(l,void 0,i))}}return a}}function ya(e){let t=_t(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ns={collection:"seq",default:!0,nodeClass:bi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Ks(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>bi.from(e,t,n)},ma={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),Ec(e,t,n,i)}},wa={identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new qe(null),stringify:({source:e},t)=>typeof e=="string"&&wa.test.test(e)?e:t.options.nullStr},_c={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new qe(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&_c.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};function er({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);const o=typeof i=="number"?i:Number(i);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let a=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(a)){let u=a.indexOf(".");u<0&&(u=a.length,a+=".");let l=t-(a.length-u-1);for(;l-- >0;)a+="0"}return a}const Od={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:er},Fd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():er(e)}},Bd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new qe(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:er},ba=e=>typeof e=="bigint"||Number.isInteger(e),kc=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Dd(e,t,n){const{value:i}=e;return ba(i)&&i>=0?n+i.toString(t):er(e)}const Rd={identify:e=>ba(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>kc(e,2,8,n),stringify:e=>Dd(e,8,"0o")},Ld={identify:ba,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>kc(e,0,10,n),stringify:er},Pd={identify:e=>ba(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>kc(e,2,16,n),stringify:e=>Dd(e,16,"0x")},nb=[ts,ns,ma,wa,_c,Rd,Ld,Pd,Od,Fd,Bd];function Nd(e){return typeof e=="bigint"||Number.isInteger(e)}const va=({value:e})=>JSON.stringify(e),rb=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:va},{identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:va},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:va},{identify:Nd,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Nd(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:va}],ib={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},sb=[ts,ns].concat(rb,ib),Tc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,o,a){const u=n;let l;if(typeof btoa=="function"){let f="";for(let d=0;d<u.length;++d)f+=String.fromCharCode(u[d]);l=btoa(f)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=qe.BLOCK_LITERAL),t!==qe.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),d=Math.ceil(l.length/f),g=new Array(d);for(let p=0,v=0;p<d;++p,v+=f)g[p]=l.substr(v,f);l=g.join(t===qe.BLOCK_LITERAL?`
|
|
300
|
+
`:" ")}return Ec({comment:e,type:t,value:l},i,o,a)}};function jd(e,t){if(Ks(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Vt(i)){if(Hs(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new dn(new qe(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
|
|
301
|
+
${o.key.commentBefore}`:i.commentBefore),i.comment){const a=o.value??o.key;a.comment=a.comment?`${i.comment}
|
|
302
|
+
${a.comment}`:i.comment}i=o}e.items[n]=Vt(i)?i:new dn(i)}}else t("Expected a sequence for this tag");return e}function $d(e,t,n){const{replacer:i}=n,o=new bi(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let u of t){typeof i=="function"&&(u=i.call(t,String(a++),u));let l,f;if(Array.isArray(u))if(u.length===2)l=u[0],f=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const d=Object.keys(u);if(d.length===1)l=d[0],f=u[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=u;o.items.push(Cc(l,f,n))}return o}const Ic={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:jd,createNode:$d};class rs extends bi{constructor(){super(),this.add=Vn.prototype.add.bind(this),this.delete=Vn.prototype.delete.bind(this),this.get=Vn.prototype.get.bind(this),this.has=Vn.prototype.has.bind(this),this.set=Vn.prototype.set.bind(this),this.tag=rs.tag}toJSON(t,n){if(!n)return super.toJSON(t);const i=new Map;n?.onCreate&&n.onCreate(i);for(const o of this.items){let a,u;if(Vt(o)?(a=Un(o.key,"",n),u=Un(o.value,a,n)):a=Un(o,"",n),i.has(a))throw new Error("Ordered maps must not include duplicate keys");i.set(a,u)}return i}static from(t,n,i){const o=$d(t,n,i),a=new this;return a.items=o.items,a}}rs.tag="tag:yaml.org,2002:omap";const Oc={collection:"seq",identify:e=>e instanceof Map,nodeClass:rs,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=jd(e,t),i=[];for(const{key:o}of n.items)_t(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new rs,n)},createNode:(e,t,n)=>rs.from(e,t,n)};function Md({value:e,source:t},n){return t&&(e?Ud:Vd).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Ud={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new qe(!0),stringify:Md},Vd={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new qe(!1),stringify:Md},ob={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:er},ab={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():er(e)}},ub={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new qe(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:er},Xs=e=>typeof e=="bigint"||Number.isInteger(e);function Sa(e,t,n,{intAsBigInt:i}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const u=BigInt(e);return o==="-"?BigInt(-1)*u:u}const a=parseInt(e,n);return o==="-"?-1*a:a}function Fc(e,t,n){const{value:i}=e;if(Xs(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return er(e)}const cb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Sa(e,2,2,n),stringify:e=>Fc(e,2,"0b")},lb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Sa(e,1,8,n),stringify:e=>Fc(e,8,"0")},fb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Sa(e,0,10,n),stringify:er},hb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Sa(e,2,16,n),stringify:e=>Fc(e,16,"0x")};class is extends Vn{constructor(t){super(t),this.tag=is.tag}add(t){let n;Vt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new dn(t.key,null):n=new dn(t,null),wi(this.items,n.key)||this.items.push(n)}get(t,n){const i=wi(this.items,t);return!n&&Vt(i)?_t(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=wi(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new dn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let u of n)typeof o=="function"&&(u=o.call(n,u,u)),a.items.push(Cc(u,null,i));return a}}is.tag="tag:yaml.org,2002:set";const Bc={collection:"map",identify:e=>e instanceof Set,nodeClass:is,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>is.from(e,t,n),resolve(e,t){if(Hs(e)){if(e.hasAllNullValues(!0))return Object.assign(new is,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Dc(e,t){const n=e[0],i=n==="-"||n==="+"?e.substring(1):e,o=u=>t?BigInt(u):Number(u),a=i.replace(/_/g,"").split(":").reduce((u,l)=>u*o(60)+o(l),o(0));return n==="-"?o(-1)*a:a}function qd(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return er(e);let i="";t<0&&(i="-",t*=n(-1));const o=n(60),a=[t%o];return t<60?a.unshift(0):(t=(t-a[0])/o,a.unshift(t%o),t>=60&&(t=(t-a[0])/o,a.unshift(t))),i+a.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Wd={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Dc(e,n),stringify:qd},Hd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Dc(e,!1),stringify:qd},Aa={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Aa.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,a,u,l]=t.map(Number),f=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,i-1,o,a||0,u||0,l||0,f);const g=t[8];if(g&&g!=="Z"){let p=Dc(g,!1);Math.abs(p)<30&&(p*=60),d-=6e4*p}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},Kd=[ts,ns,ma,wa,Ud,Vd,cb,lb,fb,hb,ob,ab,ub,Tc,kr,Oc,Ic,Bc,Wd,Hd,Aa],zd=new Map([["core",nb],["failsafe",[ts,ns,ma]],["json",sb],["yaml11",Kd],["yaml-1.1",Kd]]),Gd={binary:Tc,bool:_c,float:Bd,floatExp:Fd,floatNaN:Od,floatTime:Hd,int:Ld,intHex:Pd,intOct:Rd,intTime:Wd,map:ts,merge:kr,null:wa,omap:Oc,pairs:Ic,seq:ns,set:Bc,timestamp:Aa},db={"tag:yaml.org,2002:binary":Tc,"tag:yaml.org,2002:merge":kr,"tag:yaml.org,2002:omap":Oc,"tag:yaml.org,2002:pairs":Ic,"tag:yaml.org,2002:set":Bc,"tag:yaml.org,2002:timestamp":Aa};function Rc(e,t,n){const i=zd.get(t);if(i&&!e)return n&&!i.includes(kr)?i.concat(kr):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(zd.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${a} or define customTags array`)}if(Array.isArray(e))for(const a of e)o=o.concat(a);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(kr)),o.reduce((a,u)=>{const l=typeof u=="string"?Gd[u]:u;if(!l){const f=JSON.stringify(u),d=Object.keys(Gd).map(g=>JSON.stringify(g)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${d}`)}return a.includes(l)||a.push(l),a},[])}const pb=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Lc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?Rc(t,"compat"):t?Rc(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?db:{},this.tags=Rc(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,zr,{value:ts}),Object.defineProperty(this,yr,{value:ma}),Object.defineProperty(this,Ji,{value:ns}),this.sortMapEntries=typeof u=="function"?u:u===!0?pb:null}clone(){const t=Object.create(Lc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function gb(e,t){const n=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const o=Cd(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(_r(f,""))}let u=!1,l=null;if(e.contents){if(Wt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const g=a(e.contents.commentBefore);n.push(_r(g,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let d=es(e.contents,o,()=>l=null,f);l&&(d+=mi(d,"",a(l))),(d[0]==="|"||d[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${d}`:n.push(d)}else n.push(es(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
|
|
303
|
+
`)?(n.push("..."),n.push(_r(f,""))):n.push(`... ${f}`)}else n.push("...");else{let f=e.comment;f&&u&&(f=f.replace(/^\n+/,"")),f&&((!u||l)&&n[n.length-1]!==""&&n.push(""),n.push(_r(a(f),"")))}return n.join(`
|
|
304
|
+
`)+`
|
|
305
|
+
`}class Qs{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mn,{value:mc});let o=null;typeof n=="function"||Array.isArray(n)?o=n:i===void 0&&n&&(i=n,n=void 0);const a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=a;let{version:u}=a;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new hn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(Qs.prototype,{[Mn]:{value:mc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Wt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){ss(this.contents)&&this.contents.add(t)}addIn(t,n){ss(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=bd(this);t.anchor=!n||i.has(n)?vd(n||"a",i):n}return new bc(t.anchor)}createNode(t,n,i){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const b=N=>typeof N=="number"||N instanceof String||N instanceof Number,B=n.filter(b).map(String);B.length>0&&(n=n.concat(B)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:d,tag:g}=i??{},{onAnchor:p,setAnchors:v,sourceObjects:C}=qw(this,u||"a"),A={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:p,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:C},E=Gs(t,g,A);return l&&qt(E)&&(E.flow=!0),v(),E}createPair(t,n,i={}){const o=this.createNode(t,null,i),a=this.createNode(n,null,i);return new dn(o,a)}delete(t){return ss(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Js(t)?this.contents==null?!1:(this.contents=null,!0):ss(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return qt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Js(t)?!n&&_t(this.contents)?this.contents.value:this.contents:qt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return qt(this.contents)?this.contents.has(t):!1}hasIn(t){return Js(t)?this.contents!==void 0:qt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ua(this.schema,[t],n):ss(this.contents)&&this.contents.set(t,n)}setIn(t,n){Js(t)?this.contents=n:this.contents==null?this.contents=ua(this.schema,Array.from(t),n):ss(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new hn({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new hn({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new Lc(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:o,onAnchor:a,reviver:u}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},f=Un(this.contents,n??"",l);if(typeof a=="function")for(const{count:d,res:g}of l.anchors.values())a(g,d);return typeof u=="function"?Qi(u,{"":f},"",f):f}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return gb(this,t)}}function ss(e){if(qt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Jd extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class Zs extends Jd{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class yb extends Jd{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const Yd=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:i,col:o}=n.linePos[0];n.message+=` at line ${i}, column ${o}`;let a=o-1,u=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(a>=60&&u.length>80){const l=Math.min(a-39,u.length-79);u="…"+u.substring(l),a-=l-1}if(u.length>80&&(u=u.substring(0,79)+"…"),i>1&&/^ *$/.test(u.substring(0,a))){let l=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);l.length>80&&(l=l.substring(0,79)+`…
|
|
306
|
+
`),u=l+u}if(/[^ ]/.test(u)){let l=1;const f=n.linePos[1];f&&f.line===i&&f.col>o&&(l=Math.max(1,Math.min(f.col-o,80-a)));const d=" ".repeat(a)+"^".repeat(l);n.message+=`:
|
|
307
|
+
|
|
308
|
+
${u}
|
|
309
|
+
${d}
|
|
310
|
+
`}};function os(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,d=l,g=l,p="",v="",C=!1,A=!1,E=null,b=null,B=null,N=null,_=null,k=null,F=null;for(const W of e)switch(A&&(W.type!=="space"&&W.type!=="newline"&&W.type!=="comma"&&a(W.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),A=!1),E&&(d&&W.type!=="comment"&&W.type!=="newline"&&a(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),E=null),W.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&W.source.includes(" ")&&(E=W),g=!0;break;case"comment":{g||a(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const J=W.source.substring(1)||" ";p?p+=v+J:p=J,v="",d=!1;break}case"newline":d?p?p+=W.source:(!k||n!=="seq-item-ind")&&(f=!0):v+=W.source,d=!0,C=!0,(b||B)&&(N=W),g=!0;break;case"anchor":b&&a(W,"MULTIPLE_ANCHORS","A node can have at most one anchor"),W.source.endsWith(":")&&a(W.offset+W.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=W,F===null&&(F=W.offset),d=!1,g=!1,A=!0;break;case"tag":{B&&a(W,"MULTIPLE_TAGS","A node can have at most one tag"),B=W,F===null&&(F=W.offset),d=!1,g=!1,A=!0;break}case n:(b||B)&&a(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),k&&a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),k=W,d=n==="seq-item-ind"||n==="explicit-key-ind",g=!1;break;case"comma":if(t){_&&a(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),_=W,d=!1,g=!1;break}default:a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),d=!1,g=!1}const R=e[e.length-1],O=R?R.offset+R.source.length:o;return A&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&a(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),E&&(d&&E.indent<=u||i?.type==="block-map"||i?.type==="block-seq")&&a(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:_,found:k,spaceBefore:f,comment:p,hasNewline:C,anchor:b,tag:B,newlineAfterProp:N,end:O,start:F??O}}function eo(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
311
|
+
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(eo(t.key)||eo(t.value))return!0}return!1;default:return!0}}function Pc(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&eo(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Xd(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||_t(a)&&_t(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const Qd="All mapping items must start at the same column";function mb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??Vn,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,d=null;for(const g of i.items){const{start:p,key:v,sep:C,value:A}=g,E=os(p,{indicator:"explicit-key-ind",next:v??C?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),b=!E.found;if(b){if(v&&(v.type==="block-seq"?o(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in v&&v.indent!==i.indent&&o(f,"BAD_INDENT",Qd)),!E.anchor&&!E.tag&&!C){d=E.end,E.comment&&(l.comment?l.comment+=`
|
|
312
|
+
`+E.comment:l.comment=E.comment);continue}(E.newlineAfterProp||eo(v))&&o(v??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else E.found?.indent!==i.indent&&o(f,"BAD_INDENT",Qd);n.atKey=!0;const B=E.end,N=v?e(n,v,E,o):t(n,B,p,null,E,o);n.schema.compat&&Pc(i.indent,v,o),n.atKey=!1,Xd(n,l.items,N)&&o(B,"DUPLICATE_KEY","Map keys must be unique");const _=os(C??[],{indicator:"map-value-ind",next:A,offset:N.range[2],onError:o,parentIndent:i.indent,startOnNewline:!v||v.type==="block-scalar"});if(f=_.end,_.found){b&&(A?.type==="block-map"&&!_.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&E.start<_.found.offset-1024&&o(N.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const k=A?e(n,A,_,o):t(n,f,C,null,_,o);n.schema.compat&&Pc(i.indent,A,o),f=k.range[2];const F=new dn(N,k);n.options.keepSourceTokens&&(F.srcToken=g),l.items.push(F)}else{b&&o(N.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),_.comment&&(N.comment?N.comment+=`
|
|
313
|
+
`+_.comment:N.comment=_.comment);const k=new dn(N);n.options.keepSourceTokens&&(k.srcToken=g),l.items.push(k)}}return d&&d<f&&o(d,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,d??f],l}function wb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??bi,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,d=null;for(const{start:g,value:p}of i.items){const v=os(g,{indicator:"seq-item-ind",next:p,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||p)p&&p.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{d=v.end,v.comment&&(l.comment=v.comment);continue}const C=p?e(n,p,v,o):t(n,v.end,g,null,v,o);n.schema.compat&&Pc(i.indent,p,o),f=C.range[2],l.items.push(C)}return l.range=[i.offset,f,d??f],l}function to(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:d}=l;switch(d){case"space":a=!0;break;case"comment":{n&&!a&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const g=f.substring(1)||" ";o?o+=u+g:o=g,u="";break}case"newline":o&&(u+=f),a=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=f.length}}return{comment:o,offset:t}}const Nc="Block collections are not allowed within flow collections",jc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function bb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?Vn:bi),d=new f(n.schema);d.flow=!0;const g=n.atRoot;g&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let p=i.offset+i.start.source.length;for(let b=0;b<i.items.length;++b){const B=i.items[b],{start:N,key:_,sep:k,value:F}=B,R=os(N,{flow:l,indicator:"explicit-key-ind",next:_??k?.[0],offset:p,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!R.found){if(!R.anchor&&!R.tag&&!k&&!F){b===0&&R.comma?o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):b<i.items.length-1&&o(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),R.comment&&(d.comment?d.comment+=`
|
|
314
|
+
`+R.comment:d.comment=R.comment),p=R.end;continue}!u&&n.options.strict&&eo(_)&&o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)R.comma&&o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(R.comma||o(R.start,"MISSING_CHAR",`Missing , between ${l} items`),R.comment){let O="";e:for(const W of N)switch(W.type){case"comma":case"space":break;case"comment":O=W.source.substring(1);break e;default:break e}if(O){let W=d.items[d.items.length-1];Vt(W)&&(W=W.value??W.key),W.comment?W.comment+=`
|
|
315
|
+
`+O:W.comment=O,R.comment=R.comment.substring(O.length+1)}}if(!u&&!k&&!R.found){const O=F?e(n,F,R,o):t(n,R.end,k,null,R,o);d.items.push(O),p=O.range[2],jc(F)&&o(O.range,"BLOCK_IN_FLOW",Nc)}else{n.atKey=!0;const O=R.end,W=_?e(n,_,R,o):t(n,O,N,null,R,o);jc(_)&&o(W.range,"BLOCK_IN_FLOW",Nc),n.atKey=!1;const J=os(k??[],{flow:l,indicator:"map-value-ind",next:F,offset:W.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(J.found){if(!u&&!R.found&&n.options.strict){if(k)for(const ge of k){if(ge===J.found)break;if(ge.type==="newline"){o(ge,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}R.start<J.found.offset-1024&&o(J.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else F&&("source"in F&&F.source&&F.source[0]===":"?o(F,"MISSING_CHAR",`Missing space after : in ${l}`):o(J.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const le=F?e(n,F,J,o):J.found?t(n,J.end,k,null,J,o):null;le?jc(F)&&o(le.range,"BLOCK_IN_FLOW",Nc):J.comment&&(W.comment?W.comment+=`
|
|
316
|
+
`+J.comment:W.comment=J.comment);const ce=new dn(W,le);if(n.options.keepSourceTokens&&(ce.srcToken=B),u){const ge=d;Xd(n,ge.items,W)&&o(O,"DUPLICATE_KEY","Map keys must be unique"),ge.items.push(ce)}else{const ge=new Vn(n.schema);ge.flow=!0,ge.items.push(ce);const ye=(le??W).range;ge.range=[W.range[0],ye[1],ye[2]],d.items.push(ge)}p=le?le.range[2]:J.end}}const v=u?"}":"]",[C,...A]=i.end;let E=p;if(C&&C.source===v)E=C.offset+C.source.length;else{const b=l[0].toUpperCase()+l.substring(1),B=g?`${b} must end with a ${v}`:`${b} in block collection must be sufficiently indented and end with a ${v}`;o(p,g?"MISSING_CHAR":"BAD_INDENT",B),C&&C.source.length!==1&&A.unshift(C)}if(A.length>0){const b=to(A,E,n.options.strict,o);b.comment&&(d.comment?d.comment+=`
|
|
317
|
+
`+b.comment:d.comment=b.comment),d.range=[i.offset,E,b.offset]}else d.range=[i.offset,E,E];return d}function $c(e,t,n,i,o,a){const u=n.type==="block-map"?mb(e,t,n,i,a):n.type==="block-seq"?wb(e,t,n,i,a):bb(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function vb(e,t,n,i,o){const a=i.tag,u=a?t.directives.tagName(a.source,v=>o(a,"TAG_RESOLVE_FAILED",v)):null;if(n.type==="block-seq"){const{anchor:v,newlineAfterProp:C}=i,A=v&&a?v.offset>a.offset?v:a:v??a;A&&(!C||C.offset<A.offset)&&o(A,"MISSING_CHAR","Missing newline after block sequence props")}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===Vn.tagName&&l==="map"||u===bi.tagName&&l==="seq")return $c(e,t,n,o,u);let f=t.schema.tags.find(v=>v.tag===u&&v.collection===l);if(!f){const v=t.schema.knownTags[u];if(v&&v.collection===l)t.schema.tags.push(Object.assign({},v,{default:!1})),f=v;else return v?.collection?o(a,"BAD_COLLECTION_TYPE",`${v.tag} used for ${l} collection, but expects ${v.collection}`,!0):o(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),$c(e,t,n,o,u)}const d=$c(e,t,n,o,u,f),g=f.resolve?.(d,v=>o(a,"TAG_RESOLVE_FAILED",v),t.options)??d,p=Wt(g)?g:new qe(g);return p.range=d.range,p.tag=u,f?.format&&(p.format=f.format),p}function Sb(e,t,n){const i=t.offset,o=Ab(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const a=o.mode===">"?qe.BLOCK_FOLDED:qe.BLOCK_LITERAL,u=t.source?Eb(t.source):[];let l=u.length;for(let E=u.length-1;E>=0;--E){const b=u[E][1];if(b===""||b==="\r")l=E;else break}if(l===0){const E=o.chomp==="+"&&u.length>0?`
|
|
318
|
+
`.repeat(Math.max(1,u.length-1)):"";let b=i+o.length;return t.source&&(b+=t.source.length),{value:E,type:a,comment:o.comment,range:[i,b,b]}}let f=t.indent+o.indent,d=t.offset+o.length,g=0;for(let E=0;E<l;++E){const[b,B]=u[E];if(B===""||B==="\r")o.indent===0&&b.length>f&&(f=b.length);else{b.length<f&&n(d+b.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(f=b.length),g=E,f===0&&!e.atRoot&&n(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=b.length+B.length+1}for(let E=u.length-1;E>=l;--E)u[E][0].length>f&&(l=E+1);let p="",v="",C=!1;for(let E=0;E<g;++E)p+=u[E][0].slice(f)+`
|
|
319
|
+
`;for(let E=g;E<l;++E){let[b,B]=u[E];d+=b.length+B.length+1;const N=B[B.length-1]==="\r";if(N&&(B=B.slice(0,-1)),B&&b.length<f){const k=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-B.length-(N?2:1),"BAD_INDENT",k),b=""}a===qe.BLOCK_LITERAL?(p+=v+b.slice(f)+B,v=`
|
|
320
|
+
`):b.length>f||B[0]===" "?(v===" "?v=`
|
|
321
|
+
`:!C&&v===`
|
|
322
|
+
`&&(v=`
|
|
323
|
+
|
|
324
|
+
`),p+=v+b.slice(f)+B,v=`
|
|
325
|
+
`,C=!0):B===""?v===`
|
|
326
|
+
`?p+=`
|
|
327
|
+
`:v=`
|
|
328
|
+
`:(p+=v+B,v=" ",C=!1)}switch(o.chomp){case"-":break;case"+":for(let E=l;E<u.length;++E)p+=`
|
|
329
|
+
`+u[E][0].slice(f);p[p.length-1]!==`
|
|
330
|
+
`&&(p+=`
|
|
331
|
+
`);break;default:p+=`
|
|
332
|
+
`}const A=i+o.length+t.source.length;return{value:p,type:a,comment:o.comment,range:[i,A,A]}}function Ab({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],a=o[0];let u=0,l="",f=-1;for(let v=1;v<o.length;++v){const C=o[v];if(!l&&(C==="-"||C==="+"))l=C;else{const A=Number(C);!u&&A?u=A:f===-1&&(f=e+v)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,g="",p=o.length;for(let v=1;v<t.length;++v){const C=t[v];switch(C.type){case"space":d=!0;case"newline":p+=C.source.length;break;case"comment":n&&!d&&i(C,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=C.source.length,g=C.source.substring(1);break;case"error":i(C,"UNEXPECTED_TOKEN",C.message),p+=C.source.length;break;default:{const A=`Unexpected token in block scalar header: ${C.type}`;i(C,"UNEXPECTED_TOKEN",A);const E=C.source;E&&typeof E=="string"&&(p+=E.length)}}}return{mode:a,indent:u,chomp:l,comment:g,length:p}}function Eb(e){const t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),a=[i?.[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let u=1;u<t.length;u+=2)a.push([t[u],t[u+1]]);return a}function xb(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const d=(v,C,A)=>n(i+v,C,A);switch(o){case"scalar":l=qe.PLAIN,f=Cb(a,d);break;case"single-quoted-scalar":l=qe.QUOTE_SINGLE,f=_b(a,d);break;case"double-quoted-scalar":l=qe.QUOTE_DOUBLE,f=kb(a,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}const g=i+a.length,p=to(u,g,t,n);return{value:f,type:l,comment:p.comment,range:[i,g,p.offset]}}function Cb(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Zd(e)}function _b(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Zd(e.slice(1,-1)).replace(/''/g,"'")}function Zd(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
333
|
+
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
334
|
+
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let o=i[1],a=" ",u=t.lastIndex;for(n.lastIndex=u;i=n.exec(e);)i[1]===""?a===`
|
|
335
|
+
`?o+=a:a=`
|
|
336
|
+
`:(o+=a+i[1],a=" "),u=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=u,i=l.exec(e),o+a+(i?.[1]??"")}function kb(e,t){let n="";for(let i=1;i<e.length-1;++i){const o=e[i];if(!(o==="\r"&&e[i+1]===`
|
|
337
|
+
`))if(o===`
|
|
338
|
+
`){const{fold:a,offset:u}=Tb(e,i);n+=a,i=u}else if(o==="\\"){let a=e[++i];const u=Ib[a];if(u)n+=u;else if(a===`
|
|
339
|
+
`)for(a=e[i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="\r"&&e[i+1]===`
|
|
340
|
+
`)for(a=e[++i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="x"||a==="u"||a==="U"){const l={x:2,u:4,U:8}[a];n+=Ob(e,i+1,l,t),i+=l}else{const l=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(o===" "||o===" "){const a=i;let u=e[i+1];for(;u===" "||u===" ";)u=e[++i+1];u!==`
|
|
341
|
+
`&&!(u==="\r"&&e[i+2]===`
|
|
342
|
+
`)&&(n+=i>a?e.slice(a,i+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Tb(e,t){let n="",i=e[t+1];for(;(i===" "||i===" "||i===`
|
|
343
|
+
`||i==="\r")&&!(i==="\r"&&e[t+2]!==`
|
|
344
|
+
`);)i===`
|
|
345
|
+
`&&(n+=`
|
|
346
|
+
`),t+=1,i=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Ib={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
347
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Ob(e,t,n,i){const o=e.substr(t,n),u=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const l=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(u)}function ep(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?Sb(e,t,i):xb(t,e.options.strict,i),f=n?e.directives.tagName(n.source,p=>i(n,"TAG_RESOLVE_FAILED",p)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[yr]:f?d=Fb(e.schema,o,f,n,i):t.type==="scalar"?d=Bb(e,o,t,i):d=e.schema[yr];let g;try{const p=d.resolve(o,v=>i(n??t,"TAG_RESOLVE_FAILED",v),e.options);g=_t(p)?p:new qe(p)}catch(p){const v=p instanceof Error?p.message:String(p);i(n??t,"TAG_RESOLVE_FAILED",v),g=new qe(o)}return g.range=l,g.source=o,a&&(g.type=a),f&&(g.tag=f),d.format&&(g.format=d.format),u&&(g.comment=u),g}function Fb(e,t,n,i,o){if(n==="!")return e[yr];const a=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)a.push(l);else return l;for(const l of a)if(l.test?.test(t))return l;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[yr])}function Bb({atKey:e,directives:t,schema:n},i,o,a){const u=n.tags.find(l=>(l.default===!0||e&&l.default==="key")&&l.test?.test(i))||n[yr];if(n.compat){const l=n.compat.find(f=>f.default&&f.test?.test(i))??n[yr];if(u.tag!==l.tag){const f=t.tagString(u.tag),d=t.tagString(l.tag),g=`Value may be parsed as either ${f} or ${d}`;a(o,"TAG_RESOLVE_FAILED",g,!0)}}return u}function Db(e,t,n){if(t){n===null&&(n=t.length);for(let i=n-1;i>=0;--i){let o=t[i];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++i];o?.type==="space";)e+=o.source.length,o=t[++i];break}}return e}const Rb={composeNode:tp,composeEmptyNode:Mc};function tp(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let d,g=!0;switch(t.type){case"alias":d=Lb(e,t,i),(l||f)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":d=ep(e,t,f,i),l&&(d.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=vb(Rb,e,t,n,i),l&&(d.anchor=l.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",p),d=Mc(e,t.offset,void 0,null,n,i),g=!1}}return l&&d.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!_t(d)||typeof d.value!="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")&&i(f??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(d.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?d.comment=u:d.commentBefore=u),e.options.keepSourceTokens&&g&&(d.srcToken=t),d}function Mc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},d){const g={type:"scalar",offset:Db(t,n,i),indent:-1,source:""},p=ep(e,g,l,d);return u&&(p.anchor=u.source.substring(1),p.anchor===""&&d(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),a&&(p.comment=a,p.range[2]=f),p}function Lb({options:e},{offset:t,source:n,end:i},o){const a=new bc(n.substring(1));a.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=t+n.length,l=to(i,u,e.strict,o);return a.range=[t,u,l.offset],l.comment&&(a.comment=l.comment),a}function Pb(e,t,{offset:n,start:i,value:o,end:a},u){const l=Object.assign({_directives:t},e),f=new Qs(void 0,l),d={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},g=os(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});g.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!g.hasNewline&&u(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?tp(d,o,g,u):Mc(d,g.end,i,null,g,u);const p=f.contents.range[2],v=to(a,p,!1,u);return v.comment&&(f.comment=v.comment),f.range=[n,p,v.offset],f}function no(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function np(e){let t="",n=!1,i=!1;for(let o=0;o<e.length;++o){const a=e[o];switch(a[0]){case"#":t+=(t===""?"":i?`
|
|
348
|
+
|
|
349
|
+
`:`
|
|
350
|
+
`)+(a.substring(1)||" "),n=!0,i=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}class Nb{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=no(n);a?this.warnings.push(new yb(u,i,o)):this.errors.push(new Zs(u,i,o))},this.directives=new hn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=np(this.prelude);if(i){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
351
|
+
${i}`:i;else if(o||t.directives.docStart||!a)t.commentBefore=i;else if(qt(a)&&!a.flow&&a.items.length>0){let u=a.items[0];Vt(u)&&(u=u.key);const l=u.commentBefore;u.commentBefore=l?`${i}
|
|
352
|
+
${l}`:i}else{const u=a.commentBefore;a.commentBefore=u?`${i}
|
|
353
|
+
${u}`:i}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:np(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(const o of t)yield*this.next(o);yield*this.end(n,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,i,o)=>{const a=no(t);a[0]+=n,this.onError(a,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Pb(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new Zs(no(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new Zs(no(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=to(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
|
|
354
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Zs(no(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const i=Object.assign({_directives:this.directives},this.options),o=new Qs(void 0,i);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const rp="\uFEFF",ip="",sp="",Uc="";function jb(e){switch(e){case rp:return"byte-order-mark";case ip:return"doc-mode";case sp:return"flow-error-end";case Uc:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
355
|
+
`:case`\r
|
|
356
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function tr(e){switch(e){case void 0:case" ":case`
|
|
357
|
+
`:case"\r":case" ":return!0;default:return!1}}const op=new Set("0123456789ABCDEFabcdef"),$b=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Ea=new Set(",[]{}"),Mb=new Set(` ,[]{}
|
|
358
|
+
\r `),Vc=e=>!e||Mb.has(e);class Ub{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let i=this.next??"stream";for(;i&&(n||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
|
359
|
+
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
360
|
+
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let i=0;for(;n===" ";)n=this.buffer[++i+t];if(n==="\r"){const o=this.buffer[i+t+1];if(o===`
|
|
361
|
+
`||!o&&!this.atEnd)return t+i+1}return n===`
|
|
362
|
+
`||i>=this.indentNext||!n&&!this.atEnd?t+i:-1}if(n==="-"||n==="."){const i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&tr(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
363
|
+
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===rp&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,i=t.indexOf("#");for(;i!==-1;){const a=t[i-1];if(a===" "||a===" "){n=i-1;break}else i=t.indexOf("#",i+1)}for(;;){const a=t[n-1];if(a===" "||a===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield ip,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&tr(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!tr(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&tr(n)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Vc),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,i=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=i=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&o[0]!=="#"||i===0&&(o.startsWith("---")||o.startsWith("..."))&&tr(o[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield sp,yield*this.parseLineStart();let a=0;for(;o[a]===",";)a+=yield*this.pushCount(1),a+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(a+=yield*this.pushIndicators(),o[a]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-a),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Vc),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const u=this.charAt(1);if(this.flowKey||tr(u)||u===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let a=0;for(;this.buffer[n-1-a]==="\\";)a+=1;if(a%2===0)break;n=this.buffer.indexOf('"',n+1)}const i=this.buffer.substring(0,n);let o=i.indexOf(`
|
|
364
|
+
`,this.pos);if(o!==-1){for(;o!==-1;){const a=this.continueScalar(o+1);if(a===-1)break;o=i.indexOf(`
|
|
365
|
+
`,a)}o!==-1&&(n=o-(i[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>tr(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,i;e:for(let a=this.pos;i=this.buffer[a];++a)switch(i){case" ":n+=1;break;case`
|
|
366
|
+
`:t=a,n=0;break;case"\r":{const u=this.buffer[a+1];if(!u&&!this.atEnd)return this.setNext("block-scalar");if(u===`
|
|
367
|
+
`)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const a=this.continueScalar(t+1);if(a===-1)break;t=this.buffer.indexOf(`
|
|
368
|
+
`,a)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(i=this.buffer[o];i===" ";)i=this.buffer[++o];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
|
|
369
|
+
`;)i=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let a=t-1,u=this.buffer[a];u==="\r"&&(u=this.buffer[--a]);const l=a;for(;u===" ";)u=this.buffer[--a];if(u===`
|
|
370
|
+
`&&a>=this.pos&&a+1+n>l)t=a;else break}while(!0);return yield Uc,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,i=this.pos-1,o;for(;o=this.buffer[++i];)if(o===":"){const a=this.buffer[i+1];if(tr(a)||t&&Ea.has(a))break;n=i}else if(tr(o)){let a=this.buffer[i+1];if(o==="\r"&&(a===`
|
|
371
|
+
`?(i+=1,o=`
|
|
372
|
+
`,a=this.buffer[i+1]):n=i),a==="#"||t&&Ea.has(a))break;if(o===`
|
|
373
|
+
`){const u=this.continueScalar(i+1);if(u===-1)break;i=Math.max(i,u-2)}}else{if(t&&Ea.has(o))break;n=i}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Uc,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Vc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(tr(n)||t&&Ea.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!tr(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if($b.has(n))n=this.buffer[++t];else if(n==="%"&&op.has(this.buffer[t+1])&&op.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
|
374
|
+
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
375
|
+
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,i;do i=this.buffer[++n];while(i===" "||t&&i===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,i=this.buffer[n];for(;!t(i);)i=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Vb{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,i=this.lineStarts.length;for(;n<i;){const a=n+i>>1;this.lineStarts[a]<t?n=a+1:i=a}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function vi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function ap(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function up(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function xa(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function as(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function cp(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!vi(t.start,"explicit-key-ind")&&!vi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,up(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class qb{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Ub,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const i of this.lexer.lex(t,n))yield*this.next(i);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=jb(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const i=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in i?i.indent:0:n.type==="flow-collection"&&i.type==="document"&&(n.indent=0),n.type==="flow-collection"&&cp(n),i.type){case"document":i.value=n;break;case"block-scalar":i.props.push(n);break;case"block-map":{const o=i.items[i.items.length-1];if(o.value){i.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=i.items[i.items.length-1];o.value?i.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=i.items[i.items.length-1];!o||o.value?i.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&ap(o.start)===-1&&(n.indent===0||o.start.every(a=>a.type!=="comment"||a.indent<n.indent))&&(i.type==="document"?i.end=o.start:i.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{ap(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=xa(this.peek(2)),i=as(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
376
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
377
|
+
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,o=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let a=[];if(o&&n.sep&&!n.value){const u=[];for(let l=0;l<n.sep.length;++l){const f=n.sep[l];switch(f.type){case"newline":u.push(l);break;case"space":break;case"comment":f.indent>t.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(a=n.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(a.push(this.sourceToken),t.items.push({start:a}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(a.push(this.sourceToken),t.items.push({start:a,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(vi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(up(n.key)&&!vi(n.sep,"newline")){const u=as(n.start),l=n.key,f=n.sep;f.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:l,sep:f}]})}else a.length>0?n.sep=n.sep.concat(a,this.sourceToken):n.sep.push(this.sourceToken);else if(vi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=as(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:a,key:null,sep:[this.sourceToken]}):vi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);o||n.value?(t.items.push({start:a,key:u,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(u):(Object.assign(n,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(t);if(u){i&&u.type!=="block-seq"&&t.items.push({start:a}),this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||vi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const o=xa(i),a=as(o);cp(t);const u=t.end.splice(1,t.end.length);u.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:a,key:t,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
378
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
379
|
+
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=xa(t),i=as(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=xa(t),i=as(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Wb(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Vb||null,prettyErrors:t}}function Hb(e,t={}){const{lineCounter:n,prettyErrors:i}=Wb(t),o=new qb(n?.addNewLine),a=new Nb(t);let u=null;for(const l of a.compose(o.parse(e),!0,e.length))if(!u)u=l;else if(u.options.logLevel!=="silent"){u.errors.push(new Zs(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(Yd(e,n)),u.warnings.forEach(Yd(e,n))),u}function lp(e,t,n){let i;const o=Hb(e,n);if(!o)return null;if(o.warnings.forEach(a=>_d(o.options.logLevel,a)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:i},n))}function fp(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return Ws(e)&&!i?e.toString(n):new Qs(e,i,n).toString(n)}const Kb={BorderRadiusContainer:Je.div`
|
|
380
|
+
height: 100%;
|
|
381
|
+
|
|
382
|
+
.monaco-editor,
|
|
383
|
+
.overflow-guard {
|
|
384
|
+
border-radius: 8px;
|
|
385
|
+
}
|
|
386
|
+
`},zb=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Z.useState("");return Z.useEffect(()=>{o(fp(t))},[t]),S.jsx(Kb.BorderRadiusContainer,{children:S.jsx(gc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(lp(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},Gb=Je.div`
|
|
387
|
+
height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
|
|
388
|
+
|
|
389
|
+
.monaco-editor,
|
|
390
|
+
.overflow-guard {
|
|
391
|
+
border-radius: 8px;
|
|
392
|
+
}
|
|
393
|
+
`,Jb=Je.div`
|
|
394
|
+
margin-top: 10px;
|
|
395
|
+
display: flex;
|
|
396
|
+
align-items: center;
|
|
397
|
+
background-color: ${({$bgColor:e,$designNewLayout:t})=>t?e:"initial"};
|
|
398
|
+
border-radius: 8px;
|
|
399
|
+
padding: 4px;
|
|
400
|
+
`,hp={BorderRadiusContainer:Gb,ControlsRowContainer:Jb},Yb=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f,designNewLayout:d,designNewLayoutHeight:g})=>{const{token:p}=q.theme.useToken(),v=lr.useNavigate(),[C,A]=Z.useState(""),[E,b]=Z.useState(!1),[B,N]=Z.useState();Z.useEffect(()=>{A(fp(n))},[n]);const _=()=>{b(!0),N(void 0);const k=lp(C),{namespace:F}=k.metadata,{name:R}=k.metadata,O=k,W=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${F}`:""}/${l}/${o?"":R}`;o?Qo({endpoint:W,body:O}).then(J=>{console.log(J),f&&v(f)}).catch(J=>{console.log("Form submit error",J),b(!1),N(J)}):Zo({endpoint:W,body:O}).then(J=>{console.log(J),f&&v(f)}).catch(J=>{console.log("Form submit error",J),b(!1),N(J)})};return S.jsxs(S.Fragment,{children:[B&&S.jsx(q.Alert,{message:`An error has occurred: ${B?.response?.data?.message} `,type:"error"}),S.jsx(hp.BorderRadiusContainer,{$designNewLayoutHeight:g,children:S.jsx(gc,{defaultLanguage:"yaml",width:"100%",height:g||"75vh",value:C,onChange:k=>{A(k||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),S.jsx(hp.ControlsRowContainer,{$bgColor:p.colorPrimaryBg,$designNewLayout:d,children:S.jsxs(q.Flex,{gap:d?10:16,align:"center",children:[S.jsx(q.Button,{type:"primary",onClick:_,loading:E,children:"Submit"}),f&&S.jsx(q.Button,{onClick:()=>v(f),children:"Cancel"})]})})]})},Ot=e=>{if(typeof e=="string")return e;if(Array.isArray(e)){const t=e.slice(-1)[0];return typeof t=="string"?t:String(t)}return String(e)},dp=Z.createContext(void 0),Xb=({value:e,children:t})=>S.jsx(dp.Provider,{value:e,children:t}),nr=()=>Z.useContext(dp),Qb=Je.div`
|
|
401
|
+
display: flex;
|
|
402
|
+
flex-direction: column;
|
|
403
|
+
gap: ${({$designNewLayout:e})=>e?"4px":"8px"};
|
|
404
|
+
border: 1px solid ${({$borderColor:e})=>e};
|
|
405
|
+
border-radius: ${({$designNewLayout:e})=>e?"6px":"8px"};
|
|
406
|
+
background-color: ${({$designNewLayout:e,$bgColor:t})=>e?t:"initial"};
|
|
407
|
+
width: 100%;
|
|
408
|
+
padding: ${({$designNewLayout:e})=>e?"16px":"initial"};
|
|
409
|
+
margin-bottom: ${({$designNewLayout:e})=>e?"10px":"16px"};
|
|
410
|
+
box-shadow: ${({$designNewLayout:e})=>e?`
|
|
411
|
+
0 6px 16px 0 #00000014,
|
|
412
|
+
0 3px 6px -4px #0000001f,
|
|
413
|
+
0 9px 28px 8px #0000000d`:"initial"};
|
|
414
|
+
`,Zb=Je.div`
|
|
415
|
+
display: flex;
|
|
416
|
+
align-items: center;
|
|
417
|
+
justify-content: flex-start;
|
|
418
|
+
gap: 4px;
|
|
419
|
+
cursor: pointer;
|
|
420
|
+
`,ev=Je.div`
|
|
421
|
+
display: ${({$isOpen:e})=>e?"block":"none"};
|
|
422
|
+
padding: ${({$designNewLayout:e})=>e?"0 0 0 6px":"4px"};
|
|
423
|
+
`,qc={Container:Qb,TitleBar:Zb,Content:ev},tv=({title:e,formName:t,expandedControls:n,persistedCheckbox:i,isAdditionalProperties:o,removeField:a,onRemoveByMinus:u,children:l})=>{const{token:f}=q.theme.useToken(),d=n.expandedKeys.some(v=>JSON.stringify(v)===JSON.stringify(t)),g=nr(),p=()=>{d?n.onExpandClose(t):n.onExpandOpen(t)};return S.jsxs(qc.Container,{$designNewLayout:g,$borderColor:f.colorBorder,$bgColor:f.colorBgContainer,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsxs(qc.TitleBar,{onClick:()=>p(),children:[!g&&S.jsx("div",{children:d?S.jsx(wn.CaretDownOutlined,{size:14}):S.jsx(wn.CaretRightOutlined,{size:14})}),S.jsx("div",{children:e}),g&&S.jsx("div",{children:d?S.jsx(Ih,{}):S.jsx(Th,{})})]}),S.jsxs(q.Flex,{gap:4,children:[o&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>a(),children:S.jsx(sn,{})}),u&&S.jsx(q.Button,{size:"small",type:"text",onClick:u,children:S.jsx(sn,{})}),i]})]}),S.jsx(qc.Content,{$isOpen:d,$designNewLayout:g,children:l})]})},rr=Je.div`
|
|
424
|
+
display: ${({$isHidden:e})=>e?"none":"block"};
|
|
425
|
+
`,Si=({formName:e,persistedControls:t,type:n})=>{const i=t.persistedKeys.some(a=>JSON.stringify(a)===JSON.stringify(e)),o=()=>{i?t.onPersistUnmark(e):t.onPersistMark(e,n)};return S.jsx(rr,{$isHidden:t.isPersistedKeysShown===!1,children:S.jsx(q.Button,{size:"small",type:"text",onClick:o,children:i?S.jsx(Bh,{}):S.jsx(Dh,{})})})},Tr=Je(q.Form.Item)`
|
|
426
|
+
margin-bottom: 8px;
|
|
427
|
+
`,Ir=Je.div`
|
|
428
|
+
font-size: ${({$designNewLayout:e})=>e?"16px":"14px"};
|
|
429
|
+
line-height: ${({$designNewLayout:e})=>e?"24px":"22px"};
|
|
430
|
+
`,nv={Content:Je.div`
|
|
431
|
+
padding: ${({$designNewLayout:e})=>e?"0 0 0 6px":"4px"};
|
|
432
|
+
`},rv=({children:e})=>{const t=nr();return S.jsx(nv.Content,{$designNewLayout:t,children:e})},iv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:C})=>{const A=nr(),{clusterName:E,namespace:b,syntheticProject:B,entryName:N}=v,_=q.Form.useFormInstance(),k=q.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,_),F=Et({template:p.valueUri,replaceValues:{clusterName:E,namespace:b,syntheticProject:B,entryName:N}}),{data:R,isError:O,isLoading:W}=tn({uri:F,refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F});if(W)return S.jsx("div",{children:"Loading"});if(O)return S.jsx("div",{children:"Error"});const J=Ut.get(R,["items"]),le=p.criteria?J.filter(ke=>{const xe=Ut.get(ke,p.criteria?.keysToValue||[]);return p.criteria?.type==="equals"?xe===p.criteria?.value:xe!==p.criteria?.value}):J,ce=p.criteria?.keepPrefilled!==!1?J.find(ke=>Ut.get(ke,p.keysToValue)===k):void 0,ge=ce?[ce,...le]:le,he=(Array.isArray(ge)?ge.map(ke=>({value:Ut.get(ke,p.keysToValue),label:p.keysToLabel?Ut.get(ke,p.keysToLabel):Ut.get(ke,p.keysToValue)})).map(({value:ke,label:xe})=>({label:typeof xe=="string"?xe:JSON.stringify(xe),value:typeof ke=="string"?ke:JSON.stringify(ke)})):[]).reduce((ke,xe)=>(ke.some(Ae=>Ae.value===xe.value)||ke.push(xe),ke),[]),me=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,Le=S.jsxs(S.Fragment,{children:[Ot(e),o?.includes(Ot(e))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(rr,{$isHidden:u,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:A,children:l?S.jsx(q.Tooltip,{title:l,children:Le}):Le}),S.jsxs(q.Flex,{gap:4,children:[f&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>d({path:e}),children:S.jsx(sn,{})}),C&&S.jsx(q.Button,{size:"small",type:"text",onClick:C,children:S.jsx(sn,{})}),S.jsx(Si,{formName:i||e,persistedControls:g,type:"arr"})]})]}),S.jsx(Tr,{name:n||me,rules:[{required:a===!1&&o?.includes(Ot(e))}],validateTrigger:"onBlur",hasFeedback:A?{icons:qr}:!0,children:S.jsx(q.Select,{mode:p.mode,placeholder:"Select",options:he,filterOption:sc,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},mr=({valueObj:e,keysToValue:t,logic:n})=>{const i=Ut.get(e,t);return n==="cpuLike"?ac(i):uc(i)},pp=({value:e})=>Number(e.toFixed(1)),gp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},yp=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},sv=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:d,maxAddSecondValueObj:g,logic:p})=>{let v=0,C=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const A=mr({valueObj:t,keysToValue:e.min.keysToValue,logic:p});v=pp({value:A})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const A=mr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:p}),E=mr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:p});v=gp({valueFirst:A,valueSecond:E})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const A=mr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:p}),E=mr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:p});v=yp({valueFirst:A,valueSecond:E})}if(e.min.type==="number"&&(v=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const A=mr({valueObj:u,keysToValue:e.max.keysToValue,logic:p});C=pp({value:A})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const A=mr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:p}),E=mr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:p});C=gp({valueFirst:A,valueSecond:E})}if(e.max.type==="addResourceValues"&&typeof d=="object"&&d!==null&&typeof g=="object"&&g!==null){const A=mr({valueObj:d,keysToValue:e.max.firstValuesKeysToValue,logic:p}),E=mr({valueObj:g,keysToValue:e.max.secondValuesKeysToValue,logic:p});C=yp({valueFirst:A,valueSecond:E})}return e.max.type==="number"&&(C=e.max.value),{minValue:v,maxValue:C}},ov=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,persistedControls:l,description:f,onRemoveByMinus:d,initialValue:g,max:p,min:v,step:C=1,...A})=>{const E=nr(),[b,B]=Z.useState(g||v);Z.useEffect(()=>{(Number.isNaN(b)||b<v)&&B(v),b>p&&B(p),B(b)},[b,v,p]);const N=S.jsxs(S.Fragment,{children:[Ot(e),o?.includes(Ot(e))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(rr,{$isHidden:u,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:E,children:f?S.jsx(q.Tooltip,{title:f,children:N}):N}),S.jsxs(q.Flex,{gap:4,children:[d&&S.jsx(q.Button,{size:"small",type:"text",onClick:d,children:S.jsx(sn,{})}),S.jsx(Si,{formName:i||e,persistedControls:l,type:"number"})]})]}),S.jsxs(q.Row,{children:[S.jsxs(q.Col,{span:12,children:[S.jsx(Tr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ot(e))}],validateTrigger:"onBlur",hasFeedback:E?{icons:qr}:!0,children:S.jsx(q.Slider,{min:v,max:p,step:C,...A})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),S.jsx(q.Typography.Text,{children:S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx("span",{children:v}),S.jsx("span",{children:p})]})})]}),S.jsx(q.Col,{span:4,children:S.jsx(Tr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ot(e))}],validateTrigger:"onBlur",hasFeedback:E?{icons:qr}:!0,children:S.jsx(q.InputNumber,{min:v,max:p,step:C,value:b,disabled:A.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},av=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p,onRemoveByMinus:v})=>{const{clusterName:C,namespace:A,syntheticProject:E,entryName:b}=p,B=f?g.edit:g.add,N=B.min.type==="resourceValue"?Et({template:B.min.valueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,_=B.min.type==="substractResourceValues"?Et({template:B.min.firstValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,k=B.min.type==="substractResourceValues"?Et({template:B.min.secondValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,F=B.min.type==="addResourceValues"?Et({template:B.min.firstValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,R=B.min.type==="addResourceValues"?Et({template:B.min.secondValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,O=B.max.type==="resourceValue"?Et({template:B.max.valueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,W=B.max.type==="substractResourceValues"?Et({template:B.max.firstValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,J=B.max.type==="substractResourceValues"?Et({template:B.max.secondValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,le=B.max.type==="addResourceValues"?Et({template:B.max.firstValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,ce=B.max.type==="addResourceValues"?Et({template:B.max.secondValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,{data:ge,isError:ye,isLoading:he}=tn({uri:N||"",refetchInterval:!1,queryKey:[N||"",JSON.stringify(e)],isEnabled:!!N}),{data:me,isError:Le,isLoading:ke}=tn({uri:_||"",refetchInterval:!1,queryKey:[_||"",JSON.stringify(e)],isEnabled:!!_}),{data:xe,isError:tt,isLoading:Ae}=tn({uri:k||"",refetchInterval:!1,queryKey:[k||"",JSON.stringify(e)],isEnabled:!!k}),{data:Se,isError:We,isLoading:Y}=tn({uri:F||"",refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F}),{data:Q,isError:ue,isLoading:De}=tn({uri:R||"",refetchInterval:!1,queryKey:[R||"",JSON.stringify(e)],isEnabled:!!R}),{data:Ye,isError:Te,isLoading:Re}=tn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:Oe,isError:Ne,isLoading:kt}=tn({uri:W||"",refetchInterval:!1,queryKey:[W||"",JSON.stringify(e)],isEnabled:!!W}),{data:nn,isError:Lt,isLoading:Pt}=tn({uri:J||"",refetchInterval:!1,queryKey:[J||"",JSON.stringify(e)],isEnabled:!!J}),{data:Nt,isError:wt,isLoading:kn}=tn({uri:le||"",refetchInterval:!1,queryKey:[le||"",JSON.stringify(e)],isEnabled:!!le}),{data:Sn,isError:Ce,isLoading:Be}=tn({uri:ce||"",refetchInterval:!1,queryKey:[ce||"",JSON.stringify(e)],isEnabled:!!ce}),{minValue:pe,maxValue:At}=sv({minMaxAndStep:B,minValueObj:ge,minSubstractFirstValueObj:me,minSubstractSecondValueObj:xe,minAddFirstValueObj:Se,minAddSecondValueObj:Q,maxValueObj:Ye,maxSubstractFirstValueObj:Oe,maxSubstractSecondValueObj:nn,maxAddFirstValueObj:Nt,maxAddSecondValueObj:Sn,logic:g.logic}),xt=f?g.edit.step:g.add.step;return B.min.type==="resourceValue"&&he||B.min.type==="substractResourceValues"&&(ke||Ae)||B.min.type==="addResourceValues"&&(Y||De)||B.max.type==="resourceValue"&&Re||B.max.type==="substractResourceValues"&&(kt||Pt)||B.max.type==="addResourceValues"&&(kn||Be)?S.jsx("div",{children:"Loading"}):B.min.type==="resourceValue"&&ye||B.min.type==="substractResourceValues"&&(Le||tt)||B.min.type==="addResourceValues"&&(We||ue)||B.max.type==="resourceValue"&&Te||B.max.type==="substractResourceValues"&&(Ne||Lt)||B.max.type==="addResourceValues"&&(wt||Ce)?S.jsx("div",{children:"Error"}):S.jsx(ov,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,min:pe,max:At,step:xt,persistedControls:d,onRemoveByMinus:v})},uv=({name:e,isHidden:t,namespaceData:n,isAdditionalProperties:i,removeField:o})=>{const a=nr();return n?S.jsxs(rr,{$isHidden:t,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsxs(Ir,{$designNewLayout:a,children:["namespace",S.jsx(q.Typography.Text,{type:"danger",children:"*"})]}),S.jsx(q.Flex,{gap:4,children:i&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>o({path:e}),children:S.jsx(sn,{})})})]}),S.jsx(Tr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:a?{icons:qr}:!0,children:S.jsx(q.Select,{placeholder:"Select namespace",options:n.selectValues,filterOption:n.filterSelectOptions,allowClear:!0,disabled:n.disabled,showSearch:!0})})]}):null},cv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,onRemoveByMinus:p})=>{const v=nr(),C=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,A=S.jsxs(S.Fragment,{children:[Ot(e),o?.includes(Ot(e))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(rr,{$isHidden:u,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:v,children:l?S.jsx(q.Tooltip,{title:l,children:A}):A}),S.jsxs(q.Flex,{gap:4,children:[f&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>d({path:e}),children:S.jsx(sn,{})}),p&&S.jsx(q.Button,{size:"small",type:"text",onClick:p,children:S.jsx(sn,{})}),S.jsx(Si,{formName:i||e,persistedControls:g,type:"str"})]})]}),S.jsx(Tr,{name:n||C,rules:[{required:a===!1&&o?.includes(Ot(e))}],validateTrigger:"onBlur",hasFeedback:v?{icons:qr}:!0,children:S.jsx(q.Input,{placeholder:Ot(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},lv=Je.div`
|
|
433
|
+
display: flex;
|
|
434
|
+
`,fv=Je.div`
|
|
435
|
+
margin-left: 4px;
|
|
436
|
+
cursor: pointer;
|
|
437
|
+
padding-top: 11px;
|
|
438
|
+
`,mp={SwitchAndCrossContainer:lv,CrossContainer:fv},hv=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f})=>{const d=nr(),g=S.jsx(S.Fragment,{children:Ot(e)});return S.jsxs(rr,{$isHidden:i,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:d,children:o?S.jsx(q.Tooltip,{title:o,children:g}):g}),S.jsxs(q.Flex,{gap:4,children:[u&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>l({path:e}),children:S.jsx(sn,{})}),f&&S.jsx(q.Button,{size:"small",type:"text",onClick:f,children:S.jsx(sn,{})})]})]}),S.jsxs(mp.SwitchAndCrossContainer,{children:[S.jsx(Tr,{name:n||e,children:S.jsx(q.Switch,{size:"small"})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),S.jsx(mp.CrossContainer,{onClick:()=>{a&&a(e)},children:S.jsx(Oh,{})})]})]})},dv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p,onRemoveByMinus:v})=>{const C=nr(),A=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,E=S.jsxs(S.Fragment,{children:[Ot(e),o?.includes(Ot(e))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(rr,{$isHidden:u,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:C,children:l?S.jsx(q.Tooltip,{title:l,children:E}):E}),S.jsxs(q.Flex,{gap:4,children:[f&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>d({path:e}),children:S.jsx(sn,{})}),v&&S.jsx(q.Button,{size:"small",type:"text",onClick:v,children:S.jsx(sn,{})}),S.jsx(Si,{formName:i||e,persistedControls:p,type:"str"})]})]}),S.jsx(Tr,{name:n||A,rules:[{required:a===!1&&o?.includes(Ot(e))}],validateTrigger:"onBlur",hasFeedback:C?{icons:qr}:!0,children:S.jsx(q.Select,{options:g.map(b=>({value:b,label:b})),placeholder:Ot(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},pv=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v})=>{const C=nr(),A=S.jsxs(S.Fragment,{children:[Ot(t),a?.includes(Ot(t))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(rr,{$isHidden:l,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:C,children:f?S.jsx(q.Tooltip,{title:f,children:A}):A}),S.jsxs(q.Flex,{gap:4,children:[d&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>g({path:t}),children:S.jsx(sn,{})}),v&&S.jsx(q.Button,{size:"small",type:"text",onClick:v,children:S.jsx(sn,{})}),S.jsx(Si,{formName:o||t,persistedControls:p,type:"number"})]})]}),S.jsx(Tr,{name:i||t,rules:[{required:u===!1&&a?.includes(Ot(t))}],validateTrigger:"onBlur",hasFeedback:C?{icons:qr}:!0,children:S.jsx(q.InputNumber,{placeholder:Ot(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]})},wp=({name:e,persistName:t,selfRequired:n,isHidden:i,description:o,isAdditionalProperties:a,removeField:u,expandedControls:l,persistedControls:f,collapseTitle:d,collapseFormName:g,data:p,inputProps:v,onRemoveByMinus:C})=>{const A=nr(),[E,b]=Z.useState(),B=()=>{if(E&&E.length>0){const _=v?.additionalProperties;v?.addField({path:Array.isArray(e)?[...e,String(d)]:[e,String(d)],name:E,type:_.type,items:_.items,nestedProperties:_.properties||{},required:_.required}),b(void 0)}},N=S.jsxs(S.Fragment,{children:[Ot(d),n&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsx(rr,{$isHidden:i,children:S.jsxs(tv,{title:S.jsx(Ir,{$designNewLayout:A,children:o?S.jsx(q.Tooltip,{title:o,children:N}):N}),formName:g,expandedControls:l,isAdditionalProperties:a,removeField:()=>u({path:e}),onRemoveByMinus:C,persistedCheckbox:v?void 0:S.jsx(Si,{formName:t||e,persistedControls:f,type:"obj"}),children:[p,v&&S.jsx(q.Input,{placeholder:"Enter field name",allowClear:!0,value:E,onChange:_=>b(_.target.value),suffix:S.jsx(q.Button,{size:"small",type:"text",onClick:B,children:S.jsx(tc,{})})})]},Array.isArray(e)?e.join("-"):e)})},gv=({name:e,persistName:t,required:n,description:i,isAdditionalProperties:o,removeField:a,persistedControls:u,onRemoveByMinus:l})=>{const f=nr(),d=S.jsxs(S.Fragment,{children:[Ot(e),n?.includes(Ot(e))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:f,children:i?S.jsx(q.Tooltip,{title:i,children:d}):d}),S.jsxs(q.Flex,{gap:4,children:[o&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>a({path:e}),children:S.jsx(sn,{})}),l&&S.jsx(q.Button,{size:"small",type:"text",onClick:l,children:S.jsx(sn,{})}),S.jsx(Si,{formName:t||e,persistedControls:u,type:"arr"})]})]})},yv=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(typeof t[n]=="number"&&e[n]!==String(t[n])||e[n]!==t[n])return!1;return!0},wr=(e,t)=>{if(!e)return!1;for(const n of e)if(yv(n,t))return!0;return!1},mv=Je.div`
|
|
439
|
+
display: grid;
|
|
440
|
+
grid-template-columns: repeat(2, 1fr);
|
|
441
|
+
gap: ${({$designNewLayout:e})=>e?"36px":"8px"};
|
|
442
|
+
height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
|
|
443
|
+
`,wv=Je.div`
|
|
444
|
+
overflow-x: auto;
|
|
445
|
+
scrollbar-width: thin;
|
|
446
|
+
`,bv=Je(q.Form.List)`
|
|
447
|
+
margin-bottom: 8px;
|
|
448
|
+
`,vv=Je.div`
|
|
449
|
+
margin-top: 10px;
|
|
450
|
+
display: flex;
|
|
451
|
+
align-items: center;
|
|
452
|
+
background-color: ${({$bgColor:e,$designNewLayout:t})=>t?e:"initial"};
|
|
453
|
+
border-radius: 8px;
|
|
454
|
+
padding: 4px;
|
|
455
|
+
`,Sv=Je.div`
|
|
456
|
+
height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
|
|
457
|
+
`,ro={ResetedFormList:bv,Container:mv,OverflowContainer:wv,ControlsRowContainer:vv,DebugContainer:Sv},bp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,namespaceData:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&f?S.jsx(uv,{name:e,isHidden:u,namespaceData:f,isAdditionalProperties:d,removeField:g}):S.jsx(cv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v}),Av=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p,onRemoveByMinus:v})=>S.jsx(dv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p,onRemoveByMinus:v}),vp=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v})=>S.jsx(pv,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v}),Sp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p,onRemoveByMinus:v})=>S.jsx(av,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,customProps:g,persistedControls:d,urlParams:p,onRemoveByMinus:v}),Ap=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:C})=>S.jsx(iv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:C}),Ep=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f})=>S.jsx(hv,{name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f}),xp=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,description:d,makeValueUndefined:g,addField:p,isAdditionalProperties:v,removeField:C,isEdit:A,expandedControls:E,persistedControls:b,urlParams:B,onRemoveByMinus:N})=>e.type==="array"?S.jsxs(rr,{$isHidden:f,children:[S.jsx(gv,{name:t,persistName:a,required:u,description:d,isAdditionalProperties:v,removeField:C,persistedControls:b,onRemoveByMinus:N}),S.jsx(ro.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Ot(t))?[{validator:async(_,k)=>{if(!k||k.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(_,{add:k,remove:F},{errors:R})=>S.jsxs(S.Fragment,{children:[_.map(O=>{const W=e.items?.type,J=e.items?.description,le=e.items;return S.jsxs(rv,{children:[W!=="object"&&S.jsxs(S.Fragment,{children:[W==="string"&&bp({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:J,removeField:C,persistedControls:b,onRemoveByMinus:()=>F(O.name)}),(W==="number"||W==="integer")&&vp({isNumber:W==="number",name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:J,removeField:C,persistedControls:b,onRemoveByMinus:()=>F(O.name)}),(W==="rangeInputCpu"||W==="rangeInputMemory")&&Sp({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:J,isEdit:A,persistedControls:b,customProps:e.items.customProps,urlParams:B,onRemoveByMinus:()=>F(O.name)}),W==="listInput"&&Ap({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:J,removeField:C,persistedControls:b,customProps:e.items.customProps,urlParams:B,onRemoveByMinus:()=>F(O.name)}),W==="boolean"&&Ep({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],description:J,makeValueUndefined:g,removeField:C,onRemoveByMinus:()=>F(O.name)}),W==="array"&&xp({schema:e.items,name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],expandName:o?Array.isArray(o)?[...o,O.name]:[o,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:J,makeValueUndefined:g,addField:p,removeField:C,isEdit:A,expandedControls:E,persistedControls:b,urlParams:B,onRemoveByMinus:()=>F(O.name)})]}),W==="object"&&le?.properties&&Cp({properties:le.properties,name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],expandName:o?Array.isArray(o)?[...o,O.name]:[o,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],required:le.required,forceNonRequired:l,description:J,makeValueUndefined:g,addField:p,isAdditionalProperties:v,removeField:C,isEdit:A,expandedControls:E,persistedControls:b,urlParams:B,onRemoveByMinus:()=>F(O.name)})]},O.key)}),S.jsxs(Tr,{children:[S.jsx(q.Button,{type:"text",size:"small",onClick:()=>k(),children:S.jsx(tc,{})}),S.jsx(q.Form.ErrorList,{errors:R})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,Ca=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,hiddenPaths:d,description:g,namespaceData:p,makeValueUndefined:v,addField:C,removeField:A,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N})=>S.jsx(rr,{$isHidden:f,children:Object.keys(e).map(_=>{if(e[_].type==="string"&&e[_].enum)return Av({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A,persistedControls:B,options:e[_].enum||[]});if(e[_].type==="string"&&!e[_].enum||Object.keys(e[_]).includes("x-kubernetes-int-or-string"))return bp({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,namespaceData:p,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A,persistedControls:B});if(e[_].type==="number"||e[_].type==="integer")return vp({isNumber:e[_].type==="number",name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A,persistedControls:B});if(e[_].type==="rangeInputCpu"||e[_].type==="rangeInputMemory")return Sp({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,isEdit:E,customProps:e[_].customProps,persistedControls:B,urlParams:N});if(e[_].type==="listInput")return Ap({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,customProps:e[_].customProps,removeField:A,persistedControls:B,urlParams:N});if(e[_].type==="boolean")return Ep({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,makeValueUndefined:v,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A});if(e[_].type==="array")return xp({schema:e[_],name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,expandName:o?Array.isArray(o)?[...o,String(_)]:[o,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,makeValueUndefined:v,addField:C,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N});if(e[_].additionalProperties){const k=e[_].properties?Ca({properties:e[_].properties,name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,expandName:o?Array.isArray(o)?[...o,String(_)]:[o,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:e[_].required,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),hiddenPaths:d,description:e[_].description,namespaceData:p,makeValueUndefined:v,addField:C,removeField:A,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N}):void 0;return S.jsx(wp,{name:t,persistName:a,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:g,removeField:A,expandedControls:b,persistedControls:B,collapseTitle:_,collapseFormName:Array.isArray(t)?[...t,String(_)]:[t,String(_)],data:k,inputProps:{addField:C,additionalProperties:e[_]?.additionalProperties}},Array.isArray(t)?[...t,String(_)].join("-"):[t,String(_)].join("-"))}return e[_].type==="object"&&e[_].properties?Cp({properties:e[_].properties,name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,expandName:o?Array.isArray(o)?[...o,String(_)]:[o,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,selfRequired:u?.includes(_),required:e[_].required,forceNonRequired:l||!u?.includes(_),isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),hiddenPaths:d,description:e[_].description,namespaceData:p,makeValueUndefined:v,addField:C,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N}):e[_].type==="object"&&e[_]["x-kubernetes-preserve-unknown-fields"]?S.jsx(q.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(_)):null})}),Cp=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:v,makeValueUndefined:C,addField:A,isAdditionalProperties:E,removeField:b,isEdit:B,expandedControls:N,persistedControls:_,urlParams:k,onRemoveByMinus:F})=>{const R=Ca({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:v,makeValueUndefined:C,addField:A,removeField:b,isEdit:B,expandedControls:N,persistedControls:_,urlParams:k});return S.jsx(wp,{name:t,persistName:a,selfRequired:u,isHidden:d,description:p,isAdditionalProperties:E,removeField:b,expandedControls:N,persistedControls:_,collapseTitle:t,collapseFormName:o||t,data:R,onRemoveByMinus:F})},_p=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,values:i}=t;return!(typeof n!="string"||!Array.isArray(i))},Ev=Z.lazy(()=>Promise.resolve().then(()=>Lw)),kp=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:d,prefillValuesSchema:g,prefillValueNamespaceOnly:p,isNameSpaced:v,isCreate:C,type:A,apiGroupApiVersion:E,kindName:b,typeName:B,backlink:N,designNewLayout:_,designNewLayoutHeight:k})=>{const{token:F}=q.theme.useToken(),R=lr.useNavigate(),[O]=q.Form.useForm(),W=q.Form.useWatch(["metadata","namespace"],O),[J,le]=Z.useState(a),[ce,ge]=Z.useState(),ye=_2(ge,500),[he,me]=Z.useState(!1),[Le,ke]=Z.useState(),[xe,tt]=Z.useState(!1),[Ae,Se]=Z.useState(f||[]),[We,Y]=Z.useState(d||[]),[Q,ue]=Z.useState(!0),De=Z.useRef(null),Ye=Hr({apiGroup:A==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:C===!0}),Te=Hr({apiGroup:A==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:C!==!0}),Re=()=>{if(De.current){const{scrollHeight:Ce,clientHeight:Be}=De.current;De.current.scrollTo({top:Ce-Be,behavior:"smooth"})}O.validateFields().then(()=>{me(!0),ke(void 0);const Ce=O.getFieldsValue(),Be=na(Ce,We),pe=Ps(Be),xt=cc(pe,J),{namespace:vt}=Be.metadata,rt=`/api/clusters/${e}/k8s/${A==="builtin"?"":"apis/"}${E}${v?`/namespaces/${vt}`:""}/${B}/${C?"":Be.metadata.name}`;C?Qo({endpoint:rt,body:xt}).then(we=>{console.log(we),N&&R(N)}).catch(we=>{if(console.log("Form submit error",we),me(!1),Xo(we)&&we.response?.data.message.includes("Required value")){const ut=(we.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),I=Array.from({length:ut.length},(V,G)=>ut.slice(0,G+1)),y=[...Ae,...I],w=new Set,P=y.filter(V=>{const G=Array.isArray(V)?JSON.stringify(V):V;return w.has(G)?!1:(w.add(G),!0)});Se([...P])}ke(we)}):Zo({endpoint:rt,body:xt}).then(we=>{console.log(we),N&&R(N)}).catch(we=>{if(console.log("Form submit error",we),me(!1),Xo(we)&&we.response?.data.message.includes("Required value")){const ut=(we.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),I=Array.from({length:ut.length},(V,G)=>ut.slice(0,G+1)),y=[...Ae,...I],w=new Set,P=y.filter(V=>{const G=Array.isArray(V)?JSON.stringify(V):V;return w.has(G)?!1:(w.add(G),!0)});Se([...P])}ke(we)})}).catch(Ce=>{console.log("Validating error",Ce);const Be=Ce.errorFields.reduce((_e,ut)=>[..._e,ut.name],[]),At=Be.filter(_e=>Array.isArray(_e)).flatMap(_e=>Array.from({length:_e.length},(ut,I)=>_e.slice(0,I+1))),xt=Be.filter(_e=>!Array.isArray(_e)),vt=[...Ae,...xt,...At],rt=new Set,we=vt.filter(_e=>{const ut=Array.isArray(_e)?JSON.stringify(_e):_e;return rt.has(ut)?!1:(rt.add(ut),!0)});Se([...we])})},Oe=Z.useCallback(()=>{const Ce=O.getFieldsValue();Ue.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues",{values:Ce,persistedKeys:We,properties:J}).then(({data:Be})=>ye(Be))},[O,ye,J,We]),Ne=Ce=>{Ue.post("/openapi-bff/forms/formSync/getFormValuesByYaml",{values:Ce,properties:J}).then(({data:Be})=>{Be&&O.setFieldsValue(Be)})};if(Z.useEffect(()=>{const Ce=A==="apis"?`${E}/${B}`:`v1/${B}`,Be=o?.items.find(pe=>typeof pe=="object"&&!Array.isArray(pe)&&pe!==null&&pe.spec&&typeof pe.spec=="object"&&!Array.isArray(pe.spec)&&pe.spec!==null&&typeof pe.spec.overrideType=="string"&&pe.spec.overrideType===Ce);if(_p(Be)&&Be.spec.values.forEach(({path:pe,value:At})=>{O.setFieldValue(pe,At)}),g){const pe=nd(g,J);O.setFieldsValue(pe)}Oe()},[g,O,o,A,E,B,Oe,J]),Z.useEffect(()=>{let Ce=[];const Be=A==="apis"?`${E}/${B}`:`v1/${B}`,pe=o?.items.find(rt=>typeof rt=="object"&&!Array.isArray(rt)&&rt!==null&&rt.spec&&typeof rt.spec=="object"&&!Array.isArray(rt.spec)&&rt.spec!==null&&typeof rt.spec.overrideType=="string"&&rt.spec.overrideType===Be);_p(pe)&&(Ce=pe.spec.values.flatMap(({path:rt})=>rd(rt))),g&&typeof g=="object"&&g!==null&&(Ce=[...Ce,...lc(g)]);const At=[...Ae,...Ce],xt=new Set,vt=At.filter(rt=>{const we=Array.isArray(rt)?JSON.stringify(rt):rt;return xt.has(we)?!1:(xt.add(we),!0)});Se([...vt])},[E,o,g,A,B]),Z.useEffect(()=>{p&&O.setFieldValue(["metadata","namespace"],p),Oe()},[p,Oe,O]),Z.useEffect(()=>{C&&O.setFieldsValue({apiVersion:E==="api/v1"?"v1":E,kind:b}),Oe()},[C,b,E,Oe,O]),Z.useEffect(()=>{const Ce=O.getFieldsValue(),Be=na(Ce,We),pe=Ps(Be),xt=cc(pe,J);ye(xt)},[ye,J,O,We]),Z.useEffect(()=>{Oe()},[J,Oe]),!J)return null;const kt=v?{filterSelectOptions:sc,selectValues:v.map(Ce=>({label:Ce,value:Ce})),disabled:!!p}:void 0,nn=Ce=>{O.setFieldValue(Ce,void 0),Oe()},Lt=({path:Ce,name:Be,type:pe,items:At,nestedProperties:xt,required:vt})=>{const we=(Array.isArray(Ce)?Ce:[Ce]).reduceRight((I,y)=>({[y]:{properties:I}}),{[Be]:{type:pe,items:At,properties:xt,required:vt,isAdditionalProperties:!0}}),_e=Ut.cloneDeep(J),ut=Ut.merge(_e,we);console.log("newObject",we),console.log("newProperties",ut),le(ut)},Pt=({path:Ce})=>{const pe=(Array.isArray(Ce)?Ce:[Ce]).flatMap(xt=>[xt,"properties"]).slice(0,-1),At=Ut.cloneDeep(J);Ut.unset(At,pe),le(At)},Nt=Ce=>{Se([...Ae,Ce])},wt=Ce=>{Se([...Ae.filter(Be=>JSON.stringify(Be)!==JSON.stringify(Ce))])},kn=(Ce,Be)=>{Be&&O.getFieldValue(Ce)===void 0&&(Be==="str"&&O.setFieldValue(Ce,""),Be==="number"&&O.setFieldValue(Ce,0),Be==="arr"&&O.setFieldValue(Ce,[]),Be==="obj"&&O.setFieldValue(Ce,{})),Y([...We,Ce])},Sn=Ce=>{console.log(Ce),Y([...We.filter(Be=>JSON.stringify(Be)!==JSON.stringify(Ce))])};return S.jsxs(S.Fragment,{children:[S.jsxs(ro.Container,{$designNewLayout:_,$designNewLayoutHeight:k,children:[S.jsx(ro.OverflowContainer,{ref:De,children:S.jsxs(q.Form,{form:O,onValuesChange:Oe,children:[S.jsx(Xb,{value:_,children:Ca({properties:J,name:[],required:u,hiddenPaths:l,namespaceData:kt,makeValueUndefined:nn,addField:Lt,removeField:Pt,isEdit:!C,expandedControls:{onExpandOpen:Nt,onExpandClose:wt,expandedKeys:Ae},persistedControls:{onPersistMark:kn,onPersistUnmark:Sn,persistedKeys:We,isPersistedKeysShown:Q},urlParams:n})}),!_&&S.jsxs(S.Fragment,{children:[S.jsx(Cr,{$space:10,$samespace:!0}),S.jsx(q.Alert,{type:"warning",message:"Only the data from the form will be sent. Empty fields will be removed recursively."})]}),C&&Ye.data?.status.allowed===!1&&S.jsxs(S.Fragment,{children:[S.jsx(Cr,{$space:10,$samespace:!0}),S.jsx(q.Alert,{type:"warning",message:"Insufficient rights to create"})]}),!C&&Te.data?.status.allowed===!1&&S.jsxs(S.Fragment,{children:[S.jsx(Cr,{$space:10,$samespace:!0}),S.jsx(q.Alert,{type:"warning",message:"Insufficient rights to edit"})]}),Le&&S.jsxs(S.Fragment,{children:[S.jsx(Cr,{$space:10,$samespace:!0}),S.jsx(q.Alert,{message:`An error has occurred: ${Le?.response?.data?.message} `,type:"error"})]})]})}),S.jsx("div",{children:S.jsx(zb,{theme:t,currentValues:ce||{},onChange:Ne})})]}),S.jsx(ro.ControlsRowContainer,{$bgColor:F.colorPrimaryBg,$designNewLayout:_,children:S.jsxs(q.Flex,{gap:_?10:16,align:"center",children:[S.jsx(q.Button,{type:"primary",onClick:Re,loading:he,children:"Submit"}),N&&S.jsx(q.Button,{onClick:()=>R(N),children:"Cancel"}),S.jsx(q.Button,{onClick:()=>tt(!0),icon:S.jsx(wn.BugOutlined,{})}),_&&S.jsx("div",{children:S.jsx(q.Typography.Text,{children:"Only the data from the form will be sent. Empty fields will be removed recursively."})})]})}),xe&&S.jsx(q.Modal,{open:xe,onOk:()=>tt(!1),onCancel:()=>tt(!1),onClose:()=>tt(!1),title:"Debug for properties",width:"90vw",children:S.jsx(ro.DebugContainer,{$designNewLayoutHeight:k,children:S.jsx(Z.Suspense,{fallback:S.jsx("div",{children:"Loading..."}),children:S.jsx(Ev,{defaultLanguage:"json",width:"100%",height:k||"75vh",theme:"vs-dark",value:JSON.stringify(J,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},xv=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,namespacesData:a,formsOverridesData:u,data:l,isCreate:f,backlink:d,modeData:g,designNewLayout:p,designNewLayoutHeight:v})=>{const[C,A]=Z.useState(void 0),[E,b]=Z.useState([]),[B,N]=Z.useState([]),[_,k]=Z.useState([]),[F,R]=Z.useState([]),[O,W]=Z.useState(""),[J,le]=Z.useState(!1),[ce,ge]=Z.useState(!1),ye=Z.useCallback(()=>{g&&(g.onChange("Manual"),g.onDisabled())},[g]);return Z.useEffect(()=>{Ue.post("/openapi-bff/forms/formPrepare/prepareFormProps",{data:l,clusterName:t,formsOverridesData:u}).then(({data:he})=>{he.isNamespaced&&le(!0),he.result==="error"?(ge(he.error),console.log(he.error),ye()):(he.kindName&&W(he.kindName),he.hiddenPaths&&N(he.hiddenPaths),he.expandedPaths&&k(he.expandedPaths),he.persistedPaths&&R(he.persistedPaths),he.properties&&A(he.properties),he.required&&b(he.required))}).catch(he=>{ge(he.message)})},[t,l,ye,u]),g?.current==="Manual"?S.jsx(Yb,{theme:e,cluster:t,prefillValuesSchema:l.prefillValuesSchema,isCreate:f,type:l.type,isNameSpaced:J?a?.items.map(he=>he.metadata.name):!1,apiGroupApiVersion:l.type==="builtin"?"api/v1":`${l.apiGroup}/${l.apiVersion}`,typeName:l.typeName,backlink:d,designNewLayout:p,designNewLayoutHeight:v}):!C&&!ce?null:ce?S.jsx(q.Alert,{message:ce,type:"error"}):S.jsx(kp,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:C,required:E,hiddenPaths:B,expandedPaths:_,persistedPaths:F,prefillValuesSchema:l.prefillValuesSchema,prefillValueNamespaceOnly:l.prefillValueNamespaceOnly,isCreate:f,type:l.type,isNameSpaced:J?a?.items.map(he=>he.metadata.name):!1,apiGroupApiVersion:l.type==="builtin"?"api/v1":`${l.apiGroup}/${l.apiVersion}`,kindName:O,typeName:l.typeName,backlink:d,designNewLayout:p,designNewLayoutHeight:v},JSON.stringify(C)+JSON.stringify(E)+JSON.stringify(B)+JSON.stringify(l))},Cv={CustomCard:Je(q.Card)`
|
|
458
|
+
display: flex;
|
|
459
|
+
justify-content: center;
|
|
460
|
+
align-items: center;
|
|
461
|
+
cursor: pointer;
|
|
462
|
+
width: 238px;
|
|
463
|
+
box-shadow:
|
|
464
|
+
0 6px 16px 0 #00000014,
|
|
465
|
+
0 3px 6px -4px #0000001f,
|
|
466
|
+
0 9px 28px 8px #0000000d;
|
|
467
|
+
|
|
468
|
+
.ant-card-body {
|
|
469
|
+
display: flex;
|
|
470
|
+
justify-content: center;
|
|
471
|
+
align-items: center;
|
|
472
|
+
height: 238px;
|
|
473
|
+
overflow-x: auto;
|
|
474
|
+
padding: 8px;
|
|
475
|
+
}
|
|
476
|
+
`},_v=({onAddClick:e})=>S.jsx(Cv.CustomCard,{onClick:e,children:S.jsx(wn.PlusOutlined,{})}),on=[];for(let e=0;e<256;++e)on.push((e+256).toString(16).slice(1));function kv(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}let Wc;const Tv=new Uint8Array(16);function Iv(){if(!Wc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Wc=crypto.getRandomValues.bind(crypto)}return Wc(Tv)}const Tp={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ov(e,t,n){if(Tp.randomUUID&&!e)return Tp.randomUUID();e=e||{};const i=e.random||(e.rng||Iv)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,kv(i)}const Fv=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:d})=>{const[g]=q.Form.useForm(),p=q.Form.useWatch("type",g),v=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,C=E=>{if(typeof a=="boolean"){Qo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:Ov()},spec:{...E}}}).then(()=>{u(!1),f()}).catch(b=>{(Xo(b)||b instanceof Error)&&l(b)}).finally(()=>u(!1));return}Zo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}/${a.metadata.name}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:a.metadata.name,resourceVersion:a.metadata.resourceVersion},spec:{...E}}}).then(()=>{u(!1),d()}).catch(b=>{(Xo(b)||b instanceof Error)&&l(b)}).finally(()=>u(!1))},A=()=>{g.validateFields().then(()=>{C(g.getFieldsValue())}).catch(()=>console.log("Validating error"))};return S.jsx(q.Modal,{title:typeof a=="boolean"?"Add card":"Edit плитку",open:a!==!1,onCancel:()=>u(!1),onOk:()=>A(),children:S.jsxs(q.Form,{form:g,name:"control-hooks",initialValues:{...v},children:[S.jsx(q.Form.Item,{label:"Name",name:"name",children:S.jsx(q.Input,{required:!0})}),S.jsx(q.Form.Item,{label:"Description",name:"description",children:S.jsx(q.Input,{required:!0})}),S.jsx(q.Form.Item,{label:"Icon",name:"icon",children:S.jsx(q.Input.TextArea,{placeholder:"SVG-иконка, <svg /> -> base64",maxLength:void 0,required:!0})}),S.jsx(q.Form.Item,{label:"Resources type",name:"type",children:S.jsx(q.Select,{placeholder:"Choose resource type",options:[{value:"direct",label:"Direct link"},{value:"crd",label:"CRD"},{value:"nonCrd",label:"API"},{value:"built-in",label:"Built-in"}]})}),S.jsx(q.Form.Item,{label:"Enter API group",name:"apiGroup",children:S.jsx(q.Input,{disabled:p==="direct"||p==="built-in"})}),S.jsx(q.Form.Item,{label:"Enter API version",name:"apiVersion",children:S.jsx(q.Input,{disabled:p==="direct"})}),S.jsx(q.Form.Item,{label:"Enter resource type",name:"typeName",children:S.jsx(q.Input,{disabled:p==="direct"})}),S.jsx(q.Form.Item,{label:"Enter path",name:"pathToNav",children:S.jsx(q.Input,{disabled:p!=="direct"})}),S.jsx(q.Form.Item,{label:"Tags",name:"tags",children:S.jsx(q.Select,{mode:"tags",placeholder:"Enter tags. Separators: comma and space",tokenSeparators:[","," "],dropdownStyle:{display:"none"}})}),S.jsx(q.Form.Item,{label:"Disabled",name:"disabled",children:S.jsx(q.Switch,{})}),S.jsx(q.Form.Item,{label:"Hidden",name:"hidden",children:S.jsx(q.Switch,{})})]})})},Bv=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>{const f="v1";return n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/crd-table/${a}/${u}/${f}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/api-table/${a}/${u}/${o}`:`/${l}/${e}/${t}/builtin-table/${o}`},Dv=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/forms/crds/${a}/${u}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/forms/apis/${a}/${u}/${o}`:`/${l}/${e}/${t}/forms/builtin/${u}/${o}`,Rv=({clusterName:e,namespace:t,type:n,typeName:i,apiGroup:o,apiVersion:a})=>n==="crd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:n==="nonCrd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${i}`,Lv=Je(q.Card)`
|
|
477
|
+
position: relative;
|
|
478
|
+
width: 238px;
|
|
479
|
+
overflow-x: auto;
|
|
480
|
+
cursor: ${({$isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
481
|
+
box-shadow:
|
|
482
|
+
0 6px 16px 0 #00000014,
|
|
483
|
+
0 3px 6px -4px #0000001f,
|
|
484
|
+
0 9px 28px 8px #0000000d;
|
|
485
|
+
|
|
486
|
+
&:hover {
|
|
487
|
+
border-color: ${({$hoverColor:e,$isDisabled:t})=>!t&&e};
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.ant-card-body {
|
|
491
|
+
height: 238px;
|
|
492
|
+
overflow-x: auto;
|
|
493
|
+
padding: 8px;
|
|
494
|
+
}
|
|
495
|
+
`,Pv=Je.div`
|
|
496
|
+
min-width: 45px;
|
|
497
|
+
min-height: 45px;
|
|
498
|
+
padding: 6px;
|
|
499
|
+
|
|
500
|
+
svg {
|
|
501
|
+
width: 45px;
|
|
502
|
+
height: 45px;
|
|
503
|
+
}
|
|
504
|
+
`,Nv=Je.div`
|
|
505
|
+
overflow-x: auto;
|
|
506
|
+
scrollbar-width: thin;
|
|
507
|
+
margin-bottom: 20px;
|
|
508
|
+
`,jv=Je.div`
|
|
509
|
+
padding-left: 6px;
|
|
510
|
+
padding-right: 6px;
|
|
511
|
+
font-size: 16px;
|
|
512
|
+
line-height: 24px;
|
|
513
|
+
|
|
514
|
+
span {
|
|
515
|
+
font-weight: 700;
|
|
516
|
+
}
|
|
517
|
+
`,$v=Je.div`
|
|
518
|
+
margin-top: 6px;
|
|
519
|
+
margin-bottom: 6px;
|
|
520
|
+
padding-left: 6px;
|
|
521
|
+
padding-right: 6px;
|
|
522
|
+
display: flex;
|
|
523
|
+
flex-flow: row wrap;
|
|
524
|
+
align-items: flex-start;
|
|
525
|
+
`,Mv=Je(q.Tag)`
|
|
526
|
+
margin-right: 4px;
|
|
527
|
+
margin-bottom: 4px;
|
|
528
|
+
|
|
529
|
+
&:last-child {
|
|
530
|
+
margin-right: 0;
|
|
531
|
+
}
|
|
532
|
+
`,Uv=Je.div`
|
|
533
|
+
padding-left: 6px;
|
|
534
|
+
padding-right: 6px;
|
|
535
|
+
`,Vv=Je.div`
|
|
536
|
+
position: absolute;
|
|
537
|
+
bottom: 6px;
|
|
538
|
+
right: 6px;
|
|
539
|
+
`,Gr={CustomCard:Lv,ImageContainer:Pv,OverflowContainer:Nv,TitleContainer:jv,TagsContainer:$v,CustomTag:Mv,DescriptionContainer:Uv,EditButtonContainer:Vv},Hc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,tags:p,disabled:v,isEditMode:C,onDeleteClick:A,onEditClick:E,addedMode:b})=>{const{useToken:B}=q.theme,{token:N}=B(),_=lr.useNavigate();let k="";try{k=window.atob(i)}catch{k="Can't decode"}const F=b?Bv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,baseprefix:e}):Dv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,baseprefix:e}),R=b&&u!=="direct"?Rv({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:d,apiVersion:g}):void 0,{data:O,error:W}=tn({uri:R||"",queryKey:[R||""],refetchInterval:!1,isEnabled:b&&R!==void 0});return b&&(W||u==="direct")?null:S.jsx(Gr.CustomCard,{$isDisabled:v,$hoverColor:N.colorPrimary,onClick:()=>v?null:_(F),children:S.jsxs(q.Flex,{vertical:!0,style:{width:"100%",height:"100%"},justify:"spaceBetween",children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Gr.ImageContainer,{dangerouslySetInnerHTML:{__html:k}}),C&&S.jsx("div",{onClick:J=>{J.preventDefault(),J.stopPropagation(),A&&A()},children:S.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M10.5 0C4.70156 0 0 4.70156 0 10.5C0 16.2984 4.70156 21 10.5 21C16.2984 21 21 16.2984 21 10.5C21 4.70156 16.2984 0 10.5 0ZM15 11.0625C15 11.1656 14.9156 11.25 14.8125 11.25H6.1875C6.08437 11.25 6 11.1656 6 11.0625V9.9375C6 9.83438 6.08437 9.75 6.1875 9.75H14.8125C14.9156 9.75 15 9.83438 15 9.9375V11.0625Z",fill:"currentColor"})})})]}),S.jsxs(Gr.OverflowContainer,{children:[S.jsxs(Gr.TitleContainer,{children:[n," ",b&&S.jsxs("span",{children:["x",O?.items?.length]})]}),S.jsx(Gr.TagsContainer,{children:p.map(J=>S.jsx(Gr.CustomTag,{children:J},J))}),S.jsx(Gr.DescriptionContainer,{children:S.jsx(q.Typography.Text,{type:"secondary",children:t})})]}),S.jsx(Gr.EditButtonContainer,{children:C&&S.jsx("div",{onClick:J=>{J.preventDefault(),J.stopPropagation(),E&&E()},children:S.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:"currentColor"})})})})]})})},qv=({uniqueTags:e,selectedTags:t,onSelectedTags:n})=>{const i=e.map(o=>({key:o,value:o}));return S.jsx(q.Select,{mode:"tags",placeholder:"Search",tokenSeparators:[","," "," "],allowClear:!0,options:i,onClear:()=>{n([])},value:t,onChange:o=>n(o),style:{width:"240px"}})},Wv={BigValue:Je.div`
|
|
540
|
+
font-size: 36px;
|
|
541
|
+
line-height: 36px;
|
|
542
|
+
font-weight: 700;
|
|
543
|
+
/* stylelint-disable-next-line value-no-vendor-prefix */
|
|
544
|
+
display: -webkit-box;
|
|
545
|
+
overflow: hidden;
|
|
546
|
+
text-overflow: ellipsis;
|
|
547
|
+
-ms-line-clamp: 1;
|
|
548
|
+
-webkit-line-clamp: 1;
|
|
549
|
+
-webkit-box-orient: vertical;
|
|
550
|
+
line-clamp: 1;
|
|
551
|
+
word-break: break-all;
|
|
552
|
+
`},Ip=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=q.notification.useNotification(),[d,g]=Z.useState(!1),[p,v]=Z.useState(!1),[C,A]=Z.useState(!1),[E,b]=Z.useState(),[B,N]=Z.useState(),[_,k]=Z.useState([]),[F,R]=Z.useState([]),[O,W]=Z.useState([]),[J,le]=Z.useState([]),{data:ce,isLoading:ge,error:ye}=tn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),he=Hr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),me=Hr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),Le=Hr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),ke=()=>l.success({message:"Card created",key:"create-marketplace-success"}),xe=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Z.useEffect(()=>{ce&&(d?(k(ce.items.map(({spec:Ae})=>Ae).sort()),W(ce.items.flatMap(({spec:Ae})=>Ae.tags).filter((Ae,Se,We)=>We.indexOf(Ae)===Se))):(k(ce.items.map(({spec:Ae})=>Ae).filter(({hidden:Ae})=>Ae!==!0).sort()),W(ce.items.filter(({spec:Ae})=>Ae.hidden!==!0).flatMap(({spec:Ae})=>Ae.tags).filter((Ae,Se,We)=>We.indexOf(Ae)===Se))))},[ce,d]),Z.useEffect(()=>{let Ae=[];J&&J.length>0?Ae=_.filter(({name:Se,description:We,tags:Y})=>J.some(Q=>Se.toLowerCase().includes(Q.toLowerCase()))||J.some(Q=>We.toLowerCase().includes(Q.toLowerCase()))||J.some(Q=>Y.some(ue=>ue.toLowerCase().includes(Q.toLowerCase())))).sort():Ae=_.sort(),R(Ae)},[J,_]),ye)return S.jsx("div",{children:JSON.stringify(ye)});if(ge)return S.jsx(q.Spin,{});if(!ce)return S.jsx("div",{children:"No panels"});const tt=()=>{g(!d)};return S.jsxs(S.Fragment,{children:[f,S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx("div",{children:S.jsxs(q.Flex,{gap:12,vertical:!0,children:[S.jsx("div",{children:S.jsx(q.Typography.Text,{type:"secondary",children:"Available Products"})}),S.jsx("div",{children:S.jsx(Wv.BigValue,{children:"Marketplace"})})]})}),S.jsx("div",{children:S.jsxs(q.Flex,{gap:12,vertical:!0,children:[S.jsx(qv,{uniqueTags:O,selectedTags:J,onSelectedTags:le}),(he.data?.status.allowed||me.data?.status.allowed||Le.data?.status.allowed)&&S.jsxs(q.Flex,{align:"center",gap:8,children:[S.jsx(q.Switch,{defaultChecked:!0,checked:d,onClick:tt})," Edit Mode"]})]})})]}),S.jsx(Cr,{$space:20,$samespace:!0}),E&&S.jsx(q.Alert,{description:JSON.stringify(E),message:"Card was not created",onClose:()=>b(void 0),type:"error"}),B&&S.jsx(q.Alert,{description:JSON.stringify(B),message:"Card was not deleted",onClose:()=>N(void 0),type:"error"}),S.jsxs(q.Flex,{gap:22,wrap:!0,children:[e&&t&&F.map(({name:Ae,description:Se,icon:We,type:Y,pathToNav:Q,typeName:ue,apiGroup:De,apiVersion:Ye,tags:Te,disabled:Re})=>S.jsx(Hc,{baseprefix:u,description:Se,disabled:Re,icon:We,isEditMode:d,name:Ae,clusterName:e,namespace:t,type:Y,pathToNav:Q,typeName:ue,apiGroup:De,apiVersion:Ye,tags:Te,onDeleteClick:()=>{const Oe=ce.items.find(({spec:Ne})=>Ne.name===Ae);A(Oe?{name:Oe.metadata.name}:!1)},onEditClick:()=>{v(ce.items.find(({spec:Oe})=>Oe.name===Ae)||!1)}},Ae)),d&&S.jsx(_v,{onAddClick:()=>{v(!0)}})]}),p&&S.jsx(Fv,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:p,setError:b,setIsOpen:v,onCreateSuccess:ke,onUpdateSuccess:xe}),typeof C!="boolean"&&S.jsx(ec,{name:C.name,onClose:()=>A(!1),endpoint:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/${C.name}`})]})},Hv=({onDelete:e,onUpdate:t})=>{const n=()=>{const i=[];return t&&i.push({key:"update",label:S.jsx("div",{onClick:o=>{o.stopPropagation(),t()},children:S.jsxs(q.Flex,{align:"center",gap:8,children:[S.jsx(kh,{}),"Edit"]})})}),e&&i.push({key:"delete",label:S.jsx("div",{onClick:o=>{o.stopPropagation(),e()},children:S.jsxs(q.Flex,{align:"center",gap:8,children:[S.jsx(_h,{}),"Delete"]})})}),i};return S.jsx(q.Dropdown,{placement:"bottomRight",menu:{items:n()},trigger:["click"],children:S.jsx(q.Button,{type:"text",onClick:i=>{i.preventDefault(),i.stopPropagation()},children:S.jsx(wn.EllipsisOutlined,{})})})},Kv=({accessGroups:e})=>{const t=()=>e.map((n,i)=>({key:`${n}-${i}`,label:S.jsx("div",{onClick:o=>{o.stopPropagation()},children:n})}));return S.jsx(q.Dropdown,{placement:"bottomRight",menu:{items:t()},trigger:["click"],children:S.jsxs(q.Button,{type:"link",onClick:n=>{n.preventDefault(),n.stopPropagation()},children:["Access Groups",S.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M12.8127 3H11.6408C11.5611 3 11.4861 3.03906 11.4393 3.10313L7.0002 9.22188L2.56114 3.10313C2.51426 3.03906 2.43926 3 2.35957 3H1.1877C1.08614 3 1.02676 3.11563 1.08614 3.19844L6.59551 10.7937C6.79551 11.0687 7.20489 11.0687 7.40332 10.7937L12.9127 3.19844C12.9736 3.11563 12.9143 3 12.8127 3Z",fill:"currentColor"})})]})})},zv=Je.div`
|
|
553
|
+
width: 45.33px;
|
|
554
|
+
height: 1px;
|
|
555
|
+
`;Je.div`
|
|
556
|
+
font-size: 36px;
|
|
557
|
+
line-height: 36px;
|
|
558
|
+
font-weight: 700;
|
|
559
|
+
/* stylelint-disable-next-line value-no-vendor-prefix */
|
|
560
|
+
display: -webkit-box;
|
|
561
|
+
overflow: hidden;
|
|
562
|
+
text-overflow: ellipsis;
|
|
563
|
+
-ms-line-clamp: 1;
|
|
564
|
+
-webkit-line-clamp: 1;
|
|
565
|
+
-webkit-box-orient: vertical;
|
|
566
|
+
line-clamp: 1;
|
|
567
|
+
word-break: break-all;
|
|
568
|
+
`;const Gv={ActionMenuPlaceholder:zv},Op=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectApiGroup:o,baseProjectVersion:a,mpResourceName:u,projectResourceName:l,baseprefix:f,accessGroups:d,children:g})=>{const p=lr.useNavigate(),{data:v,isLoading:C}=tn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${u}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),{data:A,isLoading:E,error:b}=tn({uri:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[B,N]=Z.useState(!1),_=Hr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),k=Hr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),F=Z.useCallback(()=>{p(`/${f}/${e}/forms/apis/${o}/${a}/${l}/${t}?backlink=${f}/clusters/${e}`)},[f,e,t,o,a,l,p]);if(E)return S.jsx(q.Spin,{});if(!A||b)return null;const R=A.status.conditions.find(({type:O})=>O==="Ready");return S.jsxs(S.Fragment,{children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx("div",{children:g}),S.jsx("div",{children:S.jsxs(q.Flex,{gap:24,vertical:!0,children:[S.jsx(q.Flex,{justify:"flex-end",children:R?.status==="True"&&(_.data?.status.allowed||k.data?.status.allowed)?S.jsx(Hv,{onDelete:k.data?.status.allowed?()=>{N(!0)}:void 0,onUpdate:_.data?.status.allowed?F:void 0}):S.jsx(Gv.ActionMenuPlaceholder,{})}),S.jsx(Kv,{accessGroups:d})]})})]}),S.jsx(Cr,{$space:24,$samespace:!0}),S.jsx(q.Typography.Text,{type:"secondary",children:"Added Products"}),S.jsx(Cr,{$space:12,$samespace:!0}),S.jsxs(q.Flex,{gap:22,wrap:!0,children:[C&&S.jsx(q.Spin,{}),e&&t&&v?.items.map(({spec:O})=>O).sort().map(({name:O,description:W,icon:J,type:le,pathToNav:ce,typeName:ge,apiGroup:ye,apiVersion:he,tags:me,disabled:Le})=>S.jsx(Hc,{baseprefix:f,description:W,disabled:Le,icon:J,isEditMode:!1,name:O,clusterName:e,namespace:t,type:le,pathToNav:ce,typeName:ge,apiGroup:ye,apiVersion:he,tags:me,addedMode:!0},O))]}),B&&S.jsx(ec,{name:A.metadata.name,onClose:()=>{N(!1),p(`${f}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${A.metadata.name}`})]})},Kc=({items:e,components:t})=>S.jsx(S.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return S.jsxs("div",{children:["❌ No component registered for type: ",String(n.type)]},i);let a=n.data;if(typeof n.data=="object"&&n.data!==null&&"items"in n.data&&Array.isArray(n.data.items)){const{items:l,...f}=n.data;a={...f,items:l.map(d=>({...d,children:Array.isArray(d.children)?S.jsx(Kc,{items:d.children,components:t}):d.children}))}}const u=n.children?S.jsx(Kc,{items:n.children,components:t}):null;return S.jsx(Z.Fragment,{children:S.jsx(o,{data:a,children:u})},i)})}),Fp=e=>S.jsx(Kc,{...e}),Jv=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return S.jsxs(q.Typography.Text,{...o,children:[i,t]})},Yv=({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(q.Card,{...i,children:t})},Xv=({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(q.Flex,{...i,children:t})},Qv=({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(q.Row,{...i,children:t})},Zv=({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(q.Col,{...i,children:t})},eS=({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(q.Tabs,{...i,children:t})},tS=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return S.jsxs(q.Button,{...o,children:[e.text,t]})},Bp=()=>{const e=Z.createContext(null);return{Provider:({children:i,value:o})=>{const a=Z.useMemo(()=>o,Object.values(o));return S.jsx(e.Provider,{value:a,children:i})},useTypedContext:()=>{const i=Z.useContext(e);if(!i)throw new Error("useTypedContext must be used within a Provider");return i}}},Dp=Bp(),nS=Dp.Provider,io=Dp.useTypedContext,rS=({data:e})=>{const n=io().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=Et({template:e.text,replaceValues:n});return S.jsx("span",{children:i})},Rp=Z.createContext(void 0),iS=({urls:e,children:t})=>{const n=bn.useQueries({queries:e.map((f,d)=>({queryKey:["multi",d,f],queryFn:async()=>(await Ue.get(f)).data}))}),i={},o=[];n.forEach((f,d)=>{i[`req${d}`]=f.data,o[d]=f.error??null});const a=n.some(f=>f.isLoading),u=n.some(f=>f.isError),l=Z.useMemo(()=>({data:i,isLoading:a,isError:u,errors:o}),[JSON.stringify(i),a,u,JSON.stringify(o)]);return S.jsx(Rp.Provider,{value:l,children:t})},_a=()=>{const e=Z.useContext(Rp);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},sS={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx("div",{...i,children:t})},antdText:Jv,antdCard:Yv,antdFlex:Xv,antdRow:Qv,antdCol:Zv,antdTabs:eS,antdButton:tS,partsOfUrl:rS,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=_a(),a=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const d=parseInt(l,10),g=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(v=>v[1]),p=Wr.get(t[`req${d}`],g);return p!=null?String(p):""}catch{return u}}):"",[e?.text,t]);return n?S.jsx("div",{children:"Loading..."}):i?S.jsxs("div",{children:[S.jsx("h4",{children:"Errors:"}),S.jsx("ul",{children:o.map((u,l)=>u&&S.jsx("li",{children:u.message},l))})]}):S.jsx("span",{children:a})},parsedText:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=_a(),a=io(),u=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(d,g,p)=>{try{const v=parseInt(g,10),C=Array.from(p.matchAll(/['"]([^'"]+)['"]/g)).map(E=>E[1]),A=Wr.get(t[`req${v}`],C);return A!=null?String(A):""}catch{return d}}):"",[e?.text,t]);if(n)return S.jsx("div",{children:"Loading..."});if(i)return S.jsxs("div",{children:[S.jsx("h4",{children:"Errors:"}),S.jsx("ul",{children:o.map((d,g)=>d&&S.jsx("li",{children:d.message},g))})]});const l=a.partsOfUrl.reduce((d,g,p)=>(d[p.toString()]=g,d),{}),f=Et({template:u,replaceValues:l});return S.jsx("span",{children:f})},ProjectInfoCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,accessGroups:a,...u}=e,{data:l,isError:f,errors:d}=_a(),p=io().partsOfUrl.reduce((E,b,B)=>(E[B.toString()]=b,E),{}),v=Et({template:i,replaceValues:p}),C=Et({template:o,replaceValues:p}),A=a.map(E=>{const b=E.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(N,_,k)=>{try{const F=parseInt(_,10),R=Array.from(k.matchAll(/['"]([^'"]+)['"]/g)).map(W=>W[1]),O=Wr.get(l[`req${F}`],R);return O!=null?String(O):""}catch{return N}});return Et({template:b,replaceValues:p})});return f?S.jsxs("div",{children:[S.jsx("h4",{children:"Errors:"}),S.jsx("ul",{children:d.map((E,b)=>E&&S.jsx("li",{children:E.message},b))})]}):S.jsx(Op,{clusterName:v,namespace:C,accessGroups:A,...u,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=io().partsOfUrl.reduce((g,p,v)=>(g[v.toString()]=p,g),{}),f=Et({template:i,replaceValues:l}),d=Et({template:o,replaceValues:l});return S.jsx(Ip,{clusterName:f,namespace:d,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(Rh,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(Cr,{...i})},StatusText:({data:e,children:t})=>{const{id:n,requestIndex:i,jsonPath:o,criteria:a,valueToCompare:u,successText:l,errorText:f,...d}=e,{data:g,isLoading:p,isError:v,errors:C}=_a();let A;try{[A]=Yh.query(g[`req${i}`],`$${o}`)}catch(b){return S.jsxs("div",{children:[S.jsx("h4",{children:"Errors:"}),S.jsx("ul",{children:JSON.stringify(b)})]})}const E=a==="equals"?u===A:u!==A;return p?S.jsx("div",{children:"Loading..."}):v?S.jsxs("div",{children:[S.jsx("h4",{children:"Errors:"}),S.jsx("ul",{children:C.map((b,B)=>b&&S.jsx("li",{children:b.message},B))})]}):S.jsxs(q.Typography.Text,{type:E?"success":"danger",...d,children:[E?l:f,t]})},SidebarProvider:({data:e,children:t})=>{const{id:n,...i}=e,a=io().partsOfUrl.reduce((u,l,f)=>(u[f.toString()]=l,u),{});return S.jsx(Uh,{replaceValues:a,...i})}},Lp=({urls:e,locationPathname:t})=>{const n=t.split("/").reduce((i,o,a)=>(i[a.toString()]=o,i),{});return e.map(i=>Et({template:i,replaceValues:n}))},oS=e=>{const t=lr.useLocation(),{urlsToFetch:n}=e,i=Lp({urls:n,locationPathname:t.pathname});return S.jsx(nS,{value:{partsOfUrl:t.pathname.split("/")},children:S.jsx(iS,{urls:i,children:S.jsx(Fp,{...e})})})},aS=async({typeName:e,apiGroup:t,apiVersion:n,clusterName:i})=>{const{data:o}=await Ue.post("/openapi-bff/scopes/checkScopes/checkIfApiNamespaceScoped",{typeName:e,apiGroup:t,apiVersion:n,clusterName:i}),{isClusterWide:a,isNamespaceScoped:u}=o;return{isClusterWide:a,isNamespaceScoped:u}},uS=async({typeName:e,clusterName:t})=>{const{data:n}=await Ue.post("/openapi-bff/scopes/checkScopes/checkIfBuiltInNamespaceScoped",{typeName:e,clusterName:t}),{isClusterWide:i,isNamespaceScoped:o}=n;return{isClusterWide:i,isNamespaceScoped:o}},cS=async({namespace:e,data:t,apiGroup:n,apiVersion:i,clusterName:o})=>(await Ue.post("/openapi-bff/scopes/filterScopes/filterIfApiNamespaceScoped",{namespace:e,data:t,apiGroup:n,apiVersion:i,clusterName:o})).data,Pp=async({namespace:e,data:t,clusterName:n})=>(await Ue.post("/openapi-bff/scopes/filterScopes/filterIfBuiltInNamespaceScoped",{namespace:e,data:t,clusterName:n})).data,lS=(e,t)=>{const n={...e};for(const i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(n[i]=t[i]);return n},fS=e=>typeof e=="object"&&"value"in e&&"highlight"in e,hS=e=>{const t={};e.forEach(({apis:i,highlightString:o})=>{i.forEach(a=>{const[u,l]=a.split("/"),f=u.split(".");if(f.length<2)return;const d=f.slice(-2).join("."),g=f.slice(0,-2).reverse();let p=t[d]=t[d]||{};for(const v of g)p[v]=p[v]||{},p=p[v];p[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(fS(u))return{title:u.highlight?`${u.value} (pref)`:u.value,key:u.value,isLeaf:!0};const f=n(u,l);return{title:a,key:l,children:f,isLeaf:f.length===0}});return Object.entries(t).map(([i,o])=>({title:i,key:i,children:n(o,i),isLeaf:!1}))},dS=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),pS=async({clusterName:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:d})=>d==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:d})=>!o.includes(d)&&!d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),l=t?.groups.filter(({name:d})=>o.includes(d)||d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),f=await Pp({namespace:i,data:n,clusterName:e});return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},gS=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:v,pathname:C})=>e.map(({pathToMatch:E,pathToNavigate:b,keysToParse:B})=>({pathToMatch:E?Et({template:E,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:v}}):void 0,pathToNavigate:b?Et({template:b,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:v}}):void 0,keysToParse:B})).find(({pathToMatch:E})=>E?lr.matchPath(E,C):!1),Np=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumns)&&e.spec.additionalPrinterColumns.every(t=>Object.keys(t).includes("name")&&Object.keys(t).includes("jsonPath"))),jp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsUndefinedValues)&&e.spec.additionalPrinterColumnsUndefinedValues.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),$p=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsTrimLengths)&&e.spec.additionalPrinterColumnsTrimLengths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Mp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsColWidths)&&e.spec.additionalPrinterColumnsColWidths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),yS=({columnsOverridesData:e,overrideType:t})=>{const n=e?.items.find(l=>typeof l=="object"&&!Array.isArray(l)&&l!==null&&l.spec&&typeof l.spec=="object"&&!Array.isArray(l.spec)&&l.spec!==null&&typeof l.spec.overrideType=="string"&&l.spec.overrideType===t),i=Np(n)?n.spec.additionalPrinterColumns:void 0,o=jp(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=$p(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Mp(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},mS=async({clusterName:e})=>Ue.get(`/openapi-bff/swagger/swagger/${e}`),Up=async()=>Ue.get("/clusterlist"),Vp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return Ue.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},qp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>Ue.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Wp=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return Ue.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Hp=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>Ue.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),Kp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>Ue.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),zp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>Ue.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Gp=async({clusterName:e})=>Ue.get(`/api/clusters/${e}/k8s/apis/`),Jp=async({clusterName:e,apiGroup:t,apiVersion:n})=>Ue.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),Yp=async({clusterName:e})=>Ue.get(`/api/clusters/${e}/k8s/api/v1`),Xp=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>Ue.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),wS=({refetchInterval:e})=>bn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Up()).data,refetchInterval:e!==void 0?e:5e3}),bS=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>bn.useQuery({queryKey:["useApiResources",e,t,n,i,o,a],queryFn:async()=>{const l=await Vp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a}),f=JSON.parse(JSON.stringify(l.data));return f.metadata?.resourceVersion&&delete f.metadata.resourceVersion,f},refetchInterval:u!==void 0?u:5e3}),vS=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>bn.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await qp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),SS=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>bn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await Wp({clusterName:e,namespace:t,typeName:n,limit:i}),u=JSON.parse(JSON.stringify(a.data));return u.metadata?.resourceVersion&&delete u.metadata.resourceVersion,u},refetchInterval:o!==void 0?o:5e3}),AS=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>bn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Hp({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),ES=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>bn.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>{const u=await Kp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o}),l=JSON.parse(JSON.stringify(u.data));return l.metadata?.resourceVersion&&delete l.metadata.resourceVersion,l},refetchInterval:a!==void 0?a:5e3}),xS=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>bn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await zp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),CS=({clusterName:e})=>bn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>{const t=await Gp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),_S=({clusterName:e,apiGroup:t,apiVersion:n})=>bn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await Jp({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),kS=({clusterName:e})=>bn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await Yp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),TS=({clusterName:e,apiExtensionVersion:t,crdName:n})=>bn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await Xp({clusterName:e,apiExtensionVersion:t,crdName:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3});oe.BackToDefaultIcon=Oh,oe.BlackholeForm=kp,oe.BlackholeFormDataProvider=xv,oe.ContentCard=Rh,oe.DeleteIcon=_h,oe.DeleteModal=ec,oe.DeleteModalMany=zm,oe.DownIcon=Ih,oe.DynamicComponents=sS,oe.DynamicRenderer=Fp,oe.DynamicRendererWithProviders=oS,oe.EditIcon=kh,oe.EnrichedTable=Gh,oe.EnrichedTableProvider=o2,oe.LockedIcon=Bh,oe.ManageableBreadcrumbs=Nh,oe.ManageableBreadcrumbsWithDataProvider=Xm,oe.ManageableSidebar=Mh,oe.ManageableSidebarWithDataProvider=Uh,oe.MarketPlace=Ip,oe.MarketplaceCard=Hc,oe.MinusIcon=sn,oe.PlusIcon=tc,oe.ProjectInfoCard=Op,oe.Spacer=Cr,oe.SuccessIcon=Fh,oe.TreeWithSearch=Cy,oe.UnlockedIcon=Dh,oe.UpIcon=Th,oe.checkIfApiInstanceNamespaceScoped=aS,oe.checkIfBuiltInInstanceNamespaceScoped=uS,oe.checkPermission=td,oe.createContextFactory=Bp,oe.createNewEntry=Qo,oe.deleteEntry=Zu,oe.feedbackIcons=qr,oe.filterIfApiInstanceNamespaceScoped=cS,oe.filterIfBuiltInInstanceNamespaceScoped=Pp,oe.filterSelectOptions=sc,oe.floorToDecimal=Ns,oe.getAllPathsFromObj=lc,oe.getApiResourceSingle=qp,oe.getApiResourceTypes=Gp,oe.getApiResourceTypesByApiGroup=Jp,oe.getApiResources=Vp,oe.getBuiltinResourceSingle=Hp,oe.getBuiltinResourceTypes=Yp,oe.getBuiltinResources=Wp,oe.getBuiltinTreeData=dS,oe.getClusterList=Up,oe.getCrdData=Xp,oe.getCrdResourceSingle=zp,oe.getCrdResources=Kp,oe.getDirectUnknownResource=Lh,oe.getEnrichedColumns=Kh,oe.getEnrichedColumnsWithControls=zh,oe.getGroupsByCategory=pS,oe.getObjectFormItemsDraft=Ca,oe.getPrefixSubarrays=rd,oe.getStringByName=Ot,oe.getSwagger=mS,oe.groupsToTreeData=hS,oe.isFlatObject=Hh,oe.isWithAdditionalPrinterColumns=Np,oe.isWithAdditionalPrinterColumnsColWidths=Mp,oe.isWithAdditionalPrinterColumnsTrimLengths=$p,oe.isWithAdditionalPrinterColumnsUndefinedValues=jp,oe.normalizeValuesForQuotas=cc,oe.normalizeValuesForQuotasToNumber=nd,oe.overwriteMatchingKeys=lS,oe.parseCustomOverrides=yS,oe.parseQuotaValue=k2,oe.parseQuotaValueCpu=ac,oe.parseQuotaValueMemoryAndStorage=uc,oe.prepareDataForEnrichedColumns=Xh,oe.prepareDataForManageableBreadcrumbs=Ph,oe.prepareDataForManageableSidebar=$h,oe.prepareTableMappings=gS,oe.prepareTemplate=Et,oe.prepareUrlsToFetchForDynamicRenderer=Lp,oe.removeEmptyFormValues=na,oe.renameBrokenFieldBack=Ps,oe.renameBrokenFieldBackToFormAgain=oc,oe.updateEntry=Zo,oe.useApiResourceSingle=vS,oe.useApiResourceTypesByGroup=_S,oe.useApiResources=bS,oe.useApisResourceTypes=CS,oe.useBuiltinResourceSingle=AS,oe.useBuiltinResourceTypes=kS,oe.useBuiltinResources=SS,oe.useClusterList=wS,oe.useCrdData=TS,oe.useCrdResourceSingle=xS,oe.useCrdResources=ES,oe.useDirectUnknownResource=tn,oe.usePermissions=Hr,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});
|
|
471
569
|
//# sourceMappingURL=openapi-k8s-toolkit.umd.js.map
|